changeset 14146:74bc7be0777b

8152172: PPC64: Support AES intrinsics Reviewed-by: ascarpino, simonis Contributed-by: horii@jp.ibm.com
author simonis
date Wed, 30 Mar 2016 11:40:57 +0200
parents 3a12445ffe48
children a0ea3a2f463a
files src/java.base/share/classes/com/sun/crypto/provider/AESCrypt.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/com/sun/crypto/provider/AESCrypt.java	Wed Mar 30 09:56:11 2016 +0200
+++ b/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 };
     }