public final class com.sun.crypto.provider.DESedeWrapCipher extends javax.crypto.CipherSpi
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.crypto.provider.DESedeWrapCipher
super_class: javax.crypto.CipherSpi
{
private static final byte[] IV2;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int CHECKSUM_LEN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final int IV_LEN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private com.sun.crypto.provider.FeedbackCipher cipher;
descriptor: Lcom/sun/crypto/provider/FeedbackCipher;
flags: (0x0002) ACC_PRIVATE
private byte[] iv;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private java.security.Key cipherKey;
descriptor: Ljava/security/Key;
flags: (0x0002) ACC_PRIVATE
private boolean decrypting;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: bipush 8
newarray 8
dup
iconst_0
1: bipush 74
bastore
dup
iconst_1
bipush -35
bastore
dup
iconst_2
bipush -94
bastore
dup
iconst_3
bipush 44
bastore
dup
iconst_4
2: bipush 121
bastore
dup
iconst_5
bipush -24
bastore
dup
bipush 6
bipush 33
bastore
dup
bipush 7
iconst_5
bastore
3: putstatic com.sun.crypto.provider.DESedeWrapCipher.IV2:[B
4: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.crypto.CipherSpi.<init>:()V
1: aload 0
aconst_null
putfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
2: aload 0
aconst_null
putfield com.sun.crypto.provider.DESedeWrapCipher.cipherKey:Ljava/security/Key;
3: aload 0
iconst_0
putfield com.sun.crypto.provider.DESedeWrapCipher.decrypting:Z
4: aload 0
new com.sun.crypto.provider.CipherBlockChaining
dup
new com.sun.crypto.provider.DESedeCrypt
dup
invokespecial com.sun.crypto.provider.DESedeCrypt.<init>:()V
invokespecial com.sun.crypto.provider.CipherBlockChaining.<init>:(Lcom/sun/crypto/provider/SymmetricCipher;)V
putfield com.sun.crypto.provider.DESedeWrapCipher.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
protected void engineSetMode(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "CBC"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 2
1: new java.security.NoSuchAlgorithmException
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " cannot be used"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 3 1 mode Ljava/lang/String;
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
mode
protected void engineSetPadding(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "NoPadding"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 2
1: new javax.crypto.NoSuchPaddingException
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " cannot be used"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.crypto.NoSuchPaddingException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 3 1 padding Ljava/lang/String;
Exceptions:
throws javax.crypto.NoSuchPaddingException
MethodParameters:
Name Flags
padding
protected int engineGetBlockSize();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: bipush 8
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
protected int engineGetOutputSize(int);
descriptor: (I)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.decrypting:Z
ifeq 4
2: iload 1
bipush 16
isub
istore 2
3: goto 5
4: StackMap locals: int
StackMap stack:
iload 1
bipush 16
invokestatic java.lang.Math.addExact:(II)I
istore 2
5: StackMap locals:
StackMap stack:
iload 2
ifge 6
iconst_0
goto 7
StackMap locals:
StackMap stack:
6: iload 2
StackMap locals:
StackMap stack: int
7: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 8 1 inputLen I
1 8 2 result I
MethodParameters:
Name Flags
inputLen
protected byte[] engineGetIV();
descriptor: ()[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
ifnonnull 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
StackMap locals:
StackMap stack: byte[]
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
protected void engineInit(int, java.security.Key, java.security.SecureRandom);
descriptor: (ILjava/security/Key;Ljava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, 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.DESedeWrapCipher.engineInit:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
1: goto 7
StackMap locals:
StackMap stack: java.security.InvalidAlgorithmParameterException
2: astore 4
start local 4 3: new java.security.InvalidKeyException
dup
ldc "Parameters required"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
4: astore 5
start local 5 5: aload 5
aload 4
invokevirtual java.security.InvalidKeyException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
6: aload 5
athrow
end local 5 end local 4 7: StackMap locals:
StackMap stack:
return
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/DESedeWrapCipher;
0 8 1 opmode I
0 8 2 key Ljava/security/Key;
0 8 3 random Ljava/security/SecureRandom;
3 7 4 iape Ljava/security/InvalidAlgorithmParameterException;
5 7 5 ike Ljava/security/InvalidKeyException;
Exception table:
from to target type
0 1 2 Class java.security.InvalidAlgorithmParameterException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
opmode
key
random
protected void engineInit(int, java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
descriptor: (ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=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: iload 1
iconst_3
if_icmpne 17
2: aload 0
iconst_0
putfield com.sun.crypto.provider.DESedeWrapCipher.decrypting:Z
3: aload 3
ifnonnull 9
4: aload 0
bipush 8
newarray 8
putfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
5: aload 4
ifnonnull 7
6: invokestatic com.sun.crypto.provider.SunJCE.getRandom:()Ljava/security/SecureRandom;
astore 4
7: StackMap locals: byte[]
StackMap stack:
aload 4
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
invokevirtual java.security.SecureRandom.nextBytes:([B)V
8: goto 15
9: StackMap locals:
StackMap stack:
aload 3
instanceof javax.crypto.spec.IvParameterSpec
ifeq 12
10: aload 0
aload 3
checkcast javax.crypto.spec.IvParameterSpec
invokevirtual javax.crypto.spec.IvParameterSpec.getIV:()[B
putfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
11: goto 15
12: StackMap locals:
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
13: ldc "Wrong parameter type: IV expected"
14: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
astore 5
16: goto 27
StackMap locals:
StackMap stack:
17: iload 1
iconst_4
if_icmpne 26
18: aload 3
ifnull 22
19: new java.security.InvalidAlgorithmParameterException
dup
20: ldc "No parameter accepted for unwrapping keys"
21: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
23: aload 0
iconst_1
putfield com.sun.crypto.provider.DESedeWrapCipher.decrypting:Z
24: getstatic com.sun.crypto.provider.DESedeWrapCipher.IV2:[B
astore 5
25: goto 27
26: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
ldc "This cipher can only be used for key wrapping and unwrapping"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
27: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.decrypting:Z
aload 2
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
aload 2
invokeinterface java.security.Key.getEncoded:()[B
28: aload 5
29: invokevirtual com.sun.crypto.provider.FeedbackCipher.init:(ZLjava/lang/String;[B[B)V
30: aload 0
aload 2
putfield com.sun.crypto.provider.DESedeWrapCipher.cipherKey:Ljava/security/Key;
31: 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 32 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 32 1 opmode I
0 32 2 key Ljava/security/Key;
0 32 3 params Ljava/security/spec/AlgorithmParameterSpec;
0 32 4 random Ljava/security/SecureRandom;
1 32 5 currIv [B
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
opmode
key
params
random
protected void engineInit(int, java.security.Key, java.security.AlgorithmParameters, java.security.SecureRandom);
descriptor: (ILjava/security/Key;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=8, 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 13
2: new com.sun.crypto.provider.DESedeParameters
dup
invokespecial com.sun.crypto.provider.DESedeParameters.<init>:()V
astore 6
start local 6 3: aload 6
aload 3
invokevirtual java.security.AlgorithmParameters.getEncoded:()[B
invokevirtual com.sun.crypto.provider.DESedeParameters.engineInit:([B)V
4: aload 6
ldc Ljavax/crypto/spec/IvParameterSpec;
invokevirtual com.sun.crypto.provider.DESedeParameters.engineGetParameterSpec:(Ljava/lang/Class;)Ljava/security/spec/AlgorithmParameterSpec;
checkcast javax.crypto.spec.IvParameterSpec
astore 5
end local 6 5: goto 13
StackMap locals: com.sun.crypto.provider.DESedeWrapCipher int java.security.Key java.security.AlgorithmParameters java.security.SecureRandom javax.crypto.spec.IvParameterSpec
StackMap stack: java.lang.Exception
6: astore 6
start local 6 7: new java.security.InvalidAlgorithmParameterException
dup
8: ldc "Wrong parameter type: IV expected"
9: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
10: astore 7
start local 7 11: aload 7
aload 6
invokevirtual java.security.InvalidAlgorithmParameterException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
12: aload 7
athrow
end local 7 end local 6 13: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 2
aload 5
aload 4
invokevirtual com.sun.crypto.provider.DESedeWrapCipher.engineInit:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
14: 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 15 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 15 1 opmode I
0 15 2 key Ljava/security/Key;
0 15 3 params Ljava/security/AlgorithmParameters;
0 15 4 random Ljava/security/SecureRandom;
1 15 5 ivSpec Ljavax/crypto/spec/IvParameterSpec;
3 5 6 paramsEng Lcom/sun/crypto/provider/DESedeParameters;
7 13 6 ex Ljava/lang/Exception;
11 13 7 iape Ljava/security/InvalidAlgorithmParameterException;
Exception table:
from to target type
2 5 6 Class java.lang.Exception
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
opmode
key
params
random
protected byte[] engineUpdate(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.IllegalStateException
dup
ldc "Cipher has not been initialized"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 1 1 in [B
0 1 2 inOffset I
0 1 3 inLen I
MethodParameters:
Name Flags
in
inOffset
inLen
protected int engineUpdate(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: new java.lang.IllegalStateException
dup
ldc "Cipher has not been initialized"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)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 1 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 1 1 in [B
0 1 2 inOffset I
0 1 3 inLen I
0 1 4 out [B
0 1 5 outOffset I
Exceptions:
throws javax.crypto.ShortBufferException
MethodParameters:
Name Flags
in
inOffset
inLen
out
outOffset
protected byte[] engineDoFinal(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.IllegalStateException
dup
ldc "Cipher has not been initialized"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 1 1 in [B
0 1 2 inOffset I
0 1 3 inLen I
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
MethodParameters:
Name Flags
in
inOffset
inLen
protected int engineDoFinal(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: new java.lang.IllegalStateException
dup
ldc "Cipher has not been initialized"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)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 1 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 1 1 input [B
0 1 2 inputOffset I
0 1 3 inputLen I
0 1 4 output [B
0 1 5 outputOffset I
Exceptions:
throws javax.crypto.IllegalBlockSizeException, javax.crypto.ShortBufferException, javax.crypto.BadPaddingException
MethodParameters:
Name Flags
input
inputOffset
inputLen
output
outputOffset
protected java.security.AlgorithmParameters engineGetParameters();
descriptor: ()Ljava/security/AlgorithmParameters;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
ifnull 14
2: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipherKey:Ljava/security/Key;
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
astore 2
start local 2 3: aload 2
4: invokestatic com.sun.crypto.provider.SunJCE.getInstance:()Lcom/sun/crypto/provider/SunJCE;
5: invokestatic java.security.AlgorithmParameters.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/AlgorithmParameters;
astore 1
6: aload 1
new javax.crypto.spec.IvParameterSpec
dup
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
invokespecial javax.crypto.spec.IvParameterSpec.<init>:([B)V
invokevirtual java.security.AlgorithmParameters.init:(Ljava/security/spec/AlgorithmParameterSpec;)V
7: goto 14
StackMap locals: com.sun.crypto.provider.DESedeWrapCipher java.security.AlgorithmParameters java.lang.String
StackMap stack: java.security.NoSuchAlgorithmException
8: pop
9: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Cannot find "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: 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;
11: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack: java.security.spec.InvalidParameterSpecException
pop
13: new java.lang.RuntimeException
dup
ldc "IvParameterSpec not supported"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 2 14: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
1 15 1 params Ljava/security/AlgorithmParameters;
3 14 2 algo Ljava/lang/String;
Exception table:
from to target type
3 7 8 Class java.security.NoSuchAlgorithmException
3 7 12 Class java.security.spec.InvalidParameterSpecException
protected int engineGetKeySize(java.security.Key);
descriptor: (Ljava/security/Key;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.security.Key.getEncoded:()[B
astore 2
start local 2 1: aload 2
arraylength
bipush 24
if_icmpeq 5
2: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "Invalid key length: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: aload 2
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: byte[]
StackMap stack:
bipush 112
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 6 1 key Ljava/security/Key;
1 6 2 encoded [B
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected byte[] engineWrap(java.security.Key);
descriptor: (Ljava/security/Key;)[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.security.Key.getEncoded:()[B
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
arraylength
ifne 3
2: StackMap locals: 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
3: StackMap locals:
StackMap stack:
aload 2
invokestatic com.sun.crypto.provider.DESedeWrapCipher.getChecksum:([B)[B
astore 3
start local 3 4: aload 2
arraylength
bipush 8
invokestatic java.lang.Math.addExact:(II)I
newarray 8
astore 4
start local 4 5: aload 2
iconst_0
aload 4
iconst_0
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 3
iconst_0
aload 4
aload 2
arraylength
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
aload 4
arraylength
invokestatic java.lang.Math.addExact:(II)I
newarray 8
astore 5
start local 5 8: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
iconst_0
aload 5
iconst_0
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 4
iconst_0
aload 4
arraylength
aload 5
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
invokevirtual com.sun.crypto.provider.FeedbackCipher.encrypt:([BII[BI)I
pop
10: iconst_0
istore 6
start local 6 11: goto 16
12: StackMap locals: com.sun.crypto.provider.DESedeWrapCipher java.security.Key byte[] byte[] byte[] byte[] int
StackMap stack:
aload 5
iload 6
baload
istore 7
start local 7 13: aload 5
iload 6
aload 5
aload 5
arraylength
iconst_1
isub
iload 6
isub
baload
bastore
14: aload 5
aload 5
arraylength
iconst_1
isub
iload 6
isub
iload 7
bastore
end local 7 15: iinc 6 1
StackMap locals:
StackMap stack:
16: iload 6
aload 5
arraylength
iconst_2
idiv
if_icmplt 12
end local 6 17: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
iconst_0
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipherKey:Ljava/security/Key;
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
18: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipherKey:Ljava/security/Key;
invokeinterface java.security.Key.getEncoded:()[B
getstatic com.sun.crypto.provider.DESedeWrapCipher.IV2:[B
19: invokevirtual com.sun.crypto.provider.FeedbackCipher.init:(ZLjava/lang/String;[B[B)V
20: goto 25
StackMap locals: com.sun.crypto.provider.DESedeWrapCipher java.security.Key byte[] byte[] byte[] byte[]
StackMap stack: java.security.InvalidKeyException
21: pop
22: new java.lang.RuntimeException
dup
ldc "Internal cipher key is corrupted"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals:
StackMap stack: java.security.InvalidAlgorithmParameterException
pop
24: new java.lang.RuntimeException
dup
ldc "Internal cipher IV is invalid"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
aload 5
arraylength
newarray 8
astore 6
start local 6 26: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 5
iconst_0
aload 5
arraylength
aload 6
iconst_0
invokevirtual com.sun.crypto.provider.FeedbackCipher.encrypt:([BII[BI)I
pop
27: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.decrypting:Z
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipherKey:Ljava/security/Key;
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
28: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipherKey:Ljava/security/Key;
invokeinterface java.security.Key.getEncoded:()[B
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
29: invokevirtual com.sun.crypto.provider.FeedbackCipher.init:(ZLjava/lang/String;[B[B)V
30: goto 35
StackMap locals: com.sun.crypto.provider.DESedeWrapCipher java.security.Key byte[] byte[] byte[] byte[] byte[]
StackMap stack: java.security.InvalidKeyException
31: pop
32: new java.lang.RuntimeException
dup
ldc "Internal cipher key is corrupted"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
33: StackMap locals:
StackMap stack: java.security.InvalidAlgorithmParameterException
pop
34: new java.lang.RuntimeException
dup
ldc "Internal cipher IV is invalid"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
35: StackMap locals:
StackMap stack:
aload 6
areturn
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 36 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 36 1 key Ljava/security/Key;
1 36 2 keyVal [B
4 36 3 cks [B
5 36 4 in [B
8 36 5 out [B
11 17 6 i I
13 15 7 temp B
26 36 6 out2 [B
Exception table:
from to target type
17 20 21 Class java.security.InvalidKeyException
17 20 23 Class java.security.InvalidAlgorithmParameterException
27 30 31 Class java.security.InvalidKeyException
27 30 33 Class java.security.InvalidAlgorithmParameterException
Exceptions:
throws javax.crypto.IllegalBlockSizeException, java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected java.security.Key engineUnwrap(byte[], java.lang.String, int);
descriptor: ([BLjava/lang/String;I)Ljava/security/Key;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
arraylength
ifne 2
1: new java.security.InvalidKeyException
dup
ldc "The wrapped key is empty"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
arraylength
newarray 8
astore 4
start local 4 3: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 1
iconst_0
aload 1
arraylength
aload 4
iconst_0
invokevirtual com.sun.crypto.provider.FeedbackCipher.decrypt:([BII[BI)I
pop
4: iconst_0
istore 5
start local 5 5: goto 10
6: StackMap locals: byte[] int
StackMap stack:
aload 4
iload 5
baload
istore 6
start local 6 7: aload 4
iload 5
aload 4
aload 4
arraylength
iconst_1
isub
iload 5
isub
baload
bastore
8: aload 4
aload 4
arraylength
iconst_1
isub
iload 5
isub
iload 6
bastore
end local 6 9: iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
aload 4
arraylength
iconst_2
idiv
if_icmplt 6
end local 5 11: aload 0
bipush 8
newarray 8
putfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
12: aload 4
iconst_0
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
iconst_0
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
iconst_1
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipherKey:Ljava/security/Key;
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipherKey:Ljava/security/Key;
invokeinterface java.security.Key.getEncoded:()[B
14: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
15: invokevirtual com.sun.crypto.provider.FeedbackCipher.init:(ZLjava/lang/String;[B[B)V
16: goto 19
StackMap locals: com.sun.crypto.provider.DESedeWrapCipher byte[] java.lang.String int byte[]
StackMap stack: java.security.InvalidAlgorithmParameterException
17: pop
18: new java.security.InvalidKeyException
dup
ldc "IV in wrapped key is invalid"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
aload 4
arraylength
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
isub
newarray 8
astore 5
start local 5 20: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 4
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
aload 5
arraylength
21: aload 5
iconst_0
22: invokevirtual com.sun.crypto.provider.FeedbackCipher.decrypt:([BII[BI)I
pop
23: aload 5
arraylength
bipush 8
isub
istore 6
start local 6 24: aload 5
iconst_0
iload 6
invokestatic com.sun.crypto.provider.DESedeWrapCipher.getChecksum:([BII)[B
astore 7
start local 7 25: iload 6
istore 8
start local 8 26: iconst_0
istore 9
start local 9 27: goto 31
28: StackMap locals: com.sun.crypto.provider.DESedeWrapCipher byte[] java.lang.String int byte[] byte[] int byte[] int int
StackMap stack:
aload 5
iload 8
iload 9
iadd
baload
aload 7
iload 9
baload
if_icmpeq 30
29: new java.security.InvalidKeyException
dup
ldc "Checksum comparison failed"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
30: StackMap locals:
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
31: iload 9
bipush 8
if_icmplt 28
end local 9 32: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.decrypting:Z
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipherKey:Ljava/security/Key;
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
33: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipherKey:Ljava/security/Key;
invokeinterface java.security.Key.getEncoded:()[B
getstatic com.sun.crypto.provider.DESedeWrapCipher.IV2:[B
34: invokevirtual com.sun.crypto.provider.FeedbackCipher.init:(ZLjava/lang/String;[B[B)V
35: goto 38
StackMap locals: com.sun.crypto.provider.DESedeWrapCipher byte[] java.lang.String int byte[] byte[] int byte[] int
StackMap stack: java.security.InvalidAlgorithmParameterException
36: pop
37: new java.security.InvalidKeyException
dup
ldc "IV in wrapped key is invalid"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
38: StackMap locals:
StackMap stack:
iload 6
newarray 8
astore 9
start local 9 39: aload 5
iconst_0
aload 9
iconst_0
iload 6
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
40: aload 9
aload 2
41: iload 3
42: invokestatic com.sun.crypto.provider.ConstructKeys.constructKey:([BLjava/lang/String;I)Ljava/security/Key;
areturn
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 43 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 43 1 wrappedKey [B
0 43 2 wrappedKeyAlgorithm Ljava/lang/String;
0 43 3 wrappedKeyType I
3 43 4 buffer [B
5 11 5 i I
7 9 6 temp B
20 43 5 buffer2 [B
24 43 6 keyValLen I
25 43 7 cks [B
26 43 8 offset I
27 32 9 i I
39 43 9 out [B
Exception table:
from to target type
13 16 17 Class java.security.InvalidAlgorithmParameterException
32 35 36 Class java.security.InvalidAlgorithmParameterException
Exceptions:
throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
wrappedKey
wrappedKeyAlgorithm
wrappedKeyType
private static final byte[] getChecksum(byte[]);
descriptor: ([B)[B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aload 0
arraylength
invokestatic com.sun.crypto.provider.DESedeWrapCipher.getChecksum:([BII)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 in [B
MethodParameters:
Name Flags
in
private static final byte[] getChecksum(byte[], int, int);
descriptor: ([BII)[B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: ldc "SHA1"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 3
2: goto 5
StackMap locals: byte[] int int java.security.MessageDigest
StackMap stack: java.security.NoSuchAlgorithmException
3: pop
4: new java.lang.RuntimeException
dup
ldc "SHA1 message digest not available"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 3
aload 0
iload 1
iload 2
invokevirtual java.security.MessageDigest.update:([BII)V
6: bipush 8
newarray 8
astore 4
start local 4 7: aload 3
invokevirtual java.security.MessageDigest.digest:()[B
iconst_0
aload 4
iconst_0
aload 4
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 in [B
0 9 1 offset I
0 9 2 len I
1 9 3 md Ljava/security/MessageDigest;
7 9 4 cks [B
Exception table:
from to target type
1 2 3 Class java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
in
offset
len
}
SourceFile: "DESedeWrapCipher.java"