8229214: Don't use GCM with PKCS5Padding in test/micro/org/openjdk/bench/javax/crypto/

Update AESGCMBench.java and CipherBench.java accordingly

Reviewed-by: xuelei, ecaspole
This commit is contained in:
Valerie Peng 2019-08-07 20:46:28 +00:00
parent 5233e25c4c
commit ef9b6ed5c3
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -40,7 +40,7 @@ import java.security.spec.InvalidParameterSpecException;
public class AESGCMBench extends CryptoBase {
@Param({"AES/GCM/NoPadding","AES/GCM/PKCS5Padding"})
@Param({"AES/GCM/NoPadding"})
private String algorithm;
@Param({"128"})

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -122,7 +122,7 @@ public abstract class CipherBench extends CryptoBase {
@Param({"GCM"})
private String mode;
@Param({"NoPadding", "PKCS5Padding"})
@Param({"NoPadding"})
private String padding;
@Param({"128", "256"})