mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-20 11:50:25 +00:00
8267817: [TEST] Remove unnecessary init in test/micro/org/openjdk/bench/javax/crypto/full/AESGCMBench:setup
Reviewed-by: redestad
This commit is contained in:
parent
7278f56bb6
commit
85f616522b
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user