Skip to content

Commit

Permalink
fixed test case to reflect SecretKey API
Browse files Browse the repository at this point in the history
  • Loading branch information
lhazlewood committed Aug 14, 2018
1 parent ec29906 commit 6aeb7af
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ class EncryptionAlgorithmsTest {

assert alg instanceof AbstractAesEncryptionAlgorithm

def skey = alg.generateKey()
def key = skey.getEncoded()
def key = alg.generateKey()

def request = EncryptionRequests.symmetric().setKey(key).setPlaintext(PLAINTEXT_BYTES).build()

Expand Down Expand Up @@ -79,8 +78,7 @@ class EncryptionAlgorithmsTest {

assert alg instanceof AbstractAesEncryptionAlgorithm

def skey = alg.generateKey()
def key = skey.getEncoded()
def key = alg.generateKey()

def request = EncryptionRequests.symmetric()
.setAdditionalAuthenticatedData(AAD_BYTES)
Expand Down

0 comments on commit 6aeb7af

Please sign in to comment.