abstract class com.sun.crypto.provider.GaloisCounterMode extends javax.crypto.CipherSpi
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.crypto.provider.GaloisCounterMode
super_class: javax.crypto.CipherSpi
{
static int DEFAULT_IV_LEN;
descriptor: I
flags: (0x0008) ACC_STATIC
static int DEFAULT_TAG_LEN;
descriptor: I
flags: (0x0008) ACC_STATIC
private static final int MAX_BUF_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2147483647
private static final int TRIGGERLEN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 65536
private static final int PARALLEL_LEN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8192
private static final int SPLIT_LEN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1048576
static final byte[] EMPTY_BUF;
descriptor: [B
flags: (0x0018) ACC_STATIC, ACC_FINAL
private boolean initialized;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
com.sun.crypto.provider.SymmetricCipher blockCipher;
descriptor: Lcom/sun/crypto/provider/SymmetricCipher;
flags: (0x0000)
private com.sun.crypto.provider.GaloisCounterMode$GCMEngine engine;
descriptor: Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
flags: (0x0002) ACC_PRIVATE
private boolean encryption;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
int tagLenBytes;
descriptor: I
flags: (0x0000)
int keySize;
descriptor: I
flags: (0x0000)
boolean reInit;
descriptor: Z
flags: (0x0000)
byte[] lastKey;
descriptor: [B
flags: (0x0000)
byte[] lastIv;
descriptor: [B
flags: (0x0000)
byte[] iv;
descriptor: [B
flags: (0x0000)
java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0000)
private static final java.lang.invoke.VarHandle wrapToByteArray;
descriptor: Ljava/lang/invoke/VarHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: bipush 12
putstatic com.sun.crypto.provider.GaloisCounterMode.DEFAULT_IV_LEN:I
1: bipush 16
putstatic com.sun.crypto.provider.GaloisCounterMode.DEFAULT_TAG_LEN:I
2: iconst_0
newarray 8
putstatic com.sun.crypto.provider.GaloisCounterMode.EMPTY_BUF:[B
3: ldc [J
4: getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
5: invokestatic java.lang.invoke.MethodHandles.byteArrayViewVarHandle:(Ljava/lang/Class;Ljava/nio/ByteOrder;)Ljava/lang/invoke/VarHandle;
6: putstatic com.sun.crypto.provider.GaloisCounterMode.wrapToByteArray:Ljava/lang/invoke/VarHandle;
7: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(int, com.sun.crypto.provider.SymmetricCipher);
descriptor: (ILcom/sun/crypto/provider/SymmetricCipher;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial javax.crypto.CipherSpi.<init>:()V
1: aload 0
iconst_0
putfield com.sun.crypto.provider.GaloisCounterMode.initialized:Z
2: aload 0
iconst_1
putfield com.sun.crypto.provider.GaloisCounterMode.encryption:Z
3: aload 0
getstatic com.sun.crypto.provider.GaloisCounterMode.DEFAULT_TAG_LEN:I
putfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
4: aload 0
iconst_0
putfield com.sun.crypto.provider.GaloisCounterMode.reInit:Z
5: aload 0
getstatic com.sun.crypto.provider.GaloisCounterMode.EMPTY_BUF:[B
putfield com.sun.crypto.provider.GaloisCounterMode.lastKey:[B
6: aload 0
getstatic com.sun.crypto.provider.GaloisCounterMode.EMPTY_BUF:[B
putfield com.sun.crypto.provider.GaloisCounterMode.lastIv:[B
7: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
8: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.random:Ljava/security/SecureRandom;
9: aload 0
aload 2
putfield com.sun.crypto.provider.GaloisCounterMode.blockCipher:Lcom/sun/crypto/provider/SymmetricCipher;
10: aload 0
iload 1
putfield com.sun.crypto.provider.GaloisCounterMode.keySize:I
11: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 12 1 keySize I
0 12 2 embeddedCipher Lcom/sun/crypto/provider/SymmetricCipher;
MethodParameters:
Name Flags
keySize
embeddedCipher
void init(int, java.security.Key, javax.crypto.spec.GCMParameterSpec);
descriptor: (ILjava/security/Key;Ljavax/crypto/spec/GCMParameterSpec;)V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 1
iconst_1
if_icmpeq 2
1: iload 1
iconst_3
if_icmpeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack: com.sun.crypto.provider.GaloisCounterMode
2: iconst_1
3: StackMap locals: com.sun.crypto.provider.GaloisCounterMode int java.security.Key javax.crypto.spec.GCMParameterSpec
StackMap stack: com.sun.crypto.provider.GaloisCounterMode int
putfield com.sun.crypto.provider.GaloisCounterMode.encryption:Z
4: aload 3
invokevirtual javax.crypto.spec.GCMParameterSpec.getTLen:()I
istore 4
start local 4 5: iload 4
bipush 96
if_icmplt 6
iload 4
sipush 128
if_icmpgt 6
iload 4
bipush 7
iand
ifeq 9
6: StackMap locals: int
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
7: ldc "Unsupported TLen value. Must be one of {128, 120, 112, 104, 96}"
8: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
iload 4
iconst_3
ishr
putfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
10: aload 2
ifnonnull 12
11: new java.security.InvalidKeyException
dup
ldc "The key must not be null"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.security.Key.getEncoded:()[B
astore 5
start local 5 13: aload 5
ifnonnull 15
14: new java.security.InvalidKeyException
dup
ldc "Key encoding must not be null"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals: byte[]
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.keySize:I
iconst_m1
if_icmpeq 20
aload 5
arraylength
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.keySize:I
if_icmpeq 20
16: aload 5
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
17: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "The key must be "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
18: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.keySize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.encryption:Z
ifeq 31
21: aload 5
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.lastKey:[B
invokestatic java.security.MessageDigest.isEqual:([B[B)Z
ifeq 27
22: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.lastIv:[B
invokestatic java.security.MessageDigest.isEqual:([B[B)Z
ifeq 27
23: aload 5
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
24: new java.security.InvalidAlgorithmParameterException
dup
25: ldc "Cannot reuse iv for GCM encryption"
26: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
27: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.lastKey:[B
ifnull 29
28: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.lastKey:[B
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
29: StackMap locals:
StackMap stack:
aload 0
aload 5
putfield com.sun.crypto.provider.GaloisCounterMode.lastKey:[B
30: aload 0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
putfield com.sun.crypto.provider.GaloisCounterMode.lastIv:[B
31: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.sun.crypto.provider.GaloisCounterMode.reInit:Z
32: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.blockCipher:Lcom/sun/crypto/provider/SymmetricCipher;
iconst_0
aload 2
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
aload 5
invokevirtual com.sun.crypto.provider.SymmetricCipher.init:(ZLjava/lang/String;[B)V
33: goto 38
StackMap locals:
StackMap stack: java.lang.Throwable
34: astore 6
35: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.encryption:Z
ifne 37
36: aload 5
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
37: StackMap locals: java.lang.Throwable
StackMap stack:
aload 6
athrow
38: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.encryption:Z
ifne 40
39: aload 5
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
40: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 41 1 opmode I
0 41 2 key Ljava/security/Key;
0 41 3 spec Ljavax/crypto/spec/GCMParameterSpec;
5 41 4 tagLen I
13 41 5 keyValue [B
Exception table:
from to target type
32 34 34 any
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
opmode
key
spec
protected void engineSetMode(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "GCM"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 2
1: new java.security.NoSuchAlgorithmException
dup
ldc "Mode must be GCM"
invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 3 1 mode Ljava/lang/String;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
mode
protected void engineSetPadding(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "NoPadding"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 2
1: new javax.crypto.NoSuchPaddingException
dup
ldc "Padding must be NoPadding"
invokespecial javax.crypto.NoSuchPaddingException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 3 1 padding Ljava/lang/String;
Exceptions:
throws javax.crypto.NoSuchPaddingException
MethodParameters:
Name Flags
padding
protected int engineGetBlockSize();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.blockCipher:Lcom/sun/crypto/provider/SymmetricCipher;
invokevirtual com.sun.crypto.provider.SymmetricCipher.getBlockSize:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
protected int engineGetOutputSize(int);
descriptor: (I)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.checkInit:()V
1: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
iload 1
iconst_1
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.getOutputSize:(IZ)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 2 1 inputLen I
MethodParameters:
Name Flags
inputLen
protected int engineGetKeySize(java.security.Key);
descriptor: (Ljava/security/Key;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.security.Key.getEncoded:()[B
astore 2
start local 2 1: aload 2
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
2: aload 2
arraylength
invokestatic com.sun.crypto.provider.AESCrypt.isKeySizeValid:(I)Z
ifne 6
3: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "Invalid key length: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: aload 2
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: byte[]
StackMap stack:
aload 2
arraylength
bipush 8
invokestatic java.lang.Math.multiplyExact:(II)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 7 1 key Ljava/security/Key;
1 7 2 encoded [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected byte[] engineGetIV();
descriptor: ()[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
private static byte[] createIv(java.security.SecureRandom);
descriptor: (Ljava/security/SecureRandom;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic com.sun.crypto.provider.GaloisCounterMode.DEFAULT_IV_LEN:I
newarray 8
astore 1
start local 1 1: aload 0
ifnonnull 3
2: invokestatic sun.security.jca.JCAUtil.getDefSecureRandom:()Ljava/security/SecureRandom;
astore 0
3: StackMap locals: byte[]
StackMap stack:
aload 0
aload 1
invokevirtual java.security.SecureRandom.nextBytes:([B)V
4: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 rand Ljava/security/SecureRandom;
1 5 1 iv [B
MethodParameters:
Name Flags
rand
protected java.security.AlgorithmParameters engineGetParameters();
descriptor: ()Ljava/security/AlgorithmParameters;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=1
start local 0 0: new javax.crypto.spec.GCMParameterSpec
dup
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.tagLenBytes:I
bipush 8
imul
1: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
ifnonnull 2
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.random:Ljava/security/SecureRandom;
invokestatic com.sun.crypto.provider.GaloisCounterMode.createIv:(Ljava/security/SecureRandom;)[B
goto 3
StackMap locals: com.sun.crypto.provider.GaloisCounterMode
StackMap stack: new 0 new 0 int
2: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
3: StackMap locals: com.sun.crypto.provider.GaloisCounterMode
StackMap stack: new 0 new 0 int byte[]
invokespecial javax.crypto.spec.GCMParameterSpec.<init>:(I[B)V
astore 1
start local 1 4: ldc "GCM"
5: invokestatic com.sun.crypto.provider.SunJCE.getInstance:()Lcom/sun/crypto/provider/SunJCE;
6: invokestatic java.security.AlgorithmParameters.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/AlgorithmParameters;
7: astore 2
start local 2 8: aload 2
aload 1
invokevirtual java.security.AlgorithmParameters.init:(Ljava/security/spec/AlgorithmParameterSpec;)V
9: aload 2
10: areturn
end local 2 11: StackMap locals: com.sun.crypto.provider.GaloisCounterMode javax.crypto.spec.GCMParameterSpec
StackMap stack: java.security.GeneralSecurityException
astore 2
start local 2 12: new java.lang.RuntimeException
dup
aload 2
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
4 13 1 spec Ljavax/crypto/spec/GCMParameterSpec;
8 11 2 params Ljava/security/AlgorithmParameters;
12 13 2 e Ljava/security/GeneralSecurityException;
Exception table:
from to target type
4 10 11 Class java.security.NoSuchAlgorithmException
4 10 11 Class java.security.spec.InvalidParameterSpecException
protected void engineInit(int, java.security.Key, java.security.SecureRandom);
descriptor: (ILjava/security/Key;Ljava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
1: iload 1
iconst_2
if_icmpeq 2
iload 1
iconst_4
if_icmpne 3
2: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "No GCMParameterSpec specified"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 2
aconst_null
aload 3
invokevirtual com.sun.crypto.provider.GaloisCounterMode.engineInit:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
4: goto 6
StackMap locals:
StackMap stack: java.security.InvalidAlgorithmParameterException
5: pop
6: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 7 1 opmode I
0 7 2 key Ljava/security/Key;
0 7 3 random Ljava/security/SecureRandom;
Exception table:
from to target type
3 4 5 Class java.security.InvalidAlgorithmParameterException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
opmode
key
random
protected void engineInit(int, java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
descriptor: (ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 4
putfield com.sun.crypto.provider.GaloisCounterMode.random:Ljava/security/SecureRandom;
1: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
2: aload 3
ifnonnull 6
3: aload 0
aload 4
invokestatic com.sun.crypto.provider.GaloisCounterMode.createIv:(Ljava/security/SecureRandom;)[B
putfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
4: new javax.crypto.spec.GCMParameterSpec
dup
getstatic com.sun.crypto.provider.GaloisCounterMode.DEFAULT_TAG_LEN:I
bipush 8
imul
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
invokespecial javax.crypto.spec.GCMParameterSpec.<init>:(I[B)V
astore 5
start local 5 5: goto 16
end local 5 6: StackMap locals:
StackMap stack:
aload 3
instanceof javax.crypto.spec.GCMParameterSpec
ifne 10
7: new java.security.InvalidAlgorithmParameterException
dup
8: ldc "AlgorithmParameterSpec not of GCMParameterSpec"
9: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
aload 3
checkcast javax.crypto.spec.GCMParameterSpec
astore 5
start local 5 11: aload 0
aload 5
invokevirtual javax.crypto.spec.GCMParameterSpec.getIV:()[B
putfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
12: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
ifnonnull 14
13: new java.security.InvalidAlgorithmParameterException
dup
ldc "IV is null"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals: javax.crypto.spec.GCMParameterSpec
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.iv:[B
arraylength
ifne 16
15: new java.security.InvalidAlgorithmParameterException
dup
ldc "IV is empty"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 2
aload 5
invokevirtual com.sun.crypto.provider.GaloisCounterMode.init:(ILjava/security/Key;Ljavax/crypto/spec/GCMParameterSpec;)V
17: aload 0
iconst_1
putfield com.sun.crypto.provider.GaloisCounterMode.initialized:Z
18: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 19 1 opmode I
0 19 2 key Ljava/security/Key;
0 19 3 params Ljava/security/spec/AlgorithmParameterSpec;
0 19 4 random Ljava/security/SecureRandom;
5 6 5 spec Ljavax/crypto/spec/GCMParameterSpec;
11 19 5 spec Ljavax/crypto/spec/GCMParameterSpec;
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
opmode
key
params
random
protected void engineInit(int, java.security.Key, java.security.AlgorithmParameters, java.security.SecureRandom);
descriptor: (ILjava/security/Key;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aconst_null
astore 5
start local 5 1: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
2: aload 3
ifnull 7
3: aload 3
ldc Ljavax/crypto/spec/GCMParameterSpec;
invokevirtual java.security.AlgorithmParameters.getParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
checkcast javax.crypto.spec.GCMParameterSpec
astore 5
4: goto 7
StackMap locals: com.sun.crypto.provider.GaloisCounterMode int java.security.Key java.security.AlgorithmParameters java.security.SecureRandom javax.crypto.spec.GCMParameterSpec
StackMap stack: java.security.spec.InvalidParameterSpecException
5: astore 6
start local 6 6: new java.security.InvalidAlgorithmParameterException
dup
aload 6
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 6 7: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 2
aload 5
aload 4
invokevirtual com.sun.crypto.provider.GaloisCounterMode.engineInit:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
8: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 9 1 opmode I
0 9 2 key Ljava/security/Key;
0 9 3 params Ljava/security/AlgorithmParameters;
0 9 4 random Ljava/security/SecureRandom;
1 9 5 spec Ljavax/crypto/spec/GCMParameterSpec;
6 7 6 e Ljava/security/spec/InvalidParameterSpecException;
Exception table:
from to target type
3 4 5 Class java.security.spec.InvalidParameterSpecException
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
opmode
key
params
random
void checkInit();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.initialized:Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "Operation not initialized."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
ifnonnull 7
3: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.encryption:Z
ifeq 6
4: aload 0
new com.sun.crypto.provider.GaloisCounterMode$GCMEncrypt
dup
aload 0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.blockCipher:Lcom/sun/crypto/provider/SymmetricCipher;
invokespecial com.sun.crypto.provider.GaloisCounterMode$GCMEncrypt.<init>:(Lcom/sun/crypto/provider/GaloisCounterMode;Lcom/sun/crypto/provider/SymmetricCipher;)V
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
new com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt
dup
aload 0
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.blockCipher:Lcom/sun/crypto/provider/SymmetricCipher;
invokespecial com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.<init>:(Lcom/sun/crypto/provider/GaloisCounterMode;Lcom/sun/crypto/provider/SymmetricCipher;)V
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
void checkReInit();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.reInit:Z
ifeq 4
1: new java.lang.IllegalStateException
dup
2: ldc "Must use either different key or iv for GCM encryption"
3: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
protected byte[] engineUpdate(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.checkInit:()V
1: aload 1
iload 2
iload 3
invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
2: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
aload 1
iload 2
iload 3
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.doUpdate:([BII)[B
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 3 1 input [B
0 3 2 inputOffset I
0 3 3 inputLen I
MethodParameters:
Name Flags
input
inputOffset
inputLen
protected int engineUpdate(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.checkInit:()V
1: aload 1
iload 2
iload 3
invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
2: aload 4
iload 5
3: aload 4
arraylength
iload 5
isub
4: invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
5: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
iload 3
iconst_0
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.getOutputSize:(IZ)I
istore 6
start local 6 6: iload 6
aload 4
arraylength
iload 5
isub
if_icmple 10
7: new javax.crypto.ShortBufferException
dup
new java.lang.StringBuilder
dup
ldc "Output buffer too small, must be at least "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
aload 1
iload 2
iload 3
aload 4
11: iload 5
12: invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.doUpdate:([BII[BI)I
ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 13 1 input [B
0 13 2 inputOffset I
0 13 3 inputLen I
0 13 4 output [B
0 13 5 outputOffset I
6 13 6 len I
Exceptions:
throws javax.crypto.ShortBufferException
MethodParameters:
Name Flags
input
inputOffset
inputLen
output
outputOffset
protected int engineUpdate(java.nio.ByteBuffer, java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.checkInit:()V
1: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
iconst_0
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.getOutputSize:(IZ)I
istore 3
start local 3 2: iload 3
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
if_icmple 6
3: new javax.crypto.ShortBufferException
dup
4: new java.lang.StringBuilder
dup
ldc "Output buffer must be at least "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
aload 1
aload 2
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.doUpdate:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 7 1 src Ljava/nio/ByteBuffer;
0 7 2 dst Ljava/nio/ByteBuffer;
2 7 3 len I
Exceptions:
throws javax.crypto.ShortBufferException
MethodParameters:
Name Flags
src
dst
protected void engineUpdateAAD(byte[], int, int);
descriptor: ([BII)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.checkInit:()V
1: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
aload 1
iload 2
iload 3
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.updateAAD:([BII)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 3 1 src [B
0 3 2 offset I
0 3 3 len I
MethodParameters:
Name Flags
src
offset
len
protected void engineUpdateAAD(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.checkInit:()V
1: aload 1
invokevirtual java.nio.ByteBuffer.hasArray:()Z
ifeq 7
2: aload 1
invokevirtual java.nio.ByteBuffer.position:()I
istore 2
start local 2 3: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 3
start local 3 4: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
aload 1
invokevirtual java.nio.ByteBuffer.array:()[B
aload 1
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
iload 2
iadd
iload 3
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.updateAAD:([BII)V
5: aload 1
iload 2
iload 3
iadd
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
end local 3 end local 2 6: goto 10
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
newarray 8
astore 2
start local 2 8: aload 1
aload 2
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
9: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
aload 2
iconst_0
aload 2
arraylength
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.updateAAD:([BII)V
end local 2 10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 11 1 src Ljava/nio/ByteBuffer;
3 6 2 pos I
4 6 3 len I
8 10 2 aad [B
MethodParameters:
Name Flags
src
protected byte[] engineDoFinal(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: getstatic com.sun.crypto.provider.GaloisCounterMode.EMPTY_BUF:[B
astore 1
2: StackMap locals:
StackMap stack:
aload 1
iload 2
iload 3
invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
3: goto 6
StackMap locals:
StackMap stack: java.lang.ArrayIndexOutOfBoundsException
4: pop
5: new javax.crypto.IllegalBlockSizeException
dup
ldc "input array invalid"
invokespecial javax.crypto.IllegalBlockSizeException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.checkInit:()V
7: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
iload 3
iconst_1
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.getOutputSize:(IZ)I
newarray 8
astore 4
start local 4 8: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
aload 1
iload 2
iload 3
aload 4
iconst_0
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.doFinal:([BII[BI)I
pop
9: goto 15
StackMap locals: com.sun.crypto.provider.GaloisCounterMode byte[] int int byte[]
StackMap stack: javax.crypto.ShortBufferException
10: astore 5
start local 5 11: new java.security.ProviderException
dup
aload 5
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 12: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
13: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
14: aload 6
athrow
15: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
16: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 17 1 input [B
0 17 2 inputOffset I
0 17 3 inputLen I
8 17 4 output [B
11 12 5 e Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
2 3 4 Class java.lang.ArrayIndexOutOfBoundsException
8 9 10 Class javax.crypto.ShortBufferException
8 12 12 any
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
MethodParameters:
Name Flags
input
inputOffset
inputLen
protected int engineDoFinal(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
ifnonnull 2
1: getstatic com.sun.crypto.provider.GaloisCounterMode.EMPTY_BUF:[B
astore 1
2: StackMap locals:
StackMap stack:
aload 1
iload 2
iload 3
invokestatic sun.security.util.ArrayUtil.nullAndBoundsCheck:([BII)V
3: goto 7
StackMap locals:
StackMap stack: java.lang.ArrayIndexOutOfBoundsException
4: pop
5: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
6: new javax.crypto.IllegalBlockSizeException
dup
ldc "input array invalid"
invokespecial javax.crypto.IllegalBlockSizeException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.checkInit:()V
8: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
aload 1
iload 2
iload 3
aload 4
9: iload 5
10: invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.doFinal:([BII[BI)I
istore 6
start local 6 11: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
12: iload 6
ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 13 1 input [B
0 13 2 inputOffset I
0 13 3 inputLen I
0 13 4 output [B
0 13 5 outputOffset I
11 13 6 len I
Exception table:
from to target type
2 3 4 Class java.lang.ArrayIndexOutOfBoundsException
Exceptions:
throws javax.crypto.ShortBufferException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
MethodParameters:
Name Flags
input
inputOffset
inputLen
output
outputOffset
protected int engineDoFinal(java.nio.ByteBuffer, java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.checkInit:()V
1: aload 0
getfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
aload 1
aload 2
invokevirtual com.sun.crypto.provider.GaloisCounterMode$GCMEngine.doFinal:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
istore 3
start local 3 2: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
3: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 4 1 src Ljava/nio/ByteBuffer;
0 4 2 dst Ljava/nio/ByteBuffer;
2 4 3 len I
Exceptions:
throws javax.crypto.ShortBufferException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
MethodParameters:
Name Flags
src
dst
protected byte[] engineWrap(java.security.Key);
descriptor: (Ljava/security/Key;)[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.checkInit:()V
2: aload 1
invokeinterface java.security.Key.getEncoded:()[B
astore 2
3: aload 2
ifnull 4
aload 2
arraylength
ifne 7
4: StackMap locals: byte[]
StackMap stack:
new java.security.InvalidKeyException
dup
5: ldc "Cannot get an encoding of the key to be wrapped"
6: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_0
aload 2
arraylength
invokevirtual com.sun.crypto.provider.GaloisCounterMode.engineDoFinal:([BII)[B
astore 4
8: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
9: aload 2
ifnull 11
10: aload 2
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
11: StackMap locals: com.sun.crypto.provider.GaloisCounterMode java.security.Key byte[] top byte[]
StackMap stack:
aload 4
areturn
12: StackMap locals: com.sun.crypto.provider.GaloisCounterMode java.security.Key byte[]
StackMap stack: javax.crypto.BadPaddingException
pop
13: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
14: aload 2
ifnull 21
15: aload 2
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
goto 21
16: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
17: aload 0
aconst_null
putfield com.sun.crypto.provider.GaloisCounterMode.engine:Lcom/sun/crypto/provider/GaloisCounterMode$GCMEngine;
18: aload 2
ifnull 20
19: aload 2
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
20: StackMap locals: java.lang.Throwable
StackMap stack:
aload 3
athrow
21: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 22 1 key Ljava/security/Key;
1 22 2 encodedKey [B
Exception table:
from to target type
2 8 12 Class javax.crypto.BadPaddingException
2 8 16 any
12 13 16 any
Exceptions:
throws javax.crypto.IllegalBlockSizeException, java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected java.security.Key engineUnwrap(byte[], java.lang.String, int);
descriptor: ([BLjava/lang/String;I)Ljava/security/Key;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual com.sun.crypto.provider.GaloisCounterMode.checkInit:()V
1: aload 0
aload 1
iconst_0
2: aload 1
arraylength
3: invokevirtual com.sun.crypto.provider.GaloisCounterMode.engineDoFinal:([BII)[B
astore 4
start local 4 4: goto 13
end local 4 StackMap locals:
StackMap stack: javax.crypto.BadPaddingException
5: pop
6: new java.security.InvalidKeyException
dup
7: ldc "The wrapped key is not padded correctly"
8: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack: javax.crypto.IllegalBlockSizeException
pop
10: new java.security.InvalidKeyException
dup
11: ldc "The wrapped key does not have the correct length"
12: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
start local 4 13: StackMap locals: byte[]
StackMap stack:
aload 4
aload 2
14: iload 3
15: invokestatic com.sun.crypto.provider.ConstructKeys.constructKey:([BLjava/lang/String;I)Ljava/security/Key;
astore 6
16: aload 4
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
17: aload 6
areturn
18: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
19: aload 4
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
20: aload 5
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/sun/crypto/provider/GaloisCounterMode;
0 21 1 wrappedKey [B
0 21 2 wrappedKeyAlgorithm Ljava/lang/String;
0 21 3 wrappedKeyType I
4 5 4 encodedKey [B
13 21 4 encodedKey [B
Exception table:
from to target type
1 4 5 Class javax.crypto.BadPaddingException
1 4 9 Class javax.crypto.IllegalBlockSizeException
13 16 18 any
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
wrappedKey
wrappedKeyAlgorithm
wrappedKeyType
static void increment32(byte[]);
descriptor: ([B)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
arraylength
iconst_1
isub
istore 1
start local 1 1: goto 3
2: StackMap locals: int
StackMap stack:
iinc 1 -1
3: StackMap locals:
StackMap stack:
iload 1
aload 0
arraylength
iconst_4
isub
if_icmplt 4
aload 0
iload 1
dup2
baload
iconst_1
iadd
i2b
dup_x2
bastore
ifeq 2
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 value [B
1 5 1 n I
MethodParameters:
Name Flags
value
private static byte[] getLengthBlock(int);
descriptor: (I)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: bipush 16
newarray 8
astore 1
start local 1 1: getstatic com.sun.crypto.provider.GaloisCounterMode.wrapToByteArray:Ljava/lang/invoke/VarHandle;
aload 1
bipush 8
iload 0
i2l
ldc 4294967295
land
iconst_3
lshl
invokevirtual java.lang.invoke.VarHandle.set:([BIJ)V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 ivLenInBytes I
1 3 1 out [B
MethodParameters:
Name Flags
ivLenInBytes
private static byte[] getLengthBlock(int, int);
descriptor: (II)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: bipush 16
newarray 8
astore 2
start local 2 1: getstatic com.sun.crypto.provider.GaloisCounterMode.wrapToByteArray:Ljava/lang/invoke/VarHandle;
aload 2
iconst_0
iload 0
i2l
ldc 4294967295
land
iconst_3
lshl
invokevirtual java.lang.invoke.VarHandle.set:([BIJ)V
2: getstatic com.sun.crypto.provider.GaloisCounterMode.wrapToByteArray:Ljava/lang/invoke/VarHandle;
aload 2
bipush 8
iload 1
i2l
ldc 4294967295
land
iconst_3
lshl
invokevirtual java.lang.invoke.VarHandle.set:([BIJ)V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 aLenInBytes I
0 4 1 cLenInBytes I
1 4 2 out [B
MethodParameters:
Name Flags
aLenInBytes
cLenInBytes
private static byte[] expandToOneBlock(byte[], int, int, int);
descriptor: ([BIII)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iload 3
if_icmple 2
1: new java.security.ProviderException
dup
new java.lang.StringBuilder
dup
ldc "input "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " too long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 2
iload 3
if_icmpne 4
iload 1
ifne 4
3: aload 0
areturn
4: StackMap locals:
StackMap stack:
iload 3
newarray 8
astore 4
start local 4 5: aload 0
iload 1
aload 4
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 in [B
0 7 1 inOfs I
0 7 2 len I
0 7 3 blockSize I
5 7 4 paddedIn [B
MethodParameters:
Name Flags
in
inOfs
len
blockSize
private static byte[] getJ0(byte[], byte[], int);
descriptor: ([B[BI)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
arraylength
bipush 12
if_icmpne 4
1: aload 0
iconst_0
aload 0
arraylength
iload 2
invokestatic com.sun.crypto.provider.GaloisCounterMode.expandToOneBlock:([BIII)[B
astore 3
start local 3 2: aload 3
iload 2
iconst_1
isub
iconst_1
bastore
3: goto 17
end local 3 4: StackMap locals:
StackMap stack:
new com.sun.crypto.provider.GHASH
dup
aload 1
invokespecial com.sun.crypto.provider.GHASH.<init>:([B)V
astore 4
start local 4 5: aload 0
arraylength
iload 2
irem
istore 5
start local 5 6: iload 5
ifeq 14
7: aload 4
aload 0
iconst_0
aload 0
arraylength
iload 5
isub
invokevirtual com.sun.crypto.provider.GHASH.update:([BII)I
pop
8: aload 0
aload 0
arraylength
iload 5
isub
iload 5
9: iload 2
10: invokestatic com.sun.crypto.provider.GaloisCounterMode.expandToOneBlock:([BIII)[B
11: astore 6
start local 6 12: aload 4
aload 6
invokevirtual com.sun.crypto.provider.GHASH.update:([B)I
pop
end local 6 13: goto 15
14: StackMap locals: byte[] byte[] int top com.sun.crypto.provider.GHASH int
StackMap stack:
aload 4
aload 0
invokevirtual com.sun.crypto.provider.GHASH.update:([B)I
pop
15: StackMap locals:
StackMap stack:
aload 4
aload 0
arraylength
invokestatic com.sun.crypto.provider.GaloisCounterMode.getLengthBlock:(I)[B
invokevirtual com.sun.crypto.provider.GHASH.update:([B)I
pop
16: aload 4
invokevirtual com.sun.crypto.provider.GHASH.digest:()[B
astore 3
end local 5 end local 4 start local 3 17: StackMap locals: byte[] byte[] int byte[]
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 iv [B
0 18 1 subkeyH [B
0 18 2 blockSize I
2 4 3 j0 [B
17 18 3 j0 [B
5 17 4 g Lcom/sun/crypto/provider/GHASH;
6 17 5 lastLen I
12 13 6 padded [B
MethodParameters:
Name Flags
iv
subkeyH
blockSize
private static int implGCMCrypt(byte[], int, int, byte[], int, byte[], int, com.sun.crypto.provider.GCTR, com.sun.crypto.provider.GHASH);
descriptor: ([BII[BI[BILcom/sun/crypto/provider/GCTR;Lcom/sun/crypto/provider/GHASH;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=10, locals=11, args_size=9
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 0: iconst_0
istore 9
start local 9 1: iload 2
ldc 1048576
if_icmple 9
2: goto 8
3: StackMap locals: int
StackMap stack:
aload 0
iload 1
iload 9
iadd
ldc 1048576
aload 3
4: iload 4
iload 9
iadd
aload 5
iload 6
iload 9
iadd
aload 7
aload 8
5: invokestatic com.sun.crypto.provider.GaloisCounterMode.implGCMCrypt0:([BII[BI[BILcom/sun/crypto/provider/GCTR;Lcom/sun/crypto/provider/GHASH;)I
istore 10
start local 10 6: iload 9
iload 10
iadd
istore 9
7: iload 2
iload 10
isub
istore 2
end local 10 8: StackMap locals:
StackMap stack:
iload 2
ldc 1048576
if_icmpge 3
9: StackMap locals:
StackMap stack:
iload 2
ifle 13
10: iload 9
aload 0
iload 1
iload 9
iadd
iload 2
aload 3
11: iload 4
iload 9
iadd
aload 5
iload 6
iload 9
iadd
aload 7
aload 8
12: invokestatic com.sun.crypto.provider.GaloisCounterMode.implGCMCrypt0:([BII[BI[BILcom/sun/crypto/provider/GCTR;Lcom/sun/crypto/provider/GHASH;)I
iadd
istore 9
13: StackMap locals:
StackMap stack:
iload 9
ireturn
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 in [B
0 14 1 inOfs I
0 14 2 inLen I
0 14 3 ct [B
0 14 4 ctOfs I
0 14 5 out [B
0 14 6 outOfs I
0 14 7 gctr Lcom/sun/crypto/provider/GCTR;
0 14 8 ghash Lcom/sun/crypto/provider/GHASH;
1 14 9 len I
6 8 10 partlen I
MethodParameters:
Name Flags
in
inOfs
inLen
ct
ctOfs
out
outOfs
gctr
ghash
private static int implGCMCrypt0(byte[], int, int, byte[], int, byte[], int, com.sun.crypto.provider.GCTR, com.sun.crypto.provider.GHASH);
descriptor: ([BII[BI[BILcom/sun/crypto/provider/GCTR;Lcom/sun/crypto/provider/GHASH;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=8, locals=13, args_size=9
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 0: iload 2
iload 2
sipush 8192
irem
isub
istore 2
1: iconst_0
istore 9
start local 9 2: iload 4
istore 10
start local 10 3: iload 2
ldc 65536
if_icmplt 15
4: iconst_0
istore 11
start local 11 5: iload 2
bipush 6
idiv
istore 12
start local 12 6: iload 12
iload 12
aload 7
getfield com.sun.crypto.provider.GCTR.blockSize:I
irem
isub
istore 12
7: StackMap locals: byte[] int int byte[] int byte[] int com.sun.crypto.provider.GCTR com.sun.crypto.provider.GHASH int int int int
StackMap stack:
iload 9
aload 7
aload 0
iload 1
iload 9
iadd
iload 12
aload 5
8: iload 6
iload 9
iadd
9: invokevirtual com.sun.crypto.provider.GCTR.update:([BII[BI)I
iadd
istore 9
10: aload 8
aload 3
iload 10
iload 12
invokevirtual com.sun.crypto.provider.GHASH.update:([BII)I
pop
11: iload 4
iload 9
iadd
istore 10
12: iinc 11 1
iload 11
iconst_5
13: if_icmplt 7
14: iload 2
iload 9
isub
istore 2
end local 12 end local 11 15: StackMap locals:
StackMap stack:
iload 9
aload 7
aload 0
iload 1
iload 9
iadd
iload 2
aload 5
iload 6
iload 9
iadd
invokevirtual com.sun.crypto.provider.GCTR.update:([BII[BI)I
iadd
istore 9
16: aload 8
aload 3
iload 10
iload 2
invokevirtual com.sun.crypto.provider.GHASH.update:([BII)I
pop
17: iload 9
ireturn
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 in [B
0 18 1 inOfs I
0 18 2 inLen I
0 18 3 ct [B
0 18 4 ctOfs I
0 18 5 out [B
0 18 6 outOfs I
0 18 7 gctr Lcom/sun/crypto/provider/GCTR;
0 18 8 ghash Lcom/sun/crypto/provider/GHASH;
2 18 9 len I
3 18 10 cOfs I
5 15 11 i I
6 15 12 segments I
RuntimeVisibleAnnotations:
jdk.internal.vm.annotation.IntrinsicCandidate()
MethodParameters:
Name Flags
in
inOfs
inLen
ct
ctOfs
out
outOfs
gctr
ghash
}
SourceFile: "GaloisCounterMode.java"
NestMembers:
com.sun.crypto.provider.GaloisCounterMode$AES128 com.sun.crypto.provider.GaloisCounterMode$AES192 com.sun.crypto.provider.GaloisCounterMode$AES256 com.sun.crypto.provider.GaloisCounterMode$AESGCM com.sun.crypto.provider.GaloisCounterMode$DecryptOp com.sun.crypto.provider.GaloisCounterMode$EncryptOp com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt com.sun.crypto.provider.GaloisCounterMode$GCMEncrypt com.sun.crypto.provider.GaloisCounterMode$GCMEngine com.sun.crypto.provider.GaloisCounterMode$GCMOperation
InnerClasses:
public final AES128 = com.sun.crypto.provider.GaloisCounterMode$AES128 of com.sun.crypto.provider.GaloisCounterMode
public final AES192 = com.sun.crypto.provider.GaloisCounterMode$AES192 of com.sun.crypto.provider.GaloisCounterMode
public final AES256 = com.sun.crypto.provider.GaloisCounterMode$AES256 of com.sun.crypto.provider.GaloisCounterMode
public final AESGCM = com.sun.crypto.provider.GaloisCounterMode$AESGCM of com.sun.crypto.provider.GaloisCounterMode
final DecryptOp = com.sun.crypto.provider.GaloisCounterMode$DecryptOp of com.sun.crypto.provider.GaloisCounterMode
final EncryptOp = com.sun.crypto.provider.GaloisCounterMode$EncryptOp of com.sun.crypto.provider.GaloisCounterMode
GCMDecrypt = com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt of com.sun.crypto.provider.GaloisCounterMode
GCMEncrypt = com.sun.crypto.provider.GaloisCounterMode$GCMEncrypt of com.sun.crypto.provider.GaloisCounterMode
abstract GCMEngine = com.sun.crypto.provider.GaloisCounterMode$GCMEngine of com.sun.crypto.provider.GaloisCounterMode
public abstract GCMOperation = com.sun.crypto.provider.GaloisCounterMode$GCMOperation of com.sun.crypto.provider.GaloisCounterMode