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
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
iload 2
putfield com.sun.crypto.provider.CipherCore.blockSize:I
12: aload 0
iload 2
putfield com.sun.crypto.provider.CipherCore.unitBytes:I
13: aload 0
iload 2
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
14: 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
15: 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;
16: 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;
17: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/sun/crypto/provider/CipherCore;
0 18 1 impl Lcom/sun/crypto/provider/SymmetricCipher;
0 18 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 39
10: StackMap locals: com.sun.crypto.provider.SymmetricCipher
StackMap stack:
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 39
16: StackMap locals:
StackMap stack:
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 39
22: StackMap locals:
StackMap stack:
aload 2
ldc "CFB"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 27
23: aload 0
iconst_2
putfield com.sun.crypto.provider.CipherCore.cipherMode:I
24: 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
25: 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;
26: goto 39
27: StackMap locals:
StackMap stack:
aload 2
ldc "OFB"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 32
28: aload 0
iconst_3
putfield com.sun.crypto.provider.CipherCore.cipherMode:I
29: 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
30: 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;
31: goto 39
32: StackMap locals:
StackMap stack:
aload 2
ldc "PCBC"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 36
33: aload 0
iconst_4
putfield com.sun.crypto.provider.CipherCore.cipherMode:I
34: 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;
35: goto 39
36: 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;
37: ldc " not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
38: invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
39: StackMap locals:
StackMap stack:
return
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 mode Ljava/lang/String;
3 40 2 modeUpperCase Ljava/lang/String;
6 40 3 rawImpl Lcom/sun/crypto/provider/SymmetricCipher;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
mode
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=6, locals=2, 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 22
13: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
iconst_5
if_icmpeq 14
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 6
if_icmpne 22
14: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
15: new javax.crypto.NoSuchPaddingException
dup
16: new java.lang.StringBuilder
dup
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
iconst_5
if_icmpne 17
ldc "CTR"
goto 18
StackMap locals: com.sun.crypto.provider.CipherCore java.lang.String
StackMap stack: new 15 new 15 new 16 new 16
17: ldc "CTS"
StackMap locals: com.sun.crypto.provider.CipherCore java.lang.String
StackMap stack: new 15 new 15 new 16 new 16 java.lang.String
18: invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
19: ldc " mode must be used with NoPadding"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
20: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
21: invokespecial javax.crypto.NoSuchPaddingException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/sun/crypto/provider/CipherCore;
0 23 1 paddingScheme Ljava/lang/String;
Exceptions:
throws javax.crypto.NoSuchPaddingException
MethodParameters:
Name Flags
paddingScheme
int getOutputSize(int);
descriptor: (I)I
flags: (0x0000)
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 1
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
istore 2
start local 2 1: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnonnull 3
2: iload 2
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 5
4: iload 2
ireturn
5: 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 10
6: iload 2
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
if_icmpge 8
7: aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
ireturn
8: StackMap locals:
StackMap stack:
iload 2
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
isub
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
irem
istore 3
start local 3 9: iload 2
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
iload 3
isub
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
ireturn
end local 3 10: StackMap locals:
StackMap stack:
iload 2
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
iload 2
invokeinterface com.sun.crypto.provider.Padding.padLength:(I)I
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/crypto/provider/CipherCore;
0 11 1 inputLen I
1 11 2 totalLen I
9 10 3 residue I
MethodParameters:
Name Flags
inputLen
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: aconst_null
astore 2
start local 2 1: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
ifne 2
aconst_null
areturn
2: StackMap locals: java.security.AlgorithmParameters
StackMap stack:
aload 0
invokevirtual com.sun.crypto.provider.CipherCore.getIV:()[B
astore 3
start local 3 3: aload 3
ifnull 23
4: aload 1
ldc "RC2"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
5: 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 6: new javax.crypto.spec.RC2ParameterSpec
dup
aload 5
invokevirtual com.sun.crypto.provider.RC2Crypt.getEffectiveKeyBits:()I
7: aload 3
8: invokespecial javax.crypto.spec.RC2ParameterSpec.<init>:(I[B)V
astore 4
end local 5 start local 4 9: goto 11
end local 4 10: StackMap locals: byte[]
StackMap stack:
new javax.crypto.spec.IvParameterSpec
dup
aload 3
invokespecial javax.crypto.spec.IvParameterSpec.<init>:([B)V
astore 4
start local 4 11: StackMap locals: java.security.spec.AlgorithmParameterSpec
StackMap stack:
aload 1
ldc "SunJCE"
invokestatic java.security.AlgorithmParameters.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/AlgorithmParameters;
astore 2
12: goto 19
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
13: pop
14: 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;
15: 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;
16: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
pop
18: new java.lang.RuntimeException
dup
ldc "Cannot find SunJCE provider"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
aload 2
aload 4
invokevirtual java.security.AlgorithmParameters.init:(Ljava/security/spec/AlgorithmParameterSpec;)V
20: goto 23
StackMap locals:
StackMap stack: java.security.spec.InvalidParameterSpecException
21: pop
22: new java.lang.RuntimeException
dup
ldc "IvParameterSpec not supported"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 4 23: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lcom/sun/crypto/provider/CipherCore;
0 24 1 algName Ljava/lang/String;
1 24 2 params Ljava/security/AlgorithmParameters;
3 24 3 iv [B
9 10 4 ivSpec Ljava/security/spec/AlgorithmParameterSpec;
11 23 4 ivSpec Ljava/security/spec/AlgorithmParameterSpec;
6 9 5 rawImpl Lcom/sun/crypto/provider/RC2Crypt;
Exception table:
from to target type
11 12 13 Class java.security.NoSuchAlgorithmException
11 12 17 Class java.security.NoSuchProviderException
19 20 21 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=5, locals=8, 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: aload 3
ifnonnull 8
6: aconst_null
astore 6
start local 6 7: goto 25
end local 6 StackMap locals: byte[]
StackMap stack:
8: aload 3
instanceof javax.crypto.spec.IvParameterSpec
ifeq 16
9: aload 3
checkcast javax.crypto.spec.IvParameterSpec
invokevirtual javax.crypto.spec.IvParameterSpec.getIV:()[B
astore 6
start local 6 10: aload 6
ifnull 11
aload 6
arraylength
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 25
11: StackMap locals: byte[]
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
12: 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;
13: ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
14: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
15: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
end local 6 16: StackMap locals:
StackMap stack:
aload 3
instanceof javax.crypto.spec.RC2ParameterSpec
ifeq 24
17: aload 3
checkcast javax.crypto.spec.RC2ParameterSpec
invokevirtual javax.crypto.spec.RC2ParameterSpec.getIV:()[B
astore 6
start local 6 18: aload 6
ifnull 25
aload 6
arraylength
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 25
19: new java.security.InvalidAlgorithmParameterException
dup
20: 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;
21: ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
22: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
23: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
end local 6 24: StackMap locals:
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
ldc "Wrong parameter type: IV expected"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
start local 6 25: StackMap locals: byte[]
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
ifne 30
26: aload 6
ifnull 37
27: new java.security.InvalidAlgorithmParameterException
dup
28: ldc "ECB mode cannot use IV"
29: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
30: StackMap locals:
StackMap stack:
aload 6
ifnonnull 37
31: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 33
32: new java.security.InvalidAlgorithmParameterException
dup
ldc "Parameters missing"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
33: StackMap locals:
StackMap stack:
aload 4
ifnonnull 35
34: getstatic com.sun.crypto.provider.SunJCE.RANDOM:Ljava/security/SecureRandom;
astore 4
35: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
newarray 8
astore 6
36: aload 4
aload 6
invokevirtual java.security.SecureRandom.nextBytes:([B)V
37: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.buffered:I
38: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
39: aload 2
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
astore 7
start local 7 40: 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 7
aload 5
aload 6
invokevirtual com.sun.crypto.provider.FeedbackCipher.init:(ZLjava/lang/String;[B[B)V
41: return
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 42 0 this Lcom/sun/crypto/provider/CipherCore;
0 42 1 opmode I
0 42 2 key Ljava/security/Key;
0 42 3 params Ljava/security/spec/AlgorithmParameterSpec;
0 42 4 random Ljava/security/SecureRandom;
5 42 5 keyBytes [B
7 8 6 ivBytes [B
10 16 6 ivBytes [B
18 24 6 ivBytes [B
25 42 6 ivBytes [B
40 42 7 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=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aconst_null
astore 5
start local 5 1: aload 3
ifnull 6
2: aload 3
ldc Ljavax/crypto/spec/IvParameterSpec;
invokevirtual java.security.AlgorithmParameters.getParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
checkcast javax.crypto.spec.IvParameterSpec
astore 5
3: goto 6
StackMap locals: com.sun.crypto.provider.CipherCore int java.security.Key java.security.AlgorithmParameters java.security.SecureRandom javax.crypto.spec.IvParameterSpec
StackMap stack: java.security.spec.InvalidParameterSpecException
4: pop
5: new java.security.InvalidAlgorithmParameterException
dup
ldc "Wrong parameter type: IV expected"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
6: 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
7: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/crypto/provider/CipherCore;
0 8 1 opmode I
0 8 2 key Ljava/security/Key;
0 8 3 params Ljava/security/AlgorithmParameters;
0 8 4 random Ljava/security/SecureRandom;
1 8 5 ivSpec Ljavax/crypto/spec/IvParameterSpec;
Exception table:
from to target type
2 3 4 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: aconst_null
astore 4
start local 4 1: aconst_null
astore 5
start local 5 2: aload 0
iload 3
invokevirtual com.sun.crypto.provider.CipherCore.getOutputSize:(I)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 6
start local 6 6: iload 6
aload 4
arraylength
if_icmpne 9
7: aload 4
astore 5
8: goto 13
9: StackMap locals: byte[] byte[] int
StackMap stack:
iload 6
newarray 8
astore 5
10: aload 4
iconst_0
aload 5
iconst_0
iload 6
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
end local 6 11: goto 13
StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int byte[] byte[]
StackMap stack: javax.crypto.ShortBufferException
12: pop
13: StackMap locals:
StackMap stack:
aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/crypto/provider/CipherCore;
0 14 1 input [B
0 14 2 inputOffset I
0 14 3 inputLen I
1 14 4 output [B
2 14 5 out [B
6 11 6 len I
Exception table:
from to target type
2 11 12 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=6, 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 com.sun.crypto.provider.CipherCore.addExact:(II)I
istore 6
start local 6 1: iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.minBytes:I
isub
istore 6
2: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 4
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 4
3: iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
isub
istore 6
4: StackMap locals: int
StackMap stack:
iload 6
ifle 5
iload 6
iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
irem
isub
goto 6
StackMap locals:
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: istore 6
7: aload 4
ifnull 8
aload 4
arraylength
iload 5
isub
iload 6
if_icmpge 12
8: 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
9: iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
10: ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
iload 6
ifeq 43
13: iload 6
newarray 8
astore 7
start local 7 14: iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
isub
istore 8
start local 8 15: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
istore 9
start local 9 16: iload 8
ifge 19
17: iconst_0
istore 8
18: iload 6
istore 9
19: StackMap locals: byte[] int int
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifeq 21
20: aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
aload 7
iconst_0
iload 9
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
21: StackMap locals:
StackMap stack:
iload 8
ifle 25
22: aload 1
iload 2
aload 7
23: iload 9
iload 8
24: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
25: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 28
26: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 7
iconst_0
iload 6
aload 4
iload 5
invokevirtual com.sun.crypto.provider.FeedbackCipher.decrypt:([BII[BI)V
27: goto 29
28: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 7
iconst_0
iload 6
aload 4
iload 5
invokevirtual com.sun.crypto.provider.FeedbackCipher.encrypt:([BII[BI)V
29: 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 35
30: iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
if_icmpge 32
31: aload 0
dup
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
iload 6
isub
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
goto 35
32: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
33: 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
34: putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
35: StackMap locals:
StackMap stack:
iload 3
iload 8
isub
istore 3
36: iload 2
iload 8
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
istore 2
37: iload 5
iload 6
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
istore 5
38: aload 0
dup
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 9
isub
putfield com.sun.crypto.provider.CipherCore.buffered:I
39: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifle 43
40: aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iload 9
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
41: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
42: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
end local 9 end local 8 end local 7 43: StackMap locals:
StackMap stack:
iload 3
ifle 47
44: aload 1
iload 2
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
45: iload 3
46: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
47: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 3
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
putfield com.sun.crypto.provider.CipherCore.buffered:I
48: 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 49 0 this Lcom/sun/crypto/provider/CipherCore;
0 49 1 input [B
0 49 2 inputOffset I
0 49 3 inputLen I
0 49 4 output [B
0 49 5 outputOffset I
1 49 6 len I
14 43 7 in [B
15 43 8 inputConsumed I
16 43 9 bufferedConsumed 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=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aconst_null
astore 5
start local 5 2: aload 0
iload 3
invokevirtual com.sun.crypto.provider.CipherCore.getOutputSize:(I)I
newarray 8
astore 4
3: aload 0
aload 1
iload 2
iload 3
aload 4
iconst_0
invokevirtual com.sun.crypto.provider.CipherCore.doFinal:([BII[BI)I
istore 6
start local 6 4: iload 6
aload 4
arraylength
if_icmpge 9
5: iload 6
newarray 8
astore 5
6: iload 6
ifeq 12
7: aload 4
iconst_0
aload 5
iconst_0
iload 6
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: goto 12
9: StackMap locals: byte[] byte[] int
StackMap stack:
aload 4
astore 5
end local 6 10: goto 12
StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int byte[] byte[]
StackMap stack: javax.crypto.ShortBufferException
11: pop
12: StackMap locals:
StackMap stack:
aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/crypto/provider/CipherCore;
0 13 1 input [B
0 13 2 inputOffset I
0 13 3 inputLen I
1 13 4 output [B
2 13 5 out [B
4 10 6 len I
Exception table:
from to target type
2 10 11 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=14, 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 com.sun.crypto.provider.CipherCore.addExact:(II)I
istore 6
start local 6 1: iload 6
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 6
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 6
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 6
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 6
invokeinterface com.sun.crypto.provider.Padding.padLength:(I)I
istore 8
13: StackMap locals:
StackMap stack:
iload 8
ifle 20
iload 8
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 20
14: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 20
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 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.decrypting:Z
ifne 22
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 22
21: iload 7
iload 8
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
istore 7
22: StackMap locals:
StackMap stack:
aload 4
ifnonnull 24
23: new javax.crypto.ShortBufferException
dup
ldc "Output buffer is null"
invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
24: StackMap locals:
StackMap stack:
aload 4
arraylength
iload 5
isub
istore 9
start local 9 25: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 26
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnonnull 27
26: StackMap locals: int
StackMap stack:
iload 9
iload 7
if_icmplt 28
27: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 32
iload 9
iload 7
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
isub
if_icmpge 32
28: StackMap locals:
StackMap stack:
new javax.crypto.ShortBufferException
dup
new java.lang.StringBuilder
dup
ldc "Output buffer too short: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
29: iload 9
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes given, "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
30: iload 7
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes needed"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
31: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
32: StackMap locals:
StackMap stack:
aload 1
astore 10
start local 10 33: iload 2
istore 11
start local 11 34: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifne 35
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 45
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 45
35: StackMap locals: byte[] int
StackMap stack:
iconst_0
istore 11
36: iload 7
newarray 8
astore 10
37: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifeq 39
38: aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
aload 10
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
39: StackMap locals:
StackMap stack:
iload 3
ifeq 43
40: aload 1
iload 2
aload 10
41: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 3
42: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
43: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 45
aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 45
44: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
aload 10
iload 6
iload 8
invokeinterface com.sun.crypto.provider.Padding.padWithLen:([BII)V
45: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 70
46: iload 9
iload 7
if_icmpge 48
47: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.save:()V
48: StackMap locals:
StackMap stack:
iload 6
newarray 8
astore 12
start local 12 49: aload 0
aload 10
iload 11
aload 12
50: iconst_0
iload 6
51: invokevirtual com.sun.crypto.provider.CipherCore.finalNoPadding:([BI[BII)I
istore 6
52: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 57
53: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
aload 12
iconst_0
iload 6
invokeinterface com.sun.crypto.provider.Padding.unpad:([BII)I
istore 13
start local 13 54: iload 13
ifge 56
55: new javax.crypto.BadPaddingException
dup
ldc "Given final block not properly padded"
invokespecial javax.crypto.BadPaddingException.<init>:(Ljava/lang/String;)V
athrow
56: StackMap locals: byte[] int
StackMap stack:
iload 13
istore 6
end local 13 57: StackMap locals:
StackMap stack:
aload 4
arraylength
iload 5
isub
iload 6
if_icmpge 64
58: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.restore:()V
59: new javax.crypto.ShortBufferException
dup
new java.lang.StringBuilder
dup
ldc "Output buffer too short: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
60: aload 4
arraylength
iload 5
isub
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
61: ldc " bytes given, "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
62: ldc " bytes needed"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
63: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
64: StackMap locals:
StackMap stack:
iconst_0
istore 13
start local 13 65: goto 68
66: StackMap locals: int
StackMap stack:
aload 4
iload 5
iload 13
iadd
aload 12
iload 13
baload
bastore
67: iinc 13 1
StackMap locals:
StackMap stack:
68: iload 13
iload 6
if_icmplt 66
end local 13 end local 12 69: goto 73
70: StackMap locals:
StackMap stack:
aload 0
aload 10
iload 11
aload 4
71: iload 5
iload 7
72: invokevirtual com.sun.crypto.provider.CipherCore.finalNoPadding:([BI[BII)I
istore 6
73: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.buffered:I
74: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
75: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
ifeq 77
76: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.reset:()V
77: StackMap locals:
StackMap stack:
iload 6
ireturn
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 78 0 this Lcom/sun/crypto/provider/CipherCore;
0 78 1 input [B
0 78 2 inputOffset I
0 78 3 inputLen I
0 78 4 output [B
0 78 5 outputOffset I
1 78 6 totalLen I
2 78 7 paddedLen I
3 78 8 paddingLen I
25 78 9 outputCapacity I
33 78 10 finalBuf [B
34 78 11 finalOffset I
49 69 12 outWithPadding [B
54 57 13 padStart I
65 69 13 i I
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=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: 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 15
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
iconst_3
if_icmpeq 15
3: iload 5
aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
irem
ifeq 15
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
bipush 6
if_icmpeq 15
4: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 10
5: new javax.crypto.IllegalBlockSizeException
dup
6: new java.lang.StringBuilder
dup
ldc "Input length (with padding) not multiple of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
7: 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;
8: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokespecial javax.crypto.IllegalBlockSizeException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
new javax.crypto.IllegalBlockSizeException
dup
11: 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;
12: ldc " bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokespecial javax.crypto.IllegalBlockSizeException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 18
16: 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)V
17: goto 19
18: StackMap locals:
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)V
19: StackMap locals:
StackMap stack:
iload 5
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 20 0 this Lcom/sun/crypto/provider/CipherCore;
0 20 1 in [B
0 20 2 inOff I
0 20 3 out [B
0 20 4 outOff I
0 20 5 len I
Exceptions:
throws javax.crypto.IllegalBlockSizeException
MethodParameters:
Name Flags
in
inOff
out
outOff
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
public static int addExact(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 0
iload 1
iadd
istore 2
start local 2 1: iload 0
iload 2
ixor
iload 1
iload 2
ixor
iand
ifge 3
2: new java.lang.ArithmeticException
dup
ldc "integer overflow"
invokespecial java.lang.ArithmeticException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 x I
0 4 1 y I
1 4 2 r I
MethodParameters:
Name Flags
x
y
public static int multiplyExact(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: iload 0
i2l
iload 1
i2l
lmul
lstore 2
start local 2 1: lload 2
l2i
i2l
lload 2
lcmp
ifeq 3
2: new java.lang.ArithmeticException
dup
ldc "integer overflow"
invokespecial java.lang.ArithmeticException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: long
StackMap stack:
lload 2
l2i
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 x I
0 4 1 y I
1 4 2 r J
MethodParameters:
Name Flags
x
y
}
SourceFile: "CipherCore.java"