public class org.bouncycastle.crypto.engines.RC2WrapEngine implements org.bouncycastle.crypto.Wrapper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.engines.RC2WrapEngine
super_class: java.lang.Object
{
private org.bouncycastle.crypto.modes.CBCBlockCipher engine;
descriptor: Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.CipherParameters param;
descriptor: Lorg/bouncycastle/crypto/CipherParameters;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.params.ParametersWithIV paramPlusIV;
descriptor: Lorg/bouncycastle/crypto/params/ParametersWithIV;
flags: (0x0002) ACC_PRIVATE
private byte[] iv;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private boolean forWrapping;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.security.SecureRandom sr;
descriptor: Ljava/security/SecureRandom;
flags: (0x0002) ACC_PRIVATE
private static final byte[] IV2;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
org.bouncycastle.crypto.Digest sha1;
descriptor: Lorg/bouncycastle/crypto/Digest;
flags: (0x0000)
byte[] digest;
descriptor: [B
flags: (0x0000)
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
bipush 74
bastore
dup
iconst_1
bipush -35
bastore
dup
iconst_2
bipush -94
bastore
dup
iconst_3
1: bipush 44
bastore
dup
iconst_4
bipush 121
bastore
dup
iconst_5
bipush -24
bastore
dup
bipush 6
2: bipush 33
bastore
dup
bipush 7
iconst_5
bastore
3: putstatic org.bouncycastle.crypto.engines.RC2WrapEngine.IV2:[B
4: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.bouncycastle.crypto.digests.SHA1Digest
dup
invokespecial org.bouncycastle.crypto.digests.SHA1Digest.<init>:()V
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.sha1:Lorg/bouncycastle/crypto/Digest;
2: aload 0
bipush 20
newarray 8
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.digest:[B
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/engines/RC2WrapEngine;
public void init(boolean, org.bouncycastle.crypto.CipherParameters);
descriptor: (ZLorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.forWrapping:Z
1: aload 0
new org.bouncycastle.crypto.modes.CBCBlockCipher
dup
new org.bouncycastle.crypto.engines.RC2Engine
dup
invokespecial org.bouncycastle.crypto.engines.RC2Engine.<init>:()V
invokespecial org.bouncycastle.crypto.modes.CBCBlockCipher.<init>:(Lorg/bouncycastle/crypto/BlockCipher;)V
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
2: aload 2
instanceof org.bouncycastle.crypto.params.ParametersWithRandom
ifeq 7
3: aload 2
checkcast org.bouncycastle.crypto.params.ParametersWithRandom
astore 3
start local 3 4: aload 0
aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithRandom.getRandom:()Ljava/security/SecureRandom;
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.sr:Ljava/security/SecureRandom;
5: aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithRandom.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
astore 2
end local 3 6: goto 8
7: StackMap locals:
StackMap stack:
aload 0
new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.sr:Ljava/security/SecureRandom;
8: StackMap locals:
StackMap stack:
aload 2
instanceof org.bouncycastle.crypto.params.ParametersWithIV
ifeq 18
9: aload 0
aload 2
checkcast org.bouncycastle.crypto.params.ParametersWithIV
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.paramPlusIV:Lorg/bouncycastle/crypto/params/ParametersWithIV;
10: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.paramPlusIV:Lorg/bouncycastle/crypto/params/ParametersWithIV;
invokevirtual org.bouncycastle.crypto.params.ParametersWithIV.getIV:()[B
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
11: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.paramPlusIV:Lorg/bouncycastle/crypto/params/ParametersWithIV;
invokevirtual org.bouncycastle.crypto.params.ParametersWithIV.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.param:Lorg/bouncycastle/crypto/CipherParameters;
12: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.forWrapping:Z
ifeq 15
13: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
ifnull 14
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
arraylength
bipush 8
if_icmpeq 23
14: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "IV is not 8 octets"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
16: ldc "You should not supply an IV for unwrapping"
17: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.param:Lorg/bouncycastle/crypto/CipherParameters;
19: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.forWrapping:Z
ifeq 23
20: aload 0
bipush 8
newarray 8
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
21: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.sr:Ljava/security/SecureRandom;
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
invokevirtual java.security.SecureRandom.nextBytes:([B)V
22: aload 0
new org.bouncycastle.crypto.params.ParametersWithIV
dup
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.param:Lorg/bouncycastle/crypto/CipherParameters;
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
invokespecial org.bouncycastle.crypto.params.ParametersWithIV.<init>:(Lorg/bouncycastle/crypto/CipherParameters;[B)V
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.paramPlusIV:Lorg/bouncycastle/crypto/params/ParametersWithIV;
23: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/bouncycastle/crypto/engines/RC2WrapEngine;
0 24 1 forWrapping Z
0 24 2 param Lorg/bouncycastle/crypto/CipherParameters;
4 6 3 pWithR Lorg/bouncycastle/crypto/params/ParametersWithRandom;
MethodParameters:
Name Flags
forWrapping
param
public java.lang.String getAlgorithmName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "RC2"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/engines/RC2WrapEngine;
public byte[] wrap(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=17, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.forWrapping:Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "Not initialized for wrapping"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 3
iconst_1
iadd
istore 4
start local 4 3: iload 4
bipush 8
irem
ifeq 5
4: iload 4
bipush 8
iload 4
bipush 8
irem
isub
iadd
istore 4
5: StackMap locals: int
StackMap stack:
iload 4
newarray 8
astore 5
start local 5 6: aload 5
iconst_0
iload 3
i2b
bastore
7: aload 1
iload 2
aload 5
iconst_1
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: aload 5
arraylength
iload 3
isub
iconst_1
isub
newarray 8
astore 6
start local 6 9: aload 6
arraylength
ifle 12
10: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.sr:Ljava/security/SecureRandom;
aload 6
invokevirtual java.security.SecureRandom.nextBytes:([B)V
11: aload 6
iconst_0
aload 5
iload 3
iconst_1
iadd
aload 6
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
12: StackMap locals: byte[] byte[]
StackMap stack:
aload 0
aload 5
invokevirtual org.bouncycastle.crypto.engines.RC2WrapEngine.calculateCMSKeyChecksum:([B)[B
astore 7
start local 7 13: aload 5
arraylength
aload 7
arraylength
iadd
newarray 8
astore 8
start local 8 14: aload 5
iconst_0
aload 8
iconst_0
aload 5
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
15: aload 7
iconst_0
aload 8
aload 5
arraylength
aload 7
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
16: aload 8
arraylength
newarray 8
astore 9
start local 9 17: aload 8
iconst_0
aload 9
iconst_0
aload 8
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
18: aload 8
arraylength
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.getBlockSize:()I
idiv
istore 10
start local 10 19: aload 8
arraylength
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.getBlockSize:()I
irem
istore 11
start local 11 20: iload 11
ifeq 22
21: new java.lang.IllegalStateException
dup
ldc "Not multiple of block length"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals: org.bouncycastle.crypto.engines.RC2WrapEngine byte[] int int int byte[] byte[] byte[] byte[] byte[] int int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
iconst_1
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.paramPlusIV:Lorg/bouncycastle/crypto/params/ParametersWithIV;
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
23: iconst_0
istore 12
start local 12 24: goto 28
25: StackMap locals: int
StackMap stack:
iload 12
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.getBlockSize:()I
imul
istore 13
start local 13 26: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
aload 9
iload 13
aload 9
iload 13
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.processBlock:([BI[BI)I
pop
end local 13 27: iinc 12 1
StackMap locals:
StackMap stack:
28: iload 12
iload 10
if_icmplt 25
end local 12 29: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
arraylength
aload 9
arraylength
iadd
newarray 8
astore 12
start local 12 30: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
iconst_0
aload 12
iconst_0
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
31: aload 9
iconst_0
aload 12
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
arraylength
aload 9
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
32: aload 12
arraylength
newarray 8
astore 13
start local 13 33: iconst_0
istore 14
start local 14 34: goto 37
35: StackMap locals: org.bouncycastle.crypto.engines.RC2WrapEngine byte[] int int int byte[] byte[] byte[] byte[] byte[] int int byte[] byte[] int
StackMap stack:
aload 13
iload 14
aload 12
aload 12
arraylength
iload 14
iconst_1
iadd
isub
baload
bastore
36: iinc 14 1
StackMap locals:
StackMap stack:
37: iload 14
aload 12
arraylength
if_icmplt 35
end local 14 38: new org.bouncycastle.crypto.params.ParametersWithIV
dup
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.param:Lorg/bouncycastle/crypto/CipherParameters;
getstatic org.bouncycastle.crypto.engines.RC2WrapEngine.IV2:[B
invokespecial org.bouncycastle.crypto.params.ParametersWithIV.<init>:(Lorg/bouncycastle/crypto/CipherParameters;[B)V
astore 14
start local 14 39: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
iconst_1
aload 14
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
40: iconst_0
istore 15
start local 15 41: goto 45
42: StackMap locals: org.bouncycastle.crypto.engines.RC2WrapEngine byte[] int int int byte[] byte[] byte[] byte[] byte[] int int byte[] byte[] org.bouncycastle.crypto.params.ParametersWithIV int
StackMap stack:
iload 15
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.getBlockSize:()I
imul
istore 16
start local 16 43: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
aload 13
iload 16
aload 13
iload 16
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.processBlock:([BI[BI)I
pop
end local 16 44: iinc 15 1
StackMap locals:
StackMap stack:
45: iload 15
iload 10
iconst_1
iadd
if_icmplt 42
end local 15 46: aload 13
areturn
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 47 0 this Lorg/bouncycastle/crypto/engines/RC2WrapEngine;
0 47 1 in [B
0 47 2 inOff I
0 47 3 inLen I
3 47 4 length I
6 47 5 keyToBeWrapped [B
9 47 6 pad [B
13 47 7 CKS [B
14 47 8 WKCKS [B
17 47 9 TEMP1 [B
19 47 10 noOfBlocks I
20 47 11 extraBytes I
24 29 12 i I
26 27 13 currentBytePos I
30 47 12 TEMP2 [B
33 47 13 TEMP3 [B
34 38 14 i I
39 47 14 param2 Lorg/bouncycastle/crypto/params/ParametersWithIV;
41 46 15 i I
43 44 16 currentBytePos I
MethodParameters:
Name Flags
in
inOff
inLen
public byte[] unwrap(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=12, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.forWrapping:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Not set for unwrapping"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: new org.bouncycastle.crypto.InvalidCipherTextException
dup
ldc "Null pointer as ciphertext"
invokespecial org.bouncycastle.crypto.InvalidCipherTextException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.getBlockSize:()I
irem
ifeq 8
5: new org.bouncycastle.crypto.InvalidCipherTextException
dup
new java.lang.StringBuilder
dup
ldc "Ciphertext not multiple of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
6: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.getBlockSize:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial org.bouncycastle.crypto.InvalidCipherTextException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
new org.bouncycastle.crypto.params.ParametersWithIV
dup
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.param:Lorg/bouncycastle/crypto/CipherParameters;
getstatic org.bouncycastle.crypto.engines.RC2WrapEngine.IV2:[B
invokespecial org.bouncycastle.crypto.params.ParametersWithIV.<init>:(Lorg/bouncycastle/crypto/CipherParameters;[B)V
astore 4
start local 4 9: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
iconst_0
aload 4
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
10: iload 3
newarray 8
astore 5
start local 5 11: aload 1
iload 2
aload 5
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
12: iconst_0
istore 6
start local 6 13: goto 17
14: StackMap locals: org.bouncycastle.crypto.params.ParametersWithIV byte[] int
StackMap stack:
iload 6
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.getBlockSize:()I
imul
istore 7
start local 7 15: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
aload 5
iload 7
aload 5
iload 7
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.processBlock:([BI[BI)I
pop
end local 7 16: iinc 6 1
StackMap locals:
StackMap stack:
17: iload 6
aload 5
arraylength
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.getBlockSize:()I
idiv
if_icmplt 14
end local 6 18: aload 5
arraylength
newarray 8
astore 6
start local 6 19: iconst_0
istore 7
start local 7 20: goto 23
21: StackMap locals: org.bouncycastle.crypto.engines.RC2WrapEngine byte[] int int org.bouncycastle.crypto.params.ParametersWithIV byte[] byte[] int
StackMap stack:
aload 6
iload 7
aload 5
aload 5
arraylength
iload 7
iconst_1
iadd
isub
baload
bastore
22: iinc 7 1
StackMap locals:
StackMap stack:
23: iload 7
aload 5
arraylength
if_icmplt 21
end local 7 24: aload 0
bipush 8
newarray 8
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
25: aload 6
arraylength
bipush 8
isub
newarray 8
astore 7
start local 7 26: aload 6
iconst_0
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
iconst_0
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
27: aload 6
bipush 8
aload 7
iconst_0
aload 6
arraylength
bipush 8
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
28: aload 0
new org.bouncycastle.crypto.params.ParametersWithIV
dup
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.param:Lorg/bouncycastle/crypto/CipherParameters;
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.iv:[B
invokespecial org.bouncycastle.crypto.params.ParametersWithIV.<init>:(Lorg/bouncycastle/crypto/CipherParameters;[B)V
putfield org.bouncycastle.crypto.engines.RC2WrapEngine.paramPlusIV:Lorg/bouncycastle/crypto/params/ParametersWithIV;
29: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
iconst_0
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.paramPlusIV:Lorg/bouncycastle/crypto/params/ParametersWithIV;
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
30: aload 7
arraylength
newarray 8
astore 8
start local 8 31: aload 7
iconst_0
aload 8
iconst_0
aload 7
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
32: iconst_0
istore 9
start local 9 33: goto 39
34: StackMap locals: org.bouncycastle.crypto.engines.RC2WrapEngine byte[] int int org.bouncycastle.crypto.params.ParametersWithIV byte[] byte[] byte[] byte[] int
StackMap stack:
iload 9
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.getBlockSize:()I
imul
istore 10
start local 10 35: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
aload 8
iload 10
aload 8
36: iload 10
37: invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.processBlock:([BI[BI)I
pop
end local 10 38: iinc 9 1
StackMap locals:
StackMap stack:
39: iload 9
aload 8
arraylength
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.engine:Lorg/bouncycastle/crypto/modes/CBCBlockCipher;
invokevirtual org.bouncycastle.crypto.modes.CBCBlockCipher.getBlockSize:()I
idiv
if_icmplt 34
end local 9 40: aload 8
arraylength
bipush 8
isub
newarray 8
astore 9
start local 9 41: bipush 8
newarray 8
astore 10
start local 10 42: aload 8
iconst_0
aload 9
iconst_0
aload 8
arraylength
bipush 8
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
43: aload 8
aload 8
arraylength
bipush 8
isub
aload 10
iconst_0
44: bipush 8
45: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
46: aload 0
aload 9
aload 10
invokevirtual org.bouncycastle.crypto.engines.RC2WrapEngine.checkCMSKeyChecksum:([B[B)Z
ifne 50
47: new org.bouncycastle.crypto.InvalidCipherTextException
dup
48: ldc "Checksum inside ciphertext is corrupted"
49: invokespecial org.bouncycastle.crypto.InvalidCipherTextException.<init>:(Ljava/lang/String;)V
athrow
50: StackMap locals: org.bouncycastle.crypto.engines.RC2WrapEngine byte[] int int org.bouncycastle.crypto.params.ParametersWithIV byte[] byte[] byte[] byte[] byte[] byte[]
StackMap stack:
aload 9
arraylength
aload 9
iconst_0
baload
sipush 255
iand
iconst_1
iadd
isub
bipush 7
if_icmple 54
51: new org.bouncycastle.crypto.InvalidCipherTextException
dup
new java.lang.StringBuilder
dup
ldc "too many pad bytes ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
52: aload 9
arraylength
aload 9
iconst_0
baload
sipush 255
iand
iconst_1
iadd
isub
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
53: invokespecial org.bouncycastle.crypto.InvalidCipherTextException.<init>:(Ljava/lang/String;)V
athrow
54: StackMap locals:
StackMap stack:
aload 9
iconst_0
baload
newarray 8
astore 11
start local 11 55: aload 9
iconst_1
aload 11
iconst_0
aload 11
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
56: aload 11
areturn
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 57 0 this Lorg/bouncycastle/crypto/engines/RC2WrapEngine;
0 57 1 in [B
0 57 2 inOff I
0 57 3 inLen I
9 57 4 param2 Lorg/bouncycastle/crypto/params/ParametersWithIV;
11 57 5 TEMP3 [B
13 18 6 i I
15 16 7 currentBytePos I
19 57 6 TEMP2 [B
20 24 7 i I
26 57 7 TEMP1 [B
31 57 8 LCEKPADICV [B
33 40 9 i I
35 38 10 currentBytePos I
41 57 9 result [B
42 57 10 CKStoBeVerified [B
55 57 11 CEK [B
Exceptions:
throws org.bouncycastle.crypto.InvalidCipherTextException
MethodParameters:
Name Flags
in
inOff
inLen
private byte[] calculateCMSKeyChecksum(byte[]);
descriptor: ([B)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: bipush 8
newarray 8
astore 2
start local 2 1: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.sha1:Lorg/bouncycastle/crypto/Digest;
aload 1
iconst_0
aload 1
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
2: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.sha1:Lorg/bouncycastle/crypto/Digest;
aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.digest:[B
iconst_0
invokeinterface org.bouncycastle.crypto.Digest.doFinal:([BI)I
pop
3: aload 0
getfield org.bouncycastle.crypto.engines.RC2WrapEngine.digest:[B
iconst_0
aload 2
iconst_0
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/engines/RC2WrapEngine;
0 5 1 key [B
1 5 2 result [B
MethodParameters:
Name Flags
key
private boolean checkCMSKeyChecksum(byte[], byte[]);
descriptor: ([B[B)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.bouncycastle.crypto.engines.RC2WrapEngine.calculateCMSKeyChecksum:([B)[B
aload 2
invokestatic org.bouncycastle.util.Arrays.constantTimeAreEqual:([B[B)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/engines/RC2WrapEngine;
0 1 1 key [B
0 1 2 checksum [B
MethodParameters:
Name Flags
key
checksum
}
SourceFile: "RC2WrapEngine.java"