8152172: PPC64: Support AES intrinsics
authorsimonis
Wed, 30 Mar 2016 11:40:57 +0200
changeset 37333 774ed0e5e01b
parent 36938 b43bd5279f4e
child 37334 1169e9593135
8152172: PPC64: Support AES intrinsics Reviewed-by: ascarpino, simonis Contributed-by: horii@jp.ibm.com
jdk/src/java.base/share/classes/com/sun/crypto/provider/AESCrypt.java
--- a/jdk/src/java.base/share/classes/com/sun/crypto/provider/AESCrypt.java	Wed Mar 30 09:56:11 2016 +0200
+++ b/jdk/src/java.base/share/classes/com/sun/crypto/provider/AESCrypt.java	Wed Mar 30 11:40:57 2016 +0200
@@ -56,7 +56,7 @@
     private boolean ROUNDS_14 = false;
 
     /** Session and Sub keys */
-    private Object[] sessionK = null;
+    private int[][] sessionK = null;
     private int[] K = null;
 
     /** Cipher encryption/decryption key */
@@ -99,7 +99,7 @@
         }
 
         // set sub key to the corresponding session Key
-        this.K = (int[]) sessionK[(decrypting? 1:0)];
+        this.K = sessionK[(decrypting? 1:0)];
     }
 
     /**
@@ -680,7 +680,7 @@
         limit = ROUNDS*4;
 
         // store the expanded sub keys into 'sessionK'
-        sessionK = new Object[] { expandedKe, expandedKd };
+        sessionK = new int[][] { expandedKe, expandedKd };
     }