# HG changeset patch # User simonis # Date 1459330857 -7200 # Wed Mar 30 11:40:57 2016 +0200 # Node ID 94e82147f3fe8306f908e9fcb3491af000162d0d # Parent 131e388abc48d342d82028643814cb8b8f6de296 8152172: PPC64: Support AES intrinsics Reviewed-by: ascarpino, simonis Contributed-by: Hiroshi H Horii diff --git a/src/share/classes/com/sun/crypto/provider/AESCrypt.java b/src/share/classes/com/sun/crypto/provider/AESCrypt.java --- a/src/share/classes/com/sun/crypto/provider/AESCrypt.java +++ b/src/share/classes/com/sun/crypto/provider/AESCrypt.java @@ -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 }; }