hotspot/test/compiler/codegen/7184394/TestAESBase.java
changeset 35154 a9b3c1984a01
parent 31771 c9f593020799
--- a/hotspot/test/compiler/codegen/7184394/TestAESBase.java	Mon Dec 28 10:10:37 2015 -1000
+++ b/hotspot/test/compiler/codegen/7184394/TestAESBase.java	Mon Dec 28 23:11:01 2015 -0800
@@ -104,8 +104,8 @@
       cipher = Cipher.getInstance(algorithm + "/" + mode + "/" + paddingStr, "SunJCE");
       dCipher = Cipher.getInstance(algorithm + "/" + mode + "/" + paddingStr, "SunJCE");
 
-      // CBC init
-      if (mode.equals("CBC")) {
+      // CBC or CTR init
+      if (mode.equals("CBC") || mode.equals("CTR")) {
         IvParameterSpec initVector = new IvParameterSpec(iv);
         cipher.init(Cipher.ENCRYPT_MODE, key, initVector);
         algParams = cipher.getParameters();