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=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual com.sun.crypto.provider.CipherCore.checkReinit:()V
1: aconst_null
astore 4
start local 4 2: aload 0
iload 3
iconst_0
invokevirtual com.sun.crypto.provider.CipherCore.getOutputSizeByOperation:(IZ)I
newarray 8
astore 4
3: aload 0
aload 1
iload 2
iload 3
aload 4
4: iconst_0
5: invokevirtual com.sun.crypto.provider.CipherCore.update:([BII[BI)I
istore 5
start local 5 6: iload 5
aload 4
arraylength
if_icmpne 9
7: aload 4
8: areturn
9: StackMap locals: byte[] int
StackMap stack:
aload 4
iload 5
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 6
start local 6 10: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 12
11: aload 4
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
12: StackMap locals: byte[]
StackMap stack:
aload 6
13: areturn
end local 6 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
2 16 4 output [B
6 14 5 len I
10 14 6 copy [B
15 16 5 e Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
2 8 14 Class javax.crypto.ShortBufferException
9 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
invokevirtual com.sun.crypto.provider.CipherCore.checkReinit:()V
1: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 3
invokestatic java.lang.Math.addExact:(II)I
istore 6
start local 6 2: iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.minBytes:I
isub
istore 6
3: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 5
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 5
4: iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
isub
istore 6
5: StackMap locals: int
StackMap stack:
iload 6
ifle 6
iload 6
iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
irem
isub
goto 7
StackMap locals:
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: istore 6
8: aload 4
ifnull 10
9: aload 4
arraylength
iload 5
isub
iload 6
if_icmpge 14
10: 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
11: iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
12: ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
iconst_0
istore 7
start local 7 15: iload 6
ifeq 69
16: aload 1
aload 4
if_acmpne 23
17: iload 5
iload 2
isub
iload 3
if_icmpge 23
18: iload 2
iload 5
isub
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
arraylength
if_icmpge 23
19: aload 1
iload 2
20: iload 2
iload 3
invokestatic java.lang.Math.addExact:(II)I
21: invokestatic java.util.Arrays.copyOfRange:([BII)[B
astore 1
22: iconst_0
istore 2
23: StackMap locals: int
StackMap stack:
iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
if_icmpgt 32
24: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 27
25: 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
26: goto 28
27: 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
28: 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
29: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifeq 62
30: 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
31: goto 62
32: StackMap locals:
StackMap stack:
iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
isub
istore 8
start local 8 33: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifle 51
34: 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 35: iload 10
ifeq 44
36: iload 10
iload 8
invokestatic java.lang.Math.min:(II)I
istore 9
start local 9 37: aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 39
38: 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
39: 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
40: iload 2
iload 9
invokestatic java.lang.Math.addExact:(II)I
istore 2
41: iload 8
iload 9
isub
istore 8
42: iload 3
iload 9
isub
istore 3
43: 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 44: 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 47
45: 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
46: goto 49
47: 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
48: aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
49: StackMap locals:
StackMap stack:
iload 5
iload 7
invokestatic java.lang.Math.addExact:(II)I
istore 5
50: aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.buffered:I
end local 10 51: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int byte[] int int int int
StackMap stack:
iload 8
ifle 62
52: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 57
53: iload 7
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 1
iload 2
iload 8
54: aload 4
iload 5
55: invokevirtual com.sun.crypto.provider.FeedbackCipher.decrypt:([BII[BI)I
iadd
istore 7
56: goto 60
57: 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
58: aload 4
iload 5
59: invokevirtual com.sun.crypto.provider.FeedbackCipher.encrypt:([BII[BI)I
iadd
istore 7
60: StackMap locals:
StackMap stack:
iload 2
iload 8
iadd
istore 2
61: iload 3
iload 8
isub
istore 3
end local 8 62: 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 69
63: iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
if_icmpge 66
64: aload 0
dup
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
iload 6
isub
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
65: goto 69
66: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
67: 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
68: putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
69: StackMap locals:
StackMap stack:
iload 3
ifle 74
70: aload 1
iload 2
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
71: iload 3
72: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
73: 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
74: 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 75 0 this Lcom/sun/crypto/provider/CipherCore;
0 75 1 input [B
0 75 2 inputOffset I
0 75 3 inputLen I
0 75 4 output [B
0 75 5 outputOffset I
2 75 6 len I
15 75 7 outLen I
33 62 8 inputConsumed I
37 44 9 temp I
35 51 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=7, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual com.sun.crypto.provider.CipherCore.checkReinit:()V
1: aload 0
iload 3
iconst_1
invokevirtual com.sun.crypto.provider.CipherCore.getOutputSizeByOperation:(IZ)I
newarray 8
astore 4
start local 4 2: aload 0
aload 1
iload 2
3: iload 3
aload 4
iconst_0
4: invokevirtual com.sun.crypto.provider.CipherCore.prepareInputBuffer:([BII[BI)[B
astore 5
start local 5 5: aload 5
aload 1
if_acmpne 6
iload 2
goto 7
StackMap locals: byte[] byte[]
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: istore 6
start local 6 8: aload 5
aload 1
if_acmpne 9
iload 3
goto 10
StackMap locals: int
StackMap stack:
9: aload 5
arraylength
StackMap locals:
StackMap stack: int
10: istore 7
start local 7 11: aload 0
aload 5
iload 6
aload 4
iconst_0
12: iload 7
aload 1
13: invokevirtual com.sun.crypto.provider.CipherCore.fillOutputBuffer:([BI[BII[B)I
istore 8
start local 8 14: aload 0
invokevirtual com.sun.crypto.provider.CipherCore.endDoFinal:()V
15: iload 8
aload 4
arraylength
if_icmpge 21
16: aload 4
iload 8
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 9
start local 9 17: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 19
18: aload 4
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
19: StackMap locals: int int byte[]
StackMap stack:
aload 9
20: areturn
end local 9 21: StackMap locals:
StackMap stack:
aload 4
22: areturn
end local 8 end local 7 end local 6 end local 5 end local 4 23: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int
StackMap stack: javax.crypto.ShortBufferException
astore 4
start local 4 24: new java.security.ProviderException
dup
ldc "Unexpected exception"
aload 4
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lcom/sun/crypto/provider/CipherCore;
0 25 1 input [B
0 25 2 inputOffset I
0 25 3 inputLen I
2 23 4 output [B
5 23 5 finalBuf [B
8 23 6 finalOffset I
11 23 7 finalBufLen I
14 23 8 outLen I
17 21 9 copy [B
24 25 4 e Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
0 20 23 Class javax.crypto.ShortBufferException
21 22 23 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=7, locals=15, 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.CipherCore.checkReinit:()V
1: aload 0
iload 3
iconst_1
invokevirtual com.sun.crypto.provider.CipherCore.getOutputSizeByOperation:(IZ)I
istore 6
start local 6 2: aload 0
aload 4
iload 5
3: iload 6
4: invokevirtual com.sun.crypto.provider.CipherCore.checkOutputCapacity:([BII)I
istore 7
start local 7 5: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 6
iconst_0
goto 7
StackMap locals: int int
StackMap stack:
6: iload 5
StackMap locals:
StackMap stack: int
7: istore 8
start local 8 8: aload 0
aload 1
iload 2
9: iload 3
aload 4
iload 5
10: invokevirtual com.sun.crypto.provider.CipherCore.prepareInputBuffer:([BII[BI)[B
astore 9
start local 9 11: aconst_null
astore 10
start local 10 12: aload 9
aload 1
if_acmpne 13
iload 2
goto 14
StackMap locals: int byte[] byte[]
StackMap stack:
13: iconst_0
StackMap locals:
StackMap stack: int
14: istore 11
start local 11 15: aload 9
aload 1
if_acmpne 16
iload 3
goto 17
StackMap locals: int
StackMap stack:
16: aload 9
arraylength
StackMap locals:
StackMap stack: int
17: istore 12
start local 12 18: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 22
19: iload 7
iload 6
if_icmpge 21
20: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.save:()V
21: StackMap locals: int
StackMap stack:
iload 6
newarray 8
astore 10
22: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 23
aload 10
goto 24
StackMap locals:
StackMap stack:
23: aload 4
StackMap locals:
StackMap stack: byte[]
24: astore 13
start local 13 25: aload 0
aload 9
iload 11
aload 13
26: iload 8
iload 12
aload 1
27: invokevirtual com.sun.crypto.provider.CipherCore.fillOutputBuffer:([BI[BII[B)I
istore 14
start local 14 28: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 38
29: iload 7
iload 14
if_icmpge 36
30: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.restore:()V
31: new javax.crypto.ShortBufferException
dup
new java.lang.StringBuilder
dup
ldc "Output buffer too short: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
32: iload 7
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
33: ldc " bytes given, "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 14
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
34: ldc " bytes needed"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
35: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
36: StackMap locals: byte[] int
StackMap stack:
aload 10
iconst_0
aload 4
iload 5
iload 14
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
37: aload 10
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
38: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.crypto.provider.CipherCore.endDoFinal:()V
39: iload 14
ireturn
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 40 0 this Lcom/sun/crypto/provider/CipherCore;
0 40 1 input [B
0 40 2 inputOffset I
0 40 3 inputLen I
0 40 4 output [B
0 40 5 outputOffset I
2 40 6 estOutSize I
5 40 7 outputCapacity I
8 40 8 offset I
11 40 9 finalBuf [B
12 40 10 outWithPadding [B
15 40 11 finalOffset I
18 40 12 finalBufLen I
25 40 13 outBuffer [B
28 40 14 outLen I
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.ShortBufferException, javax.crypto.BadPaddingException
MethodParameters:
Name Flags
input
inputOffset
inputLen
output
outputOffset
private void endDoFinal();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.buffered:I
1: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
2: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
ifeq 4
3: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.reset:()V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/crypto/provider/CipherCore;
private int unpad(int, byte[]);
descriptor: (I[B)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
aload 2
iconst_0
iload 1
invokeinterface com.sun.crypto.provider.Padding.unpad:([BII)I
istore 3
start local 3 1: iload 3
ifge 3
2: 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
3: StackMap locals: int
StackMap stack:
iload 3
istore 1
4: iload 1
ireturn
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 outLen I
0 5 2 outWithPadding [B
1 5 3 padStart I
Exceptions:
throws javax.crypto.BadPaddingException
MethodParameters:
Name Flags
outLen
outWithPadding
private byte[] prepareInputBuffer(byte[], int, int, byte[], int);
descriptor: ([BII[BI)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=10, 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.buffered:I
iload 3
invokestatic java.lang.Math.addExact:(II)I
istore 6
start local 6 1: iload 6
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 7
start local 7 2: iconst_0
istore 8
start local 8 3: aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 11
4: iload 7
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
if_icmpge 7
5: aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
iload 7
isub
istore 8
6: goto 13
7: StackMap locals: int int int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
8: iload 7
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
isub
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
irem
9: isub
istore 8
10: goto 13
StackMap locals:
StackMap stack:
11: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 13
12: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
iload 7
invokeinterface com.sun.crypto.provider.Padding.padLength:(I)I
istore 8
13: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 20
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 20
14: iload 8
ifle 20
iload 8
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 20
15: new javax.crypto.IllegalBlockSizeException
dup
16: 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;
17: ldc " when decrypting with padded cipher"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial javax.crypto.IllegalBlockSizeException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifne 24
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 21
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnonnull 24
21: StackMap locals:
StackMap stack:
aload 1
aload 4
if_acmpne 38
22: iload 5
iload 2
isub
iload 3
if_icmpge 38
23: iload 2
iload 5
isub
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
arraylength
if_icmpge 38
24: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 25
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnonnull 26
25: StackMap locals:
StackMap stack:
iconst_0
istore 8
26: StackMap locals:
StackMap stack:
iload 6
iload 8
invokestatic java.lang.Math.addExact:(II)I
newarray 8
astore 9
start local 9 27: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifeq 31
28: aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
aload 9
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
29: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 31
30: aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
31: StackMap locals: byte[]
StackMap stack:
iload 3
ifeq 35
32: aload 1
iload 2
aload 9
33: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 3
34: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
35: StackMap locals:
StackMap stack:
iload 8
ifeq 37
36: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
aload 9
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 3
invokestatic java.lang.Math.addExact:(II)I
iload 8
invokeinterface com.sun.crypto.provider.Padding.padWithLen:([BII)V
37: StackMap locals:
StackMap stack:
aload 9
areturn
end local 9 38: StackMap locals:
StackMap stack:
aload 1
areturn
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 39 0 this Lcom/sun/crypto/provider/CipherCore;
0 39 1 input [B
0 39 2 inputOffset I
0 39 3 inputLen I
0 39 4 output [B
0 39 5 outputOffset I
1 39 6 len I
2 39 7 totalLen I
3 39 8 paddingLen I
27 38 9 finalBuf [B
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.ShortBufferException
MethodParameters:
Name Flags
input
inputOffset
inputLen
output
outputOffset
private int fillOutputBuffer(byte[], int, byte[], int, int, byte[]);
descriptor: ([BI[BII[B)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=10, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
iload 2
aload 3
1: iload 4
iload 5
2: invokevirtual com.sun.crypto.provider.CipherCore.finalNoPadding:([BI[BII)I
istore 7
start local 7 3: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 5
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 5
4: aload 0
iload 7
aload 3
invokevirtual com.sun.crypto.provider.CipherCore.unpad:(I[B)I
istore 7
5: StackMap locals: int
StackMap stack:
iload 7
istore 9
6: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 12
7: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpne 8
iconst_1
goto 9
StackMap locals: com.sun.crypto.provider.CipherCore byte[] int byte[] int int byte[] int top int
StackMap stack: com.sun.crypto.provider.CipherCore
8: iconst_0
StackMap locals: com.sun.crypto.provider.CipherCore byte[] int byte[] int int byte[] int top int
StackMap stack: com.sun.crypto.provider.CipherCore int
9: putfield com.sun.crypto.provider.CipherCore.requireReinit:Z
10: aload 1
aload 6
if_acmpeq 12
11: aload 1
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
12: StackMap locals:
StackMap stack:
iload 9
ireturn
end local 7 13: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int byte[] int int byte[]
StackMap stack: java.lang.Throwable
astore 8
14: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 20
15: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 7
if_icmpne 16
iconst_1
goto 17
StackMap locals: com.sun.crypto.provider.CipherCore byte[] int byte[] int int byte[] top java.lang.Throwable
StackMap stack: com.sun.crypto.provider.CipherCore
16: iconst_0
StackMap locals: com.sun.crypto.provider.CipherCore byte[] int byte[] int int byte[] top java.lang.Throwable
StackMap stack: com.sun.crypto.provider.CipherCore int
17: putfield com.sun.crypto.provider.CipherCore.requireReinit:Z
18: aload 1
aload 6
if_acmpeq 20
19: aload 1
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
20: StackMap locals:
StackMap stack:
aload 8
athrow
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 21 0 this Lcom/sun/crypto/provider/CipherCore;
0 21 1 finalBuf [B
0 21 2 finalOffset I
0 21 3 output [B
0 21 4 outOfs I
0 21 5 finalBufLen I
0 21 6 input [B
3 13 7 len I
Exception table:
from to target type
0 6 13 any
Exceptions:
throws javax.crypto.ShortBufferException, javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException
MethodParameters:
Name Flags
finalBuf
finalOffset
output
outOfs
finalBufLen
input
private int checkOutputCapacity(byte[], int, int);
descriptor: ([BII)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
arraylength
iload 2
isub
istore 4
start local 4 1: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 2
iload 3
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
isub
goto 3
StackMap locals: int
StackMap stack:
2: iload 3
StackMap locals:
StackMap stack: int
3: istore 5
start local 5 4: aload 1
ifnull 5
iload 4
iload 5
if_icmpge 8
5: 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
6: iload 5
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;
7: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
iload 4
ireturn
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/CipherCore;
0 9 1 output [B
0 9 2 outputOffset I
0 9 3 estOutSize I
1 9 4 outputCapacity I
4 9 5 minOutSize I
Exceptions:
throws javax.crypto.ShortBufferException
MethodParameters:
Name Flags
output
outputOffset
estOutSize
private void checkReinit();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 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:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/crypto/provider/CipherCore;
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
invokevirtual com.sun.crypto.provider.CipherCore.checkReinit:()V
1: 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
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/CipherCore;
0 3 1 src [B
0 3 2 offset I
0 3 3 len I
MethodParameters:
Name Flags
src
offset
len
}
SourceFile: "CipherCore.java"