--- old/src/jdk.crypto.ucrypto/solaris/classes/com/oracle/security/ucrypto/NativeGCMCipher.java Mon Jun 8 21:35:16 2015 +++ new/src/jdk.crypto.ucrypto/solaris/classes/com/oracle/security/ucrypto/NativeGCMCipher.java Mon Jun 8 21:35:16 2015 @@ -48,22 +48,10 @@ public AesGcmNoPadding() throws NoSuchAlgorithmException { super(-1); } - } - public static final class Aes128GcmNoPadding extends NativeGCMCipher { - public Aes128GcmNoPadding() throws NoSuchAlgorithmException { - super(16); + public AesGcmNoPadding(int keySize) throws NoSuchAlgorithmException { + super(keySize); } } - public static final class Aes192GcmNoPadding extends NativeGCMCipher { - public Aes192GcmNoPadding() throws NoSuchAlgorithmException { - super(24); - } - } - public static final class Aes256GcmNoPadding extends NativeGCMCipher { - public Aes256GcmNoPadding() throws NoSuchAlgorithmException { - super(32); - } - } private static final int DEFAULT_TAG_LEN = 128; // same as SunJCE provider