changeset 11855:97e13a3ec1d8

8152172: PPC64: Support AES intrinsics Summary: Add support for AES intrinsics on PPC64. Reviewed-by: ascarpino, simonis Contributed-by: Hiroshi H Horii <horii@jp.ibm.com>
author simonis
date Wed, 10 Aug 2016 14:57:03 +0200
parents d0308c23e33b
children 283c8d76ec26
files src/share/classes/com/sun/crypto/provider/AESCrypt.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/crypto/provider/AESCrypt.java	Wed Mar 26 19:53:07 2014 +0000
+++ b/src/share/classes/com/sun/crypto/provider/AESCrypt.java	Wed Aug 10 14:57:03 2016 +0200
@@ -52,7 +52,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 */
@@ -95,7 +95,7 @@
         }
 
         // set sub key to the corresponding session Key
-        this.K = (int[]) sessionK[(decrypting? 1:0)];
+        this.K = sessionK[(decrypting? 1:0)];
     }
 
     /**
@@ -660,7 +660,7 @@
         limit = ROUNDS*4;
 
         // store the expanded sub keys into 'sessionK'
-        sessionK = new Object[] { expandedKe, expandedKd };
+        sessionK = new int[][] { expandedKe, expandedKd };
     }