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
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 39
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 39
StackMap locals:
StackMap stack:
22: 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
StackMap locals:
StackMap stack:
27: 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
StackMap locals:
StackMap stack:
32: 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=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 com.sun.crypto.provider.CipherCore.addExact:(II)I
istore 3
start local 3 1: iload 3
iload 1
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
istore 3
2: aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
pop
3: aload 0
getfield com.sun.crypto.provider.CipherCore.padding:Lcom/sun/crypto/provider/Padding;
ifnull 12
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 12
4: aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 11
5: iload 3
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
if_icmpge 8
6: aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
istore 3
7: goto 12
8: StackMap locals: int
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 9: iload 3
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
iload 4
isub
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
istore 3
end local 4 10: goto 12
11: 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 com.sun.crypto.provider.CipherCore.addExact:(II)I
istore 3
12: 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 13 0 this Lcom/sun/crypto/provider/CipherCore;
0 13 1 inputLen I
0 13 2 isDoFinal Z
1 13 3 totalLen I
9 10 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 7
5: aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
newarray 8
astore 4
6: getstatic com.sun.crypto.provider.SunJCE.RANDOM:Ljava/security/SecureRandom;
aload 4
invokevirtual java.security.SecureRandom.nextBytes:([B)V
7: StackMap locals: com.sun.crypto.provider.CipherCore java.lang.String java.security.AlgorithmParameters top byte[]
StackMap stack:
aload 1
ldc "RC2"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
8: 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 9: new javax.crypto.spec.RC2ParameterSpec
dup
10: aload 5
invokevirtual com.sun.crypto.provider.RC2Crypt.getEffectiveKeyBits:()I
aload 4
11: invokespecial javax.crypto.spec.RC2ParameterSpec.<init>:(I[B)V
astore 3
end local 5 start local 3 12: goto 14
end local 3 13: 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 14: StackMap locals: com.sun.crypto.provider.CipherCore java.lang.String java.security.AlgorithmParameters java.security.spec.AlgorithmParameterSpec byte[]
StackMap stack:
aload 1
15: invokestatic com.sun.crypto.provider.SunJCE.getInstance:()Lcom/sun/crypto/provider/SunJCE;
16: invokestatic java.security.AlgorithmParameters.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/AlgorithmParameters;
astore 2
17: aload 2
aload 3
invokevirtual java.security.AlgorithmParameters.init:(Ljava/security/spec/AlgorithmParameterSpec;)V
18: goto 25
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
19: pop
20: 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;
21: 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;
22: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals:
StackMap stack: java.security.spec.InvalidParameterSpecException
pop
24: 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
25: 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 26 0 this Lcom/sun/crypto/provider/CipherCore;
0 26 1 algName Ljava/lang/String;
3 26 2 params Ljava/security/AlgorithmParameters;
12 13 3 spec Ljava/security/spec/AlgorithmParameterSpec;
14 26 3 spec Ljava/security/spec/AlgorithmParameterSpec;
4 26 4 iv [B
9 12 5 rawImpl Lcom/sun/crypto/provider/RC2Crypt;
Exception table:
from to target type
14 18 19 Class java.security.NoSuchAlgorithmException
14 18 23 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: aconst_null
astore 6
start local 6 6: aload 3
ifnull 26
7: aload 3
instanceof javax.crypto.spec.IvParameterSpec
ifeq 15
8: aload 3
checkcast javax.crypto.spec.IvParameterSpec
invokevirtual javax.crypto.spec.IvParameterSpec.getIV:()[B
astore 6
9: aload 6
ifnull 10
aload 6
arraylength
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 26
10: StackMap locals: byte[] byte[]
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
11: 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;
12: ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 3
instanceof javax.crypto.spec.RC2ParameterSpec
ifeq 23
16: aload 3
checkcast javax.crypto.spec.RC2ParameterSpec
invokevirtual javax.crypto.spec.RC2ParameterSpec.getIV:()[B
astore 6
17: aload 6
ifnull 26
aload 6
arraylength
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 26
18: new java.security.InvalidAlgorithmParameterException
dup
19: 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;
20: ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
21: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
22: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals:
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
24: 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;
25: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.cipherMode:I
ifne 31
27: aload 6
ifnull 38
28: new java.security.InvalidAlgorithmParameterException
dup
29: ldc "ECB mode cannot use IV"
30: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
31: StackMap locals:
StackMap stack:
aload 6
ifnonnull 38
32: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 34
33: new java.security.InvalidAlgorithmParameterException
dup
ldc "Parameters missing"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
34: StackMap locals:
StackMap stack:
aload 4
ifnonnull 36
35: getstatic com.sun.crypto.provider.SunJCE.RANDOM:Ljava/security/SecureRandom;
astore 4
36: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
newarray 8
astore 6
37: aload 4
aload 6
invokevirtual java.security.SecureRandom.nextBytes:([B)V
38: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.buffered:I
39: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
40: aload 2
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
astore 7
start local 7 41: 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
42: 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 43 0 this Lcom/sun/crypto/provider/CipherCore;
0 43 1 opmode I
0 43 2 key Ljava/security/Key;
0 43 3 params Ljava/security/spec/AlgorithmParameterSpec;
0 43 4 random Ljava/security/SecureRandom;
5 43 5 keyBytes [B
6 43 6 ivBytes [B
41 43 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=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 10
3: ldc "IV"
astore 6
4: aload 3
ldc Ljavax/crypto/spec/IvParameterSpec;
invokevirtual java.security.AlgorithmParameters.getParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
astore 5
5: goto 10
StackMap locals: com.sun.crypto.provider.CipherCore int java.security.Key java.security.AlgorithmParameters java.security.SecureRandom java.security.spec.AlgorithmParameterSpec java.lang.String
StackMap stack: java.security.spec.InvalidParameterSpecException
6: pop
7: new java.security.InvalidAlgorithmParameterException
dup
8: 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;
9: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
10: 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
11: 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 12 0 this Lcom/sun/crypto/provider/CipherCore;
0 12 1 opmode I
0 12 2 key Ljava/security/Key;
0 12 3 params Ljava/security/AlgorithmParameters;
0 12 4 random Ljava/security/SecureRandom;
1 12 5 spec Ljava/security/spec/AlgorithmParameterSpec;
2 12 6 paramType Ljava/lang/String;
Exception table:
from to target type
3 5 6 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: aload 0
iload 3
iconst_0
invokevirtual com.sun.crypto.provider.CipherCore.getOutputSizeByOperation:(IZ)I
newarray 8
astore 4
2: aload 0
aload 1
iload 2
iload 3
aload 4
3: iconst_0
4: invokevirtual com.sun.crypto.provider.CipherCore.update:([BII[BI)I
istore 5
start local 5 5: iload 5
aload 4
arraylength
if_icmpne 8
6: aload 4
7: areturn
8: StackMap locals: byte[] int
StackMap stack:
aload 4
iload 5
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 6
start local 6 9: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 11
10: aload 4
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
11: StackMap locals: byte[]
StackMap stack:
aload 6
12: areturn
end local 6 end local 5 13: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int byte[]
StackMap stack: javax.crypto.ShortBufferException
astore 5
start local 5 14: 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 15 0 this Lcom/sun/crypto/provider/CipherCore;
0 15 1 input [B
0 15 2 inputOffset I
0 15 3 inputLen I
1 15 4 output [B
5 13 5 len I
9 13 6 copy [B
14 15 5 e Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
1 7 13 Class javax.crypto.ShortBufferException
8 12 13 Class javax.crypto.ShortBufferException
MethodParameters:
Name Flags
input
inputOffset
inputLen
int update(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0000)
Code:
stack=7, locals=11, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getfield com.sun.crypto.provider.CipherCore.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 9
8: aload 4
arraylength
iload 5
isub
iload 6
if_icmpge 13
9: 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
10: iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
11: ldc " bytes long"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
iconst_0
istore 7
start local 7 14: iload 6
ifeq 68
15: aload 1
aload 4
if_acmpne 22
16: iload 5
iload 2
isub
iload 3
if_icmpge 22
17: iload 2
iload 5
isub
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
arraylength
if_icmpge 22
18: aload 1
iload 2
19: iload 2
iload 3
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
20: invokestatic java.util.Arrays.copyOfRange:([BII)[B
astore 1
21: iconst_0
istore 2
22: StackMap locals: int
StackMap stack:
iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
if_icmpgt 31
23: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 26
24: 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
25: goto 27
26: 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
27: 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
28: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifeq 61
29: 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
30: goto 61
31: StackMap locals:
StackMap stack:
iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
isub
istore 8
start local 8 32: aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
ifle 50
33: 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 34: iload 10
ifeq 43
35: iload 10
iload 8
invokestatic java.lang.Math.min:(II)I
istore 9
start local 9 36: aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
if_icmpeq 38
37: iload 9
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 9
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
aload 0
getfield com.sun.crypto.provider.CipherCore.unitBytes:I
irem
isub
istore 9
38: 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
39: iload 2
iload 9
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
istore 2
40: iload 8
iload 9
isub
istore 8
41: iload 3
iload 9
isub
istore 3
42: aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
iload 9
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
putfield com.sun.crypto.provider.CipherCore.buffered:I
end local 9 43: 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 46
44: 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
45: goto 48
46: 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
47: aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
48: StackMap locals:
StackMap stack:
iload 5
iload 7
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
istore 5
49: aload 0
iconst_0
putfield com.sun.crypto.provider.CipherCore.buffered:I
end local 10 50: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int byte[] int int int int
StackMap stack:
iload 8
ifle 61
51: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 56
52: iload 7
aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 1
iload 2
iload 8
53: aload 4
iload 5
54: invokevirtual com.sun.crypto.provider.FeedbackCipher.decrypt:([BII[BI)I
iadd
istore 7
55: goto 59
56: 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
57: aload 4
iload 5
58: invokevirtual com.sun.crypto.provider.FeedbackCipher.encrypt:([BII[BI)I
iadd
istore 7
59: StackMap locals:
StackMap stack:
iload 2
iload 8
iadd
istore 2
60: iload 3
iload 8
isub
istore 3
end local 8 61: 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 68
62: iload 6
aload 0
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
if_icmpge 65
63: aload 0
dup
getfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
iload 6
isub
putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
64: goto 68
65: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.crypto.provider.CipherCore.blockSize:I
66: 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
67: putfield com.sun.crypto.provider.CipherCore.diffBlocksize:I
68: StackMap locals:
StackMap stack:
iload 3
ifle 73
69: aload 1
iload 2
aload 0
getfield com.sun.crypto.provider.CipherCore.buffer:[B
aload 0
getfield com.sun.crypto.provider.CipherCore.buffered:I
70: iload 3
71: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
72: 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
73: 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 74 0 this Lcom/sun/crypto/provider/CipherCore;
0 74 1 input [B
0 74 2 inputOffset I
0 74 3 inputLen I
0 74 4 output [B
0 74 5 outputOffset I
1 74 6 len I
14 74 7 outLen I
32 61 8 inputConsumed I
36 43 9 temp I
34 50 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
iload 3
iconst_1
invokevirtual com.sun.crypto.provider.CipherCore.getOutputSizeByOperation:(IZ)I
newarray 8
astore 4
start local 4 1: aload 0
aload 1
iload 2
2: iload 3
aload 4
iconst_0
3: invokevirtual com.sun.crypto.provider.CipherCore.prepareInputBuffer:([BII[BI)[B
astore 5
start local 5 4: aload 5
aload 1
if_acmpne 5
iload 2
goto 6
StackMap locals: byte[] byte[]
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: istore 6
start local 6 7: aload 5
aload 1
if_acmpne 8
iload 3
goto 9
StackMap locals: int
StackMap stack:
8: aload 5
arraylength
StackMap locals:
StackMap stack: int
9: istore 7
start local 7 10: aload 0
aload 5
iload 6
aload 4
iconst_0
11: iload 7
aload 1
12: invokevirtual com.sun.crypto.provider.CipherCore.fillOutputBuffer:([BI[BII[B)I
istore 8
start local 8 13: aload 0
invokevirtual com.sun.crypto.provider.CipherCore.endDoFinal:()V
14: iload 8
aload 4
arraylength
if_icmpge 20
15: aload 4
iload 8
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 9
start local 9 16: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 18
17: aload 4
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
18: StackMap locals: int int byte[]
StackMap stack:
aload 9
19: areturn
end local 9 20: StackMap locals:
StackMap stack:
aload 4
21: areturn
end local 8 end local 7 end local 6 end local 5 end local 4 22: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int int
StackMap stack: javax.crypto.ShortBufferException
astore 4
start local 4 23: 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 24 0 this Lcom/sun/crypto/provider/CipherCore;
0 24 1 input [B
0 24 2 inputOffset I
0 24 3 inputLen I
1 22 4 output [B
4 22 5 finalBuf [B
7 22 6 finalOffset I
10 22 7 finalBufLen I
13 22 8 outLen I
16 20 9 copy [B
23 24 4 e Ljavax/crypto/ShortBufferException;
Exception table:
from to target type
0 19 22 Class javax.crypto.ShortBufferException
20 21 22 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
iload 3
iconst_1
invokevirtual com.sun.crypto.provider.CipherCore.getOutputSizeByOperation:(IZ)I
istore 6
start local 6 1: aload 0
aload 4
iload 5
2: iload 6
3: invokevirtual com.sun.crypto.provider.CipherCore.checkOutputCapacity:([BII)I
istore 7
start local 7 4: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 5
iconst_0
goto 6
StackMap locals: int int
StackMap stack:
5: iload 5
StackMap locals:
StackMap stack: int
6: istore 8
start local 8 7: aload 0
aload 1
iload 2
8: iload 3
aload 4
iload 5
9: invokevirtual com.sun.crypto.provider.CipherCore.prepareInputBuffer:([BII[BI)[B
astore 9
start local 9 10: aconst_null
astore 10
start local 10 11: aload 9
aload 1
if_acmpne 12
iload 2
goto 13
StackMap locals: int byte[] byte[]
StackMap stack:
12: iconst_0
StackMap locals:
StackMap stack: int
13: istore 11
start local 11 14: aload 9
aload 1
if_acmpne 15
iload 3
goto 16
StackMap locals: int
StackMap stack:
15: aload 9
arraylength
StackMap locals:
StackMap stack: int
16: istore 12
start local 12 17: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 21
18: iload 7
iload 6
if_icmpge 20
19: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.save:()V
20: StackMap locals: int
StackMap stack:
iload 6
newarray 8
astore 10
21: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 22
aload 10
goto 23
StackMap locals:
StackMap stack:
22: aload 4
StackMap locals:
StackMap stack: byte[]
23: astore 13
start local 13 24: aload 0
aload 9
iload 11
aload 13
25: iload 8
iload 12
aload 1
26: invokevirtual com.sun.crypto.provider.CipherCore.fillOutputBuffer:([BI[BII[B)I
istore 14
start local 14 27: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 37
28: iload 7
iload 14
if_icmpge 35
29: aload 0
getfield com.sun.crypto.provider.CipherCore.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
invokevirtual com.sun.crypto.provider.FeedbackCipher.restore:()V
30: new javax.crypto.ShortBufferException
dup
new java.lang.StringBuilder
dup
ldc "Output buffer too short: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
31: iload 7
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
32: 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;
33: ldc " bytes needed"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
34: invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
athrow
35: 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
36: aload 10
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
37: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.crypto.provider.CipherCore.endDoFinal:()V
38: 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 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 estOutSize I
4 39 7 outputCapacity I
7 39 8 offset I
10 39 9 finalBuf [B
11 39 10 outWithPadding [B
14 39 11 finalOffset I
17 39 12 finalBufLen I
24 39 13 outBuffer [B
27 39 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 com.sun.crypto.provider.CipherCore.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 com.sun.crypto.provider.CipherCore.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 com.sun.crypto.provider.CipherCore.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 com.sun.crypto.provider.CipherCore.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 9
7: aload 1
aload 6
if_acmpeq 9
8: aload 1
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
9: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int byte[] int int byte[] int top int
StackMap stack:
iload 9
ireturn
end local 7 10: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int byte[] int int byte[]
StackMap stack: java.lang.Throwable
astore 8
11: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifne 14
12: aload 1
aload 6
if_acmpeq 14
13: aload 1
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
14: StackMap locals: com.sun.crypto.provider.CipherCore byte[] int byte[] int int byte[] top java.lang.Throwable
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 15 0 this Lcom/sun/crypto/provider/CipherCore;
0 15 1 finalBuf [B
0 15 2 finalOffset I
0 15 3 output [B
0 15 4 outOfs I
0 15 5 finalBufLen I
0 15 6 input [B
3 10 7 len I
Exception table:
from to target type
0 6 10 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 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 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:
iconst_0
istore 6
start local 6 16: aload 0
getfield com.sun.crypto.provider.CipherCore.decrypting:Z
ifeq 19
17: 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
18: goto 20
19: 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
20: 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 21 0 this Lcom/sun/crypto/provider/CipherCore;
0 21 1 in [B
0 21 2 inOfs I
0 21 3 out [B
0 21 4 outOfs I
0 21 5 len I
16 21 6 outLen I
Exceptions:
throws javax.crypto.IllegalBlockSizeException, 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
static int addExact(int, int);
descriptor: (II)I
flags: (0x0008) 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
static long addExact(long, long);
descriptor: (JJ)J
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 2 0: lload 0
lload 2
ladd
lstore 4
start local 4 1: lload 0
lload 4
lxor
lload 2
lload 4
lxor
land
lconst_0
lcmp
ifge 3
2: new java.lang.ArithmeticException
dup
ldc "long overflow"
invokespecial java.lang.ArithmeticException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: long
StackMap stack:
lload 4
lreturn
end local 4 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 x J
0 4 2 y J
1 4 4 r J
MethodParameters:
Name Flags
x
y
static int multiplyExact(int, int);
descriptor: (II)I
flags: (0x0008) 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
static long multiplyExact(long, long);
descriptor: (JJ)J
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=10, args_size=2
start local 0 start local 2 0: lload 0
lload 2
lmul
lstore 4
start local 4 1: lload 0
invokestatic java.lang.Math.abs:(J)J
lstore 6
start local 6 2: lload 2
invokestatic java.lang.Math.abs:(J)J
lstore 8
start local 8 3: lload 6
lload 8
lor
bipush 31
lushr
lconst_0
lcmp
ifeq 7
4: lload 2
lconst_0
lcmp
ifeq 5
lload 4
lload 2
ldiv
lload 0
lcmp
ifne 6
5: StackMap locals: long long long
StackMap stack:
lload 0
ldc -9223372036854775808
lcmp
ifne 7
lload 2
ldc -1
lcmp
ifne 7
6: StackMap locals:
StackMap stack:
new java.lang.ArithmeticException
dup
ldc "long overflow"
invokespecial java.lang.ArithmeticException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
lload 4
lreturn
end local 8 end local 6 end local 4 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 x J
0 8 2 y J
1 8 4 r J
2 8 6 ax J
3 8 8 ay J
MethodParameters:
Name Flags
x
y
}
SourceFile: "CipherCore.java"