final class com.sun.crypto.provider.CipherCore
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.crypto.provider.CipherCore
super_class: java.lang.Object
{
private byte[] buffer;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int blockSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int unitBytes;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int buffered;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int minBytes;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int diffBlocksize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private com.sun.crypto.provider.Padding padding;
descriptor: Lcom/sun/crypto/provider/Padding;
flags: (0x0002) ACC_PRIVATE
private com.sun.crypto.provider.FeedbackCipher cipher;
descriptor: Lcom/sun/crypto/provider/FeedbackCipher;
flags: (0x0002) ACC_PRIVATE
private int cipherMode;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean decrypting;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private static final int ECB_MODE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int CBC_MODE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int CFB_MODE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int OFB_MODE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int PCBC_MODE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int CTR_MODE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private static final int CTS_MODE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6
static final int GCM_MODE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 7
private boolean requireReinit;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private byte[] lastEncKey;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] lastEncIv;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
void <init>(com.sun.crypto.provider.SymmetricCipher, int);
descriptor: (Lcom/sun/crypto/provider/SymmetricCipher;I)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield com.sun.crypto.provider.CipherCore.buffer:[B
2: aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.blockSize:I
3: aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.unitBytes:I
4: aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.buffered:I
5: aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.minBytes:I
6: aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
7: aload 0
aconst_null
putfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
8: aload 0
aconst_null
putfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
9: aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.cipherMode:I
10: aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.decrypting:Z
11: aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.requireReinit:Z
12: aload 0
aconst_null
putfield com.sun.crypto.provider.CipherCore.lastEncKey:[B
13: aload 0
aconst_null
putfield com.sun.crypto.provider.CipherCore.lastEncIv:[B
14: aload 0
iload 2
putfield com.sun.crypto.provider.CipherCore.blockSize:I
15: aload 0
iload 2
putfield com.sun.crypto.provider.CipherCore.unitBytes:I
16: aload 0
iload 2
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
17: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
iconst_2
imul
newarray 8
putfield com.sun.crypto.provider.CipherCore.buffer:[B
18: aload 0
new com.sun.crypto.provider.ElectronicCodeBook
dup
aload 1
invokespecial com.sun.crypto.provider.ElectronicCodeBook.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;)V
putfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
19: aload 0
new com.sun.crypto.provider.PKCS5Padding
dup
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
invokespecial com.sun.crypto.provider.PKCS5Padding.<init>:(I)V
putfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
20: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/sun/crypto/provider/CipherCore;
0 21 1 impl Lcom/sun/crypto/provider/SymmetricCipher;
0 21 2 blkSize I
MethodParameters:
Name Flags
impl
blkSize
void setMode(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.security.NoSuchAlgorithmException
dup
ldc "null mode"
invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 2
start local 2 3: aload 2
ldc "ECB"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: return
5: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.getEmbeddedCipher:()Lcom/sun/crypto/provider/SymmetricCipher;
astore 3
start local 3 6: aload 2
ldc "CBC"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
7: aload 0
iconst_1
putfield com.sun.crypto.provider.CipherCore.cipherMode:I
8: aload 0
new com.sun.crypto.provider.CipherBlockChaining
dup
aload 3
invokespecial com.sun.crypto.provider.CipherBlockChaining.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;)V
putfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
9: goto 48
StackMap locals: com.sun.crypto.provider.SymmetricCipher
StackMap stack:
10: aload 2
ldc "CTS"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 16
11: aload 0
bipush 6
putfield com.sun.crypto.provider.CipherCore.cipherMode:I
12: aload 0
new com.sun.crypto.provider.CipherTextStealing
dup
aload 3
invokespecial com.sun.crypto.provider.CipherTextStealing.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;)V
putfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
13: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
iconst_1
iadd
putfield com.sun.crypto.provider.CipherCore.minBytes:I
14: aload 0
aconst_null
putfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
15: goto 48
StackMap locals:
StackMap stack:
16: aload 2
ldc "CTR"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 22
17: aload 0
iconst_5
putfield com.sun.crypto.provider.CipherCore.cipherMode:I
18: aload 0
new com.sun.crypto.provider.CounterMode
dup
aload 3
invokespecial com.sun.crypto.provider.CounterMode.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;)V
putfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
19: aload 0
iconst_1
putfield com.sun.crypto.provider.CipherCore.unitBytes:I
20: aload 0
aconst_null
putfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
21: goto 48
StackMap locals:
StackMap stack:
22: aload 2
ldc "GCM"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 31
23: aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
bipush 16
if_icmpeq 27
24: new java.security.NoSuchAlgorithmException
dup
25: ldc "GCM mode can only be used for AES cipher"
26: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
27: StackMap locals:
StackMap stack:
aload 0
bipush 7
putfield com.sun.crypto.provider.CipherCore.cipherMode:I
28: aload 0
new com.sun.crypto.provider.GaloisCounterMode
dup
aload 3
invokespecial com.sun.crypto.provider.GaloisCounterMode.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;)V
putfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
29: aload 0
aconst_null
putfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
30: goto 48
StackMap locals:
StackMap stack:
31: aload 2
ldc "CFB"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 36
32: aload 0
iconst_2
putfield com.sun.crypto.provider.CipherCore.cipherMode:I
33: aload 0
aload 1
ldc "CFB"
invokevirtual java.lang.String.length:()I
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
invokestatic com.sun.crypto.provider.CipherCore.getNumOfUnit:(Ljava/lang/String;II)I
putfield com.sun.crypto.provider.CipherCore.unitBytes:I
34: aload 0
new com.sun.crypto.provider.CipherFeedback
dup
aload 3
aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
invokespecial com.sun.crypto.provider.CipherFeedback.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;I)V
putfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
35: goto 48
StackMap locals:
StackMap stack:
36: aload 2
ldc "OFB"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 41
37: aload 0
iconst_3
putfield com.sun.crypto.provider.CipherCore.cipherMode:I
38: aload 0
aload 1
ldc "OFB"
invokevirtual java.lang.String.length:()I
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
invokestatic com.sun.crypto.provider.CipherCore.getNumOfUnit:(Ljava/lang/String;II)I
putfield com.sun.crypto.provider.CipherCore.unitBytes:I
39: aload 0
new com.sun.crypto.provider.OutputFeedback
dup
aload 3
aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
invokespecial com.sun.crypto.provider.OutputFeedback.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;I)V
putfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
40: goto 48
StackMap locals:
StackMap stack:
41: aload 2
ldc "PCBC"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 45
42: aload 0
iconst_4
putfield com.sun.crypto.provider.CipherCore.cipherMode:I
43: aload 0
new com.sun.crypto.provider.PCBC
dup
aload 3
invokespecial com.sun.crypto.provider.PCBC.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;)V
putfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
44: goto 48
45: StackMap locals:
StackMap stack:
new java.security.NoSuchAlgorithmException
dup
new java.lang.StringBuilder
dup
ldc "Cipher mode: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
46: ldc " not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
47: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
48: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 49 0 this Lcom/sun/crypto/provider/CipherCore;
0 49 1 mode Ljava/lang/String;
3 49 2 modeUpperCase Ljava/lang/String;
6 49 3 rawImpl Lcom/sun/crypto/provider/SymmetricCipher;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
mode
int getMode();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/CipherCore;
private static int getNumOfUnit(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iload 2
istore 3
start local 3 1: aload 0
invokevirtual java.lang.String.length:()I
iload 1
if_icmple 14
2: aload 0
iload 1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.Integer.valueOf:(Ljava/lang/String;)Ljava/lang/Integer;
astore 5
start local 5 3: aload 5
invokevirtual java.lang.Integer.intValue:()I
istore 4
start local 4 4: iload 4
iconst_3
ishr
istore 3
end local 5 5: goto 10
end local 4 StackMap locals: java.lang.String int int int
StackMap stack: java.lang.NumberFormatException
6: pop
7: new java.security.NoSuchAlgorithmException
dup
8: new java.lang.StringBuilder
dup
ldc "Algorithm mode: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " not implemented"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
start local 4 10: StackMap locals: int
StackMap stack:
iload 4
bipush 8
irem
ifne 11
iload 3
iload 2
if_icmple 14
11: StackMap locals:
StackMap stack:
new java.security.NoSuchAlgorithmException
dup
12: new java.lang.StringBuilder
dup
ldc "Invalid algorithm mode: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
end local 4 14: StackMap locals:
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 mode Ljava/lang/String;
0 15 1 offset I
0 15 2 blockSize I
1 15 3 result I
4 6 4 numInt I
10 14 4 numInt I
3 5 5 num Ljava/lang/Integer;
Exception table:
from to target type
2 5 6 Class java.lang.NumberFormatException
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
mode
offset
blockSize
void setPadding(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new javax.crypto.NoSuchPaddingException
dup
ldc "null padding"
invokespecial javax.crypto.NoSuchPaddingException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ldc "NoPadding"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 5
3: aload 0
aconst_null
putfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
4: goto 12
StackMap locals:
StackMap stack:
5: aload 1
ldc "ISO10126Padding"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 8
6: aload 0
new com.sun.crypto.provider.ISO10126Padding
dup
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
invokespecial com.sun.crypto.provider.ISO10126Padding.<init>:(I)V
putfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
7: goto 12
StackMap locals:
StackMap stack:
8: aload 1
ldc "PKCS5Padding"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 12
9: new javax.crypto.NoSuchPaddingException
dup
new java.lang.StringBuilder
dup
ldc "Padding: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: ldc " not implemented"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial javax.crypto.NoSuchPaddingException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 27
13: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
iconst_5
if_icmpeq 15
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 6
if_icmpeq 15
14: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpne 27
15: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
16: aconst_null
astore 2
start local 2 17: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
tableswitch { // 5 - 7
5: 18
6: 22
7: 20
default: 23
}
18: StackMap locals: java.lang.String
StackMap stack:
ldc "CTR"
astore 2
19: goto 23
20: StackMap locals:
StackMap stack:
ldc "GCM"
astore 2
21: goto 23
22: StackMap locals:
StackMap stack:
ldc "CTS"
astore 2
23: StackMap locals:
StackMap stack:
aload 2
ifnull 27
24: new javax.crypto.NoSuchPaddingException
dup
25: new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " mode must be used with NoPadding"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
26: invokespecial javax.crypto.NoSuchPaddingException.<init>:(Ljava/lang/String;)V
athrow
end local 2 27: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lcom/sun/crypto/provider/CipherCore;
0 28 1 paddingScheme Ljava/lang/String;
17 27 2 modeStr Ljava/lang/String;
Exceptions:
throws javax.crypto.NoSuchPaddingException
MethodParameters:
Name Flags
paddingScheme
int getOutputSize(int);
descriptor: (I)I
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
iconst_1
invokevirtual com.sun.crypto.provider.CipherCore.getOutputSizeByOperation:(IZ)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/CipherCore;
0 1 1 inputLen I
MethodParameters:
Name Flags
inputLen
private int getOutputSizeByOperation(int, boolean);
descriptor: (IZ)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.getBufferedLength:()I
invokestatic java.lang.Math.addExact:(II)I
istore 3
start local 3 1: iload 3
iload 1
invokestatic java.lang.Math.addExact:(II)I
istore 3
2: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
tableswitch { // 7 - 7
7: 3
default: 12
}
3: StackMap locals: int
StackMap stack:
iload 2
ifeq 9
4: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
checkcast com.sun.crypto.provider.GaloisCounterMode
invokevirtual com.sun.crypto.provider.GaloisCounterMode.getTagLen:()I
istore 4
start local 4 5: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 8
6: iload 3
iload 4
invokestatic java.lang.Math.addExact:(II)I
istore 3
7: goto 9
8: StackMap locals: int
StackMap stack:
iload 3
iload 4
isub
istore 3
end local 4 9: StackMap locals:
StackMap stack:
iload 3
ifge 21
10: iconst_0
istore 3
11: goto 21
12: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 21
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 21
13: aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 20
14: iload 3
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
if_icmpge 17
15: aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
istore 3
16: goto 21
17: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
isub
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
irem
istore 4
start local 4 18: iload 3
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
iload 4
isub
invokestatic java.lang.Math.addExact:(II)I
istore 3
end local 4 19: goto 21
20: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
iload 3
invokeinterface com.sun.crypto.provider.Padding.padLength:(I)I
invokestatic java.lang.Math.addExact:(II)I
istore 3
21: StackMap locals:
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lcom/sun/crypto/provider/CipherCore;
0 22 1 inputLen I
0 22 2 isDoFinal Z
1 22 3 totalLen I
5 9 4 tagLen I
18 19 4 residue I
MethodParameters:
Name Flags
inputLen
isDoFinal
byte[] getIV();
descriptor: ()[B
flags: (0x0000)
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.getIV:()[B
astore 1
start local 1 1: aload 1
ifnonnull 2
aconst_null
goto 3
StackMap locals: byte[]
StackMap stack:
2: aload 1
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
StackMap locals:
StackMap stack: byte[]
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/crypto/provider/CipherCore;
1 4 1 iv [B
java.security.AlgorithmParameters getParameters(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/security/AlgorithmParameters;
flags: (0x0000)
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 3: aload 0
invokevirtual com.sun.crypto.provider.CipherCore.getIV:()[B
astore 4
start local 4 4: aload 4
ifnonnull 10
5: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpne 8
6: getstatic com.sun.crypto.provider.GaloisCounterMode.DEFAULT_IV_LEN:I
newarray 8
astore 4
7: goto 9
8: StackMap locals: com.sun.crypto.provider.CipherCore java.lang.String java.security.AlgorithmParameters top byte[]
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
newarray 8
astore 4
9: StackMap locals:
StackMap stack:
invokestatic com.sun.crypto.provider.SunJCE.getRandom:()Ljava/security/SecureRandom;
aload 4
invokevirtual java.security.SecureRandom.nextBytes:([B)V
10: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpne 16
11: ldc "GCM"
astore 1
12: new javax.crypto.spec.GCMParameterSpec
dup
13: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
checkcast com.sun.crypto.provider.GaloisCounterMode
invokevirtual com.sun.crypto.provider.GaloisCounterMode.getTagLen:()I
bipush 8
imul
aload 4
14: invokespecial javax.crypto.spec.GCMParameterSpec.<init>:(I[B)V
astore 3
start local 3 15: goto 23
end local 3 16: StackMap locals:
StackMap stack:
aload 1
ldc "RC2"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 22
17: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.getEmbeddedCipher:()Lcom/sun/crypto/provider/SymmetricCipher;
checkcast com.sun.crypto.provider.RC2Crypt
astore 5
start local 5 18: new javax.crypto.spec.RC2ParameterSpec
dup
19: aload 5
invokevirtual com.sun.crypto.provider.RC2Crypt.getEffectiveKeyBits:()I
aload 4
20: invokespecial javax.crypto.spec.RC2ParameterSpec.<init>:(I[B)V
astore 3
end local 5 start local 3 21: goto 23
end local 3 22: StackMap locals:
StackMap stack:
new javax.crypto.spec.IvParameterSpec
dup
aload 4
invokespecial javax.crypto.spec.IvParameterSpec.<init>:([B)V
astore 3
start local 3 23: StackMap locals: com.sun.crypto.provider.CipherCore java.lang.String java.security.AlgorithmParameters java.security.spec.AlgorithmParameterSpec byte[]
StackMap stack:
aload 1
24: invokestatic com.sun.crypto.provider.SunJCE.getInstance:()Lcom/sun/crypto/provider/SunJCE;
25: invokestatic java.security.AlgorithmParameters.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/AlgorithmParameters;
astore 2
26: aload 2
aload 3
invokevirtual java.security.AlgorithmParameters.init:(Ljava/security/spec/AlgorithmParameterSpec;)V
27: goto 34
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
28: pop
29: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Cannot find "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
30: ldc " AlgorithmParameters implementation in SunJCE provider"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
31: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
32: StackMap locals:
StackMap stack: java.security.spec.InvalidParameterSpecException
pop
33: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " not supported"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
34: StackMap locals:
StackMap stack:
aload 2
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lcom/sun/crypto/provider/CipherCore;
0 35 1 algName Ljava/lang/String;
3 35 2 params Ljava/security/AlgorithmParameters;
15 16 3 spec Ljava/security/spec/AlgorithmParameterSpec;
21 22 3 spec Ljava/security/spec/AlgorithmParameterSpec;
23 35 3 spec Ljava/security/spec/AlgorithmParameterSpec;
4 35 4 iv [B
18 21 5 rawImpl Lcom/sun/crypto/provider/RC2Crypt;
Exception table:
from to target type
23 27 28 Class java.security.NoSuchAlgorithmException
23 27 32 Class java.security.spec.InvalidParameterSpecException
MethodParameters:
Name Flags
algName
void init(int, java.security.Key, java.security.SecureRandom);
descriptor: (ILjava/security/Key;Ljava/security/SecureRandom;)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 1
aload 2
aconst_null
aload 3
invokevirtual com.sun.crypto.provider.CipherCore.init:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
1: goto 4
StackMap locals:
StackMap stack: java.security.InvalidAlgorithmParameterException
2: astore 4
start local 4 3: new java.security.InvalidKeyException
dup
aload 4
invokevirtual java.security.InvalidAlgorithmParameterException.getMessage:()Ljava/lang/String;
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 4 4: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/crypto/provider/CipherCore;
0 5 1 opmode I
0 5 2 key Ljava/security/Key;
0 5 3 random Ljava/security/SecureRandom;
3 4 4 e Ljava/security/InvalidAlgorithmParameterException;
Exception table:
from to target type
0 1 2 Class java.security.InvalidAlgorithmParameterException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
opmode
key
random
void init(int, java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
descriptor: (ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
flags: (0x0000)
Code:
stack=6, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
iload 1
iconst_2
if_icmpeq 2
1: iload 1
iconst_4
if_icmpeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack: com.sun.crypto.provider.CipherCore
2: iconst_1
3: StackMap locals: com.sun.crypto.provider.CipherCore int java.security.Key java.security.spec.AlgorithmParameterSpec java.security.SecureRandom
StackMap stack: com.sun.crypto.provider.CipherCore int
putfield com.sun.crypto.provider.CipherCore.decrypting:Z
4: aload 2
invokestatic com.sun.crypto.provider.CipherCore.getKeyBytes:(Ljava/security/Key;)[B
astore 5
start local 5 5: iconst_m1
istore 6
start local 6 6: aconst_null
astore 7
start local 7 7: aload 3
ifnull 40
8: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpne 21
9: aload 3
instanceof javax.crypto.spec.GCMParameterSpec
ifeq 18
10: aload 3
checkcast javax.crypto.spec.GCMParameterSpec
invokevirtual javax.crypto.spec.GCMParameterSpec.getTLen:()I
istore 6
11: iload 6
bipush 96
if_icmplt 12
iload 6
sipush 128
if_icmpgt 12
iload 6
bipush 7
iand
ifeq 15
12: StackMap locals: byte[] int byte[]
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
13: ldc "Unsupported TLen value; must be one of {128, 120, 112, 104, 96}"
14: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
iload 6
iconst_3
ishr
istore 6
16: aload 3
checkcast javax.crypto.spec.GCMParameterSpec
invokevirtual javax.crypto.spec.GCMParameterSpec.getIV:()[B
astore 7
17: goto 40
18: StackMap locals:
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
19: new java.lang.StringBuilder
dup
ldc "Unsupported parameter: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
20: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
aload 3
instanceof javax.crypto.spec.IvParameterSpec
ifeq 29
22: aload 3
checkcast javax.crypto.spec.IvParameterSpec
invokevirtual javax.crypto.spec.IvParameterSpec.getIV:()[B
astore 7
23: aload 7
ifnull 24
aload 7
arraylength
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 40
24: StackMap locals:
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
25: new java.lang.StringBuilder
dup
ldc "Wrong IV length: must be "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
26: ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
27: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
28: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
29: StackMap locals:
StackMap stack:
aload 3
instanceof javax.crypto.spec.RC2ParameterSpec
ifeq 37
30: aload 3
checkcast javax.crypto.spec.RC2ParameterSpec
invokevirtual javax.crypto.spec.RC2ParameterSpec.getIV:()[B
astore 7
31: aload 7
ifnull 40
aload 7
arraylength
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 40
32: new java.security.InvalidAlgorithmParameterException
dup
33: new java.lang.StringBuilder
dup
ldc "Wrong IV length: must be "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
34: ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
35: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
36: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
37: StackMap locals:
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
38: new java.lang.StringBuilder
dup
ldc "Unsupported parameter: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
39: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
40: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
ifne 45
41: aload 7
ifnull 55
42: new java.security.InvalidAlgorithmParameterException
dup
43: ldc "ECB mode cannot use IV"
44: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
45: StackMap locals:
StackMap stack:
aload 7
ifnonnull 55
46: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 48
47: new java.security.InvalidAlgorithmParameterException
dup
ldc "Parameters missing"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
48: StackMap locals:
StackMap stack:
aload 4
ifnonnull 50
49: invokestatic com.sun.crypto.provider.SunJCE.getRandom:()Ljava/security/SecureRandom;
astore 4
50: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpne 53
51: getstatic com.sun.crypto.provider.GaloisCounterMode.DEFAULT_IV_LEN:I
newarray 8
astore 7
52: goto 54
53: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
newarray 8
astore 7
54: StackMap locals:
StackMap stack:
aload 4
aload 7
invokevirtual java.security.SecureRandom.nextBytes:([B)V
55: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.buffered:I
56: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
57: aload 2
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
astore 8
start local 8 58: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpne 79
59: iload 6
iconst_m1
if_icmpne 61
60: getstatic com.sun.crypto.provider.GaloisCounterMode.DEFAULT_TAG_LEN:I
istore 6
61: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 64
62: aload 0
iload 6
putfield com.sun.crypto.provider.CipherCore.minBytes:I
63: goto 75
64: StackMap locals:
StackMap stack:
aload 0
65: aload 7
aload 0
getfield com.sun.crypto.provider.CipherCore.lastEncIv:[B
invokestatic java.util.Arrays.equals:([B[B)Z
ifeq 67
66: aload 5
aload 0
getfield com.sun.crypto.provider.CipherCore.lastEncKey:[B
invokestatic java.security.MessageDigest.isEqual:([B[B)Z
ifeq 67
iconst_1
goto 68
StackMap locals:
StackMap stack: com.sun.crypto.provider.CipherCore
67: iconst_0
68: StackMap locals: com.sun.crypto.provider.CipherCore int java.security.Key java.security.spec.AlgorithmParameterSpec java.security.SecureRandom byte[] int byte[] java.lang.String
StackMap stack: com.sun.crypto.provider.CipherCore int
putfield com.sun.crypto.provider.CipherCore.requireReinit:Z
69: aload 0
getfield com.sun.crypto.provider.CipherCore.requireReinit:Z
ifeq 73
70: new java.security.InvalidAlgorithmParameterException
dup
71: ldc "Cannot reuse iv for GCM encryption"
72: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
73: StackMap locals:
StackMap stack:
aload 0
aload 7
putfield com.sun.crypto.provider.CipherCore.lastEncIv:[B
74: aload 0
aload 5
putfield com.sun.crypto.provider.CipherCore.lastEncKey:[B
75: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
checkcast com.sun.crypto.provider.GaloisCounterMode
76: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
aload 8
aload 5
aload 7
iload 6
77: invokevirtual com.sun.crypto.provider.GaloisCounterMode.init:(ZLjava/lang/String;[B[BI)V
78: goto 80
79: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
aload 8
aload 5
aload 7
invokevirtual com.sun.crypto.provider.FeedbackCipher.init:(ZLjava/lang/String;[B[B)V
80: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.requireReinit:Z
81: return
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 82 0 this Lcom/sun/crypto/provider/CipherCore;
0 82 1 opmode I
0 82 2 key Ljava/security/Key;
0 82 3 params Ljava/security/spec/AlgorithmParameterSpec;
0 82 4 random Ljava/security/SecureRandom;
5 82 5 keyBytes [B
6 82 6 tagLen I
7 82 7 ivBytes [B
58 82 8 algorithm Ljava/lang/String;
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
opmode
key
params
random
void init(int, java.security.Key, java.security.AlgorithmParameters, java.security.SecureRandom);
descriptor: (ILjava/security/Key;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V
flags: (0x0000)
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: aconst_null
astore 6
start local 6 2: aload 3
ifnull 14
3: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpne 7
4: ldc "GCM"
astore 6
5: aload 3
ldc Ljavax/crypto/spec/GCMParameterSpec;
invokevirtual java.security.AlgorithmParameters.getParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
astore 5
6: goto 14
7: StackMap locals: java.security.spec.AlgorithmParameterSpec java.lang.String
StackMap stack:
ldc "IV"
astore 6
8: aload 3
ldc Ljavax/crypto/spec/IvParameterSpec;
invokevirtual java.security.AlgorithmParameters.getParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
astore 5
9: goto 14
StackMap locals:
StackMap stack: java.security.spec.InvalidParameterSpecException
10: pop
11: new java.security.InvalidAlgorithmParameterException
dup
12: new java.lang.StringBuilder
dup
ldc "Wrong parameter type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " expected"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 2
aload 5
aload 4
invokevirtual com.sun.crypto.provider.CipherCore.init:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
15: return
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 16 0 this Lcom/sun/crypto/provider/CipherCore;
0 16 1 opmode I
0 16 2 key Ljava/security/Key;
0 16 3 params Ljava/security/AlgorithmParameters;
0 16 4 random Ljava/security/SecureRandom;
1 16 5 spec Ljava/security/spec/AlgorithmParameterSpec;
2 16 6 paramType Ljava/lang/String;
Exception table:
from to target type
3 9 10 Class java.security.spec.InvalidParameterSpecException
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
opmode
key
params
random
static byte[] getKeyBytes(java.security.Key);
descriptor: (Ljava/security/Key;)[B
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.security.InvalidKeyException
dup
ldc "No key given"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
ldc "RAW"
aload 0
invokeinterface java.security.Key.getFormat:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 4
3: new java.security.InvalidKeyException
dup
ldc "Wrong format: RAW bytes needed"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.security.Key.getEncoded:()[B
astore 1
start local 1 5: aload 1
ifnonnull 7
6: new java.security.InvalidKeyException
dup
ldc "RAW key bytes missing"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: byte[]
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 key Ljava/security/Key;
5 8 1 keyBytes [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
byte[] update(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0000)
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.sun.crypto.provider.CipherCore.requireReinit: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:
aconst_null
astore 4
start local 4 5: aload 0
iload 3
iconst_0
invokevirtual com.sun.crypto.provider.CipherCore.getOutputSizeByOperation:(IZ)I
newarray 8
astore 4
6: aload 0
aload 1
iload 2
iload 3
aload 4
7: iconst_0
8: invokevirtual com.sun.crypto.provider.CipherCore.update:([BII[BI)I
istore 5
start local 5 9: iload 5
aload 4
arraylength
if_icmpne 12
10: aload 4
11: areturn
12: StackMap locals: byte[] int
StackMap stack:
aload 4
iload 5
invokestatic java.util.Arrays.copyOf:([BI)[B
13: areturn
end local 5 14: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int byte[]
StackMap stack: javax.crypto.ShortBufferException
astore 5
start local 5 15: new java.security.ProviderException
dup
ldc "Unexpected exception"
aload 5
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
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 16 0 this Lcom/sun/crypto/provider/CipherCore;
0 16 1 input [B
0 16 2 inputOffset I
0 16 3 inputLen I
5 16 4 output [B
9 14 5 len I
15 16 5 e Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
5 11 14 Class javax.crypto.ShortBufferException
12 13 14 Class javax.crypto.ShortBufferException
MethodParameters:
Name Flags
input
inputOffset
inputLen
int update(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0000)
Code:
stack=7, locals=11, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getfield com.sun.crypto.provider.CipherCore.requireReinit: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:
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 3
invokestatic java.lang.Math.addExact:(II)I
istore 6
start local 6 5: iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.minBytes:I
isub
istore 6
6: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 8
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 8
7: iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
isub
istore 6
8: StackMap locals: int
StackMap stack:
iload 6
ifle 9
iload 6
iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
irem
isub
goto 10
StackMap locals:
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: istore 6
11: aload 4
ifnull 13
12: aload 4
arraylength
iload 5
isub
iload 6
if_icmpge 17
13: StackMap locals:
StackMap stack:
new javax.crypto.ShortBufferException
dup
new java.lang.StringBuilder
dup
ldc "Output buffer must be (at least) "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
14: iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
15: ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
16: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
iconst_0
istore 7
start local 7 18: iload 6
ifeq 71
19: aload 1
aload 4
if_acmpne 26
20: iload 5
iload 2
isub
iload 3
if_icmpge 26
21: iload 2
iload 5
isub
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
arraylength
if_icmpge 26
22: aload 1
iload 2
23: iload 2
iload 3
invokestatic java.lang.Math.addExact:(II)I
24: invokestatic java.util.Arrays.copyOfRange:([BII)[B
astore 1
25: iconst_0
istore 2
26: StackMap locals: int
StackMap stack:
iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
if_icmpgt 35
27: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 30
28: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
iload 6
aload 4
iload 5
invokevirtual com.sun.crypto.provider.FeedbackCipher.decrypt:([BII[BI)I
istore 7
29: goto 31
30: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
iload 6
aload 4
iload 5
invokevirtual com.sun.crypto.provider.FeedbackCipher.encrypt:([BII[BI)I
istore 7
31: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 6
isub
putfield com.sun.crypto.provider.CipherCore.buffered:I
32: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifeq 64
33: aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
34: goto 64
35: StackMap locals:
StackMap stack:
iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
isub
istore 8
start local 8 36: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifle 53
37: aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
arraylength
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
isub
istore 10
start local 10 38: iload 10
ifeq 47
39: iload 10
iload 8
invokestatic java.lang.Math.min:(II)I
istore 9
start local 9 40: aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 42
41: iload 9
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 9
invokestatic java.lang.Math.addExact:(II)I
aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
irem
isub
istore 9
42: StackMap locals: int int int
StackMap stack:
aload 1
iload 2
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 9
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
43: iload 2
iload 9
invokestatic java.lang.Math.addExact:(II)I
istore 2
44: iload 8
iload 9
isub
istore 8
45: iload 3
iload 9
isub
istore 3
46: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 9
invokestatic java.lang.Math.addExact:(II)I
putfield com.sun.crypto.provider.CipherCore.buffered:I
end local 9 47: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int byte[] int int int int top int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 50
48: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
aload 4
iload 5
invokevirtual com.sun.crypto.provider.FeedbackCipher.decrypt:([BII[BI)I
istore 7
49: goto 51
50: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
aload 4
iload 5
invokevirtual com.sun.crypto.provider.FeedbackCipher.encrypt:([BII[BI)I
istore 7
51: StackMap locals:
StackMap stack:
iload 5
iload 7
invokestatic java.lang.Math.addExact:(II)I
istore 5
52: aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.buffered:I
end local 10 53: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int byte[] int int int int
StackMap stack:
iload 8
ifle 64
54: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 59
55: iload 7
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 1
iload 2
iload 8
56: aload 4
iload 5
57: invokevirtual com.sun.crypto.provider.FeedbackCipher.decrypt:([BII[BI)I
iadd
istore 7
58: goto 62
59: StackMap locals:
StackMap stack:
iload 7
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 1
iload 2
iload 8
60: aload 4
iload 5
61: invokevirtual com.sun.crypto.provider.FeedbackCipher.encrypt:([BII[BI)I
iadd
istore 7
62: StackMap locals:
StackMap stack:
iload 2
iload 8
iadd
istore 2
63: iload 3
iload 8
isub
istore 3
end local 8 64: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 71
65: iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
if_icmpge 68
66: aload 0
dup
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
iload 6
isub
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
67: goto 71
68: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
69: iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
isub
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
irem
isub
70: putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
71: StackMap locals:
StackMap stack:
iload 3
ifle 76
72: aload 1
iload 2
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
73: iload 3
74: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
75: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 3
invokestatic java.lang.Math.addExact:(II)I
putfield com.sun.crypto.provider.CipherCore.buffered:I
76: StackMap locals:
StackMap stack:
iload 7
ireturn
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 77 0 this Lcom/sun/crypto/provider/CipherCore;
0 77 1 input [B
0 77 2 inputOffset I
0 77 3 inputLen I
0 77 4 output [B
0 77 5 outputOffset I
5 77 6 len I
18 77 7 outLen I
36 64 8 inputConsumed I
40 47 9 temp I
38 53 10 bufferCapacity I
Exceptions:
throws javax.crypto.ShortBufferException
MethodParameters:
Name Flags
input
inputOffset
inputLen
output
outputOffset
byte[] doFinal(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0000)
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 0
iload 3
iconst_1
invokevirtual com.sun.crypto.provider.CipherCore.getOutputSizeByOperation:(IZ)I
newarray 8
astore 4
2: aload 0
aload 1
iload 2
iload 3
aload 4
iconst_0
invokevirtual com.sun.crypto.provider.CipherCore.doFinal:([BII[BI)I
istore 5
start local 5 3: iload 5
aload 4
arraylength
if_icmpge 6
4: aload 4
iload 5
invokestatic java.util.Arrays.copyOf:([BI)[B
5: areturn
6: StackMap locals: byte[] int
StackMap stack:
aload 4
7: areturn
end local 5 8: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int byte[]
StackMap stack: javax.crypto.ShortBufferException
astore 5
start local 5 9: new java.security.ProviderException
dup
ldc "Unexpected exception"
aload 5
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
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 10 0 this Lcom/sun/crypto/provider/CipherCore;
0 10 1 input [B
0 10 2 inputOffset I
0 10 3 inputLen I
1 10 4 output [B
3 8 5 len I
9 10 5 e Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
1 5 8 Class javax.crypto.ShortBufferException
6 7 8 Class javax.crypto.ShortBufferException
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
MethodParameters:
Name Flags
input
inputOffset
inputLen
int doFinal(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0000)
Code:
stack=6, locals=18, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getfield com.sun.crypto.provider.CipherCore.requireReinit: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:
aload 0
iload 3
iconst_1
invokevirtual com.sun.crypto.provider.CipherCore.getOutputSizeByOperation:(IZ)I
istore 6
start local 6 5: aload 4
arraylength
iload 5
isub
istore 7
start local 7 6: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 7
iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
isub
goto 8
StackMap locals: int int
StackMap stack:
7: iload 6
StackMap locals:
StackMap stack: int
8: istore 8
start local 8 9: aload 4
ifnull 10
iload 7
iload 8
if_icmpge 13
10: StackMap locals: int
StackMap stack:
new javax.crypto.ShortBufferException
dup
new java.lang.StringBuilder
dup
ldc "Output buffer must be (at least) "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
11: iload 8
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;
12: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 3
invokestatic java.lang.Math.addExact:(II)I
istore 9
start local 9 14: iload 9
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.getBufferedLength:()I
invokestatic java.lang.Math.addExact:(II)I
istore 10
start local 10 15: iconst_0
istore 11
start local 11 16: aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 24
17: iload 10
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
if_icmpge 20
18: aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
iload 10
isub
istore 11
19: goto 26
20: StackMap locals: int int int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
21: iload 10
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
isub
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
irem
22: isub
istore 11
23: goto 26
StackMap locals:
StackMap stack:
24: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 26
25: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
iload 10
invokeinterface com.sun.crypto.provider.Padding.padLength:(I)I
istore 11
26: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 33
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 33
27: iload 11
ifle 33
iload 11
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 33
28: new javax.crypto.IllegalBlockSizeException
dup
29: new java.lang.StringBuilder
dup
ldc "Input length must be multiple of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
30: ldc " when decrypting with padded cipher"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
31: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
32: invokespecial javax.crypto.IllegalBlockSizeException.<init>:(Ljava/lang/String;)V
athrow
33: StackMap locals:
StackMap stack:
aload 1
astore 12
start local 12 34: iload 2
istore 13
start local 13 35: iload 3
istore 14
start local 14 36: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifne 40
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 37
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnonnull 40
37: StackMap locals: byte[] int int
StackMap stack:
aload 1
aload 4
if_acmpne 53
38: iload 5
iload 2
isub
iload 3
if_icmpge 53
39: iload 2
iload 5
isub
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
arraylength
if_icmpge 53
40: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 41
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnonnull 42
41: StackMap locals:
StackMap stack:
iconst_0
istore 11
42: StackMap locals:
StackMap stack:
iload 9
iload 11
invokestatic java.lang.Math.addExact:(II)I
newarray 8
astore 12
43: iconst_0
istore 13
44: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifeq 46
45: aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
aload 12
iconst_0
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
46: StackMap locals:
StackMap stack:
iload 3
ifeq 50
47: aload 1
iload 2
aload 12
48: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 3
49: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
50: StackMap locals:
StackMap stack:
iload 11
ifeq 52
51: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
aload 12
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 3
invokestatic java.lang.Math.addExact:(II)I
iload 11
invokeinterface com.sun.crypto.provider.Padding.padWithLen:([BII)V
52: StackMap locals:
StackMap stack:
aload 12
arraylength
istore 14
53: StackMap locals:
StackMap stack:
iconst_0
istore 15
start local 15 54: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 75
55: iload 7
iload 6
if_icmpge 57
56: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.save:()V
57: StackMap locals: int
StackMap stack:
iload 6
newarray 8
astore 16
start local 16 58: aload 0
aload 12
iload 13
aload 16
59: iconst_0
iload 14
60: invokevirtual com.sun.crypto.provider.CipherCore.finalNoPadding:([BI[BII)I
istore 15
61: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 66
62: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
aload 16
iconst_0
iload 15
invokeinterface com.sun.crypto.provider.Padding.unpad:([BII)I
istore 17
start local 17 63: iload 17
ifge 65
64: new javax.crypto.BadPaddingException
dup
ldc "Given final block not properly padded. Such issues can arise if a bad key is used during decryption."
invokespecial javax.crypto.BadPaddingException.<init>:(Ljava/lang/String;)V
athrow
65: StackMap locals: byte[] int
StackMap stack:
iload 17
istore 15
end local 17 66: StackMap locals:
StackMap stack:
iload 7
iload 15
if_icmpge 73
67: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.restore:()V
68: new javax.crypto.ShortBufferException
dup
new java.lang.StringBuilder
dup
ldc "Output buffer too short: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
69: iload 7
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
70: ldc " bytes given, "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 15
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
71: ldc " bytes needed"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
72: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
73: StackMap locals:
StackMap stack:
aload 16
iconst_0
aload 4
iload 5
iload 15
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
end local 16 74: goto 87
75: StackMap locals:
StackMap stack:
aload 0
aload 12
iload 13
aload 4
76: iload 5
iload 14
77: invokevirtual com.sun.crypto.provider.CipherCore.finalNoPadding:([BI[BII)I
istore 15
78: goto 84
StackMap locals:
StackMap stack: java.lang.Throwable
79: astore 16
80: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpne 81
iconst_1
goto 82
StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int byte[] int int int int int int int byte[] int int int java.lang.Throwable
StackMap stack: com.sun.crypto.provider.CipherCore
81: iconst_0
StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int byte[] int int int int int int int byte[] int int int java.lang.Throwable
StackMap stack: com.sun.crypto.provider.CipherCore int
82: putfield com.sun.crypto.provider.CipherCore.requireReinit:Z
83: aload 16
athrow
84: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpne 85
iconst_1
goto 86
StackMap locals:
StackMap stack: com.sun.crypto.provider.CipherCore
85: iconst_0
StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int byte[] int int int int int int int byte[] int int int
StackMap stack: com.sun.crypto.provider.CipherCore int
86: putfield com.sun.crypto.provider.CipherCore.requireReinit:Z
87: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.buffered:I
88: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
89: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
ifeq 91
90: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.reset:()V
91: StackMap locals:
StackMap stack:
iload 15
ireturn
end local 15 end local 14 end local 13 end local 12 end local 11 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 92 0 this Lcom/sun/crypto/provider/CipherCore;
0 92 1 input [B
0 92 2 inputOffset I
0 92 3 inputLen I
0 92 4 output [B
0 92 5 outputOffset I
5 92 6 estOutSize I
6 92 7 outputCapacity I
9 92 8 minOutSize I
14 92 9 len I
15 92 10 totalLen I
16 92 11 paddingLen I
34 92 12 finalBuf [B
35 92 13 finalOffset I
36 92 14 finalBufLen I
54 92 15 outLen I
58 74 16 outWithPadding [B
63 66 17 padStart I
Exception table:
from to target type
75 79 79 any
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.ShortBufferException, javax.crypto.BadPaddingException
MethodParameters:
Name Flags
input
inputOffset
inputLen
output
outputOffset
private int finalNoPadding(byte[], int, byte[], int, int);
descriptor: ([BI[BII)I
flags: (0x0002) ACC_PRIVATE
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
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpeq 2
aload 1
ifnull 1
iload 5
ifne 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
iconst_2
if_icmpeq 16
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
iconst_3
if_icmpeq 16
3: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpeq 16
4: iload 5
aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
irem
ifeq 16
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 6
if_icmpeq 16
5: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 11
6: new javax.crypto.IllegalBlockSizeException
dup
7: new java.lang.StringBuilder
dup
ldc "Input length (with padding) not multiple of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial javax.crypto.IllegalBlockSizeException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
new javax.crypto.IllegalBlockSizeException
dup
12: new java.lang.StringBuilder
dup
ldc "Input length not multiple of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
13: ldc " bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
14: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
15: invokespecial javax.crypto.IllegalBlockSizeException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
iconst_0
istore 6
start local 6 17: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 20
18: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 1
iload 2
iload 5
aload 3
iload 4
invokevirtual com.sun.crypto.provider.FeedbackCipher.decryptFinal:([BII[BI)I
istore 6
19: goto 21
20: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 1
iload 2
iload 5
aload 3
iload 4
invokevirtual com.sun.crypto.provider.FeedbackCipher.encryptFinal:([BII[BI)I
istore 6
21: StackMap locals:
StackMap stack:
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 22 0 this Lcom/sun/crypto/provider/CipherCore;
0 22 1 in [B
0 22 2 inOfs I
0 22 3 out [B
0 22 4 outOfs I
0 22 5 len I
17 22 6 outLen I
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.AEADBadTagException, javax.crypto.ShortBufferException
MethodParameters:
Name Flags
in
inOfs
out
outOfs
len
byte[] wrap(java.security.Key);
descriptor: (Ljava/security/Key;)[B
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
invokeinterface java.security.Key.getEncoded:()[B
astore 3
start local 3 2: aload 3
ifnull 3
aload 3
arraylength
ifne 4
3: StackMap locals: byte[] byte[]
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "Cannot get an encoding of the key to be wrapped"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 3
iconst_0
aload 3
arraylength
invokevirtual com.sun.crypto.provider.CipherCore.doFinal:([BII)[B
astore 2
end local 3 5: goto 7
StackMap locals: com.sun.crypto.provider.CipherCore java.security.Key byte[]
StackMap stack: javax.crypto.BadPaddingException
6: pop
7: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/crypto/provider/CipherCore;
0 8 1 key Ljava/security/Key;
1 8 2 result [B
2 5 3 encodedKey [B
Exception table:
from to target type
1 5 6 Class javax.crypto.BadPaddingException
Exceptions:
throws javax.crypto.IllegalBlockSizeException, java.security.InvalidKeyException
MethodParameters:
Name Flags
key
java.security.Key unwrap(byte[], java.lang.String, int);
descriptor: ([BLjava/lang/String;I)Ljava/security/Key;
flags: (0x0000)
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual com.sun.crypto.provider.CipherCore.doFinal:([BII)[B
astore 4
start local 4 1: goto 6
end local 4 StackMap locals:
StackMap stack: javax.crypto.BadPaddingException
2: pop
3: new java.security.InvalidKeyException
dup
ldc "The wrapped key is not padded correctly"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack: javax.crypto.IllegalBlockSizeException
pop
5: new java.security.InvalidKeyException
dup
ldc "The wrapped key does not have the correct length"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
start local 4 6: StackMap locals: byte[]
StackMap stack:
aload 4
aload 2
7: iload 3
8: invokestatic com.sun.crypto.provider.ConstructKeys.constructKey:([BLjava/lang/String;I)Ljava/security/Key;
areturn
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/CipherCore;
0 9 1 wrappedKey [B
0 9 2 wrappedKeyAlgorithm Ljava/lang/String;
0 9 3 wrappedKeyType I
1 2 4 encodedKey [B
6 9 4 encodedKey [B
Exception table:
from to target type
0 1 2 Class javax.crypto.BadPaddingException
0 1 4 Class javax.crypto.IllegalBlockSizeException
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
wrappedKey
wrappedKeyAlgorithm
wrappedKeyType
void updateAAD(byte[], int, int);
descriptor: ([BII)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.sun.crypto.provider.CipherCore.requireReinit: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:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 1
iload 2
iload 3
invokevirtual com.sun.crypto.provider.FeedbackCipher.updateAAD:([BII)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/crypto/provider/CipherCore;
0 6 1 src [B
0 6 2 offset I
0 6 3 len I
MethodParameters:
Name Flags
src
offset
len
}
SourceFile: "CipherCore.java"