Skip to content

Commit 85f6165

Browse files
Dongbo Hecl4es
Dongbo He
authored andcommitted
8267817: [TEST] Remove unnecessary init in test/micro/org/openjdk/bench/javax/crypto/full/AESGCMBench:setup
Reviewed-by: redestad
1 parent 7278f56 commit 85f6165

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/micro/org/openjdk/bench/javax/crypto/full/AESGCMBench.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ public void setup() throws NoSuchAlgorithmException, NoSuchPaddingException, Inv
8282
encryptCipher.init(Cipher.ENCRYPT_MODE, ks, gcm_spec);
8383
encryptCipher.updateAAD(aad);
8484
decryptCipher = makeCipher(prov, algorithm);
85-
decryptCipher.init(Cipher.DECRYPT_MODE, ks, encryptCipher.getParameters().getParameterSpec(GCMParameterSpec.class));
86-
decryptCipher.updateAAD(aad);
8785
data = fillRandom(new byte[dataSize]);
8886
encryptedData = encryptCipher.doFinal(data);
8987
}

0 commit comments

Comments
 (0)