src/jdk.crypto.ucrypto/solaris/classes/com/oracle/security/ucrypto/NativeGCMCipher.java
Print this page
7191662: JCE providers should be located via ServiceLoader
*** 46,71 ****
public static final class AesGcmNoPadding extends NativeGCMCipher {
public AesGcmNoPadding() throws NoSuchAlgorithmException {
super(-1);
}
}
- public static final class Aes128GcmNoPadding extends NativeGCMCipher {
- public Aes128GcmNoPadding() throws NoSuchAlgorithmException {
- super(16);
}
- }
- 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
// buffer for storing AAD data; if null, meaning buffer content has been
// supplied to native context
--- 46,59 ----
public static final class AesGcmNoPadding extends NativeGCMCipher {
public AesGcmNoPadding() throws NoSuchAlgorithmException {
super(-1);
}
+ public AesGcmNoPadding(int keySize) throws NoSuchAlgorithmException {
+ super(keySize);
}
}
private static final int DEFAULT_TAG_LEN = 128; // same as SunJCE provider
// buffer for storing AAD data; if null, meaning buffer content has been
// supplied to native context