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 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 com.sun.crypto.provider.CipherCore.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: getstatic com.sun.crypto.provider.SunJCE.RANDOM: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 15
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
ldc "SunJCE"
invokestatic java.security.AlgorithmParameters.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/AlgorithmParameters;
astore 1
4: goto 11
StackMap locals: com.sun.crypto.provider.DESedeWrapCipher java.security.AlgorithmParameters java.lang.String
StackMap stack: java.security.NoSuchAlgorithmException
5: pop
6: 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;
7: 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;
8: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
pop
10: new java.lang.RuntimeException
dup
ldc "Cannot find SunJCE provider"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
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
12: goto 15
StackMap locals:
StackMap stack: java.security.spec.InvalidParameterSpecException
13: pop
14: new java.lang.RuntimeException
dup
ldc "IvParameterSpec not supported"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 2 15: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
1 16 1 params Ljava/security/AlgorithmParameters;
3 15 2 algo Ljava/lang/String;
Exception table:
from to target type
3 4 5 Class java.security.NoSuchAlgorithmException
3 4 9 Class java.security.NoSuchProviderException
11 12 13 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=7, 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 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
5: aload 2
arraylength
aload 3
arraylength
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
6: invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
newarray 8
astore 4
start local 4 7: aload 2
iconst_0
aload 4
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: aload 3
iconst_0
aload 4
9: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
aload 2
arraylength
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
aload 3
arraylength
10: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: 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
12: aload 2
arraylength
aload 3
arraylength
invokestatic com.sun.crypto.provider.CipherCore.addExact:(II)I
aload 4
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
13: invokevirtual com.sun.crypto.provider.FeedbackCipher.encrypt:([BII[BI)V
14: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
iconst_0
aload 4
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
15: iconst_0
istore 5
start local 5 16: goto 21
17: StackMap locals: byte[] byte[] int
StackMap stack:
aload 4
iload 5
baload
istore 6
start local 6 18: aload 4
iload 5
aload 4
aload 4
arraylength
iconst_1
isub
iload 5
isub
baload
bastore
19: aload 4
aload 4
arraylength
iconst_1
isub
iload 5
isub
iload 6
bastore
end local 6 20: iinc 5 1
StackMap locals:
StackMap stack:
21: iload 5
aload 4
arraylength
iconst_2
idiv
if_icmplt 17
end local 5 22: 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;
23: 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
24: invokevirtual com.sun.crypto.provider.FeedbackCipher.init:(ZLjava/lang/String;[B[B)V
25: goto 28
StackMap locals: com.sun.crypto.provider.DESedeWrapCipher java.security.Key byte[] byte[] byte[]
StackMap stack: java.security.InvalidKeyException
26: pop
27: new java.lang.RuntimeException
dup
ldc "Internal cipher key is corrupted"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
28: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.cipher:Lcom/sun/crypto/provider/FeedbackCipher;
aload 4
iconst_0
aload 4
arraylength
aload 4
iconst_0
invokevirtual com.sun.crypto.provider.FeedbackCipher.encrypt:([BII[BI)V
29: 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;
30: 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
31: invokevirtual com.sun.crypto.provider.FeedbackCipher.init:(ZLjava/lang/String;[B[B)V
32: goto 35
StackMap locals:
StackMap stack: java.security.InvalidKeyException
33: pop
34: new java.lang.RuntimeException
dup
ldc "Internal cipher key is corrupted"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
35: StackMap locals:
StackMap stack:
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 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
7 36 4 out [B
16 22 5 i I
18 20 6 temp B
Exception table:
from to target type
22 25 26 Class java.security.InvalidKeyException
29 32 33 Class java.security.InvalidKeyException
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=9, 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)V
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
getstatic com.sun.crypto.provider.DESedeWrapCipher.IV2:[B
arraylength
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: 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 4
arraylength
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
isub
17: aload 4
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
18: invokevirtual com.sun.crypto.provider.FeedbackCipher.decrypt:([BII[BI)V
19: aload 4
arraylength
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
isub
bipush 8
isub
istore 5
start local 5 20: aload 4
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
iload 5
invokestatic com.sun.crypto.provider.DESedeWrapCipher.getChecksum:([BII)[B
astore 6
start local 6 21: aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
iload 5
iadd
istore 7
start local 7 22: iconst_0
istore 8
start local 8 23: goto 27
24: StackMap locals: byte[] int int
StackMap stack:
aload 4
iload 7
iload 8
iadd
baload
aload 6
iload 8
baload
if_icmpeq 26
25: new java.security.InvalidKeyException
dup
ldc "Checksum comparison failed"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
27: iload 8
aload 6
arraylength
if_icmplt 24
end local 8 28: 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;
29: 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
30: invokevirtual com.sun.crypto.provider.FeedbackCipher.init:(ZLjava/lang/String;[B[B)V
31: iload 5
newarray 8
astore 8
start local 8 32: aload 4
aload 0
getfield com.sun.crypto.provider.DESedeWrapCipher.iv:[B
arraylength
aload 8
iconst_0
aload 8
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
33: aload 8
aload 2
34: iload 3
35: invokestatic com.sun.crypto.provider.ConstructKeys.constructKey:([BLjava/lang/String;I)Ljava/security/Key;
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 36 0 this Lcom/sun/crypto/provider/DESedeWrapCipher;
0 36 1 wrappedKey [B
0 36 2 wrappedKeyAlgorithm Ljava/lang/String;
0 36 3 wrappedKeyType I
3 36 4 buffer [B
5 11 5 i I
7 9 6 temp B
20 36 5 origLen I
21 36 6 cks [B
22 36 7 offset I
23 28 8 i I
32 36 8 out [B
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"