8267817: [TEST] Remove unnecessary init in test/micro/org/openjdk/bench/javax/crypto/full/AESGCMBench:setup

Reviewed-by: redestad
This commit is contained in:
Dongbo He 2021-05-27 11:49:25 +00:00 committed by Claes Redestad
parent 7278f56bb6
commit 85f616522b

View File

@ -82,8 +82,6 @@ public class AESGCMBench extends CryptoBase {
encryptCipher.init(Cipher.ENCRYPT_MODE, ks, gcm_spec);
encryptCipher.updateAAD(aad);
decryptCipher = makeCipher(prov, algorithm);
decryptCipher.init(Cipher.DECRYPT_MODE, ks, encryptCipher.getParameters().getParameterSpec(GCMParameterSpec.class));
decryptCipher.updateAAD(aad);
data = fillRandom(new byte[dataSize]);
encryptedData = encryptCipher.doFinal(data);
}