public class org.bouncycastle.crypto.engines.RFC3394WrapEngine implements org.bouncycastle.crypto.Wrapper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.engines.RFC3394WrapEngine
super_class: java.lang.Object
{
private org.bouncycastle.crypto.BlockCipher engine;
descriptor: Lorg/bouncycastle/crypto/BlockCipher;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.params.KeyParameter param;
descriptor: Lorg/bouncycastle/crypto/params/KeyParameter;
flags: (0x0002) ACC_PRIVATE
private boolean forWrapping;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private byte[] iv;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
public void <init>(org.bouncycastle.crypto.BlockCipher);
descriptor: (Lorg/bouncycastle/crypto/BlockCipher;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 8
newarray 8
dup
iconst_0
2: bipush -90
bastore
dup
iconst_1
bipush -90
bastore
dup
iconst_2
bipush -90
bastore
dup
iconst_3
bipush -90
bastore
dup
iconst_4
3: bipush -90
bastore
dup
iconst_5
bipush -90
bastore
dup
bipush 6
bipush -90
bastore
dup
bipush 7
bipush -90
bastore
putfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
4: aload 0
aload 1
putfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.engine:Lorg/bouncycastle/crypto/BlockCipher;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/crypto/engines/RFC3394WrapEngine;
0 6 1 engine Lorg/bouncycastle/crypto/BlockCipher;
MethodParameters:
Name Flags
engine
public void init(boolean, org.bouncycastle.crypto.CipherParameters);
descriptor: (ZLorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
putfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.forWrapping:Z
1: aload 2
instanceof org.bouncycastle.crypto.params.ParametersWithRandom
ifeq 3
2: aload 2
checkcast org.bouncycastle.crypto.params.ParametersWithRandom
invokevirtual org.bouncycastle.crypto.params.ParametersWithRandom.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
astore 2
3: StackMap locals:
StackMap stack:
aload 2
instanceof org.bouncycastle.crypto.params.KeyParameter
ifeq 6
4: aload 0
aload 2
checkcast org.bouncycastle.crypto.params.KeyParameter
putfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.param:Lorg/bouncycastle/crypto/params/KeyParameter;
5: goto 11
6: StackMap locals:
StackMap stack:
aload 2
instanceof org.bouncycastle.crypto.params.ParametersWithIV
ifeq 11
7: aload 0
aload 2
checkcast org.bouncycastle.crypto.params.ParametersWithIV
invokevirtual org.bouncycastle.crypto.params.ParametersWithIV.getIV:()[B
putfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
8: aload 0
aload 2
checkcast org.bouncycastle.crypto.params.ParametersWithIV
invokevirtual org.bouncycastle.crypto.params.ParametersWithIV.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.KeyParameter
putfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.param:Lorg/bouncycastle/crypto/params/KeyParameter;
9: aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
bipush 8
if_icmpeq 11
10: new java.lang.IllegalArgumentException
dup
ldc "IV not equal to 8"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/bouncycastle/crypto/engines/RFC3394WrapEngine;
0 12 1 forWrapping Z
0 12 2 param Lorg/bouncycastle/crypto/CipherParameters;
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: aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.engine:Lorg/bouncycastle/crypto/BlockCipher;
invokeinterface org.bouncycastle.crypto.BlockCipher.getAlgorithmName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/engines/RFC3394WrapEngine;
public byte[] wrap(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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.RFC3394WrapEngine.forWrapping:Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "not set for wrapping"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 3
bipush 8
idiv
istore 4
start local 4 3: iload 4
bipush 8
imul
iload 3
if_icmpeq 5
4: new org.bouncycastle.crypto.DataLengthException
dup
ldc "wrap data must be a multiple of 8 bytes"
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: int
StackMap stack:
iload 3
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
iadd
newarray 8
astore 5
start local 5 6: bipush 8
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
iadd
newarray 8
astore 6
start local 6 7: aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
iconst_0
aload 5
iconst_0
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: aload 1
iconst_0
aload 5
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.engine:Lorg/bouncycastle/crypto/BlockCipher;
iconst_1
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.param:Lorg/bouncycastle/crypto/params/KeyParameter;
invokeinterface org.bouncycastle.crypto.BlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
10: iconst_0
istore 7
start local 7 11: goto 30
12: StackMap locals: byte[] byte[] int
StackMap stack:
iconst_1
istore 8
start local 8 13: goto 28
14: StackMap locals: int
StackMap stack:
aload 5
iconst_0
aload 6
iconst_0
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
15: aload 5
bipush 8
iload 8
imul
aload 6
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
16: aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.engine:Lorg/bouncycastle/crypto/BlockCipher;
aload 6
iconst_0
aload 6
iconst_0
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
pop
17: iload 4
iload 7
imul
iload 8
iadd
istore 9
start local 9 18: iconst_1
istore 10
start local 10 19: goto 24
20: StackMap locals: int int
StackMap stack:
iload 9
i2b
istore 11
start local 11 21: aload 6
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
iload 10
isub
dup2
baload
iload 11
ixor
i2b
bastore
22: iload 9
bipush 8
iushr
istore 9
end local 11 23: iinc 10 1
StackMap locals:
StackMap stack:
24: iload 9
ifne 20
end local 10 25: aload 6
iconst_0
aload 5
iconst_0
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
26: aload 6
bipush 8
aload 5
bipush 8
iload 8
imul
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
end local 9 27: iinc 8 1
StackMap locals:
StackMap stack:
28: iload 8
iload 4
if_icmple 14
end local 8 29: iinc 7 1
StackMap locals:
StackMap stack:
30: iload 7
bipush 6
if_icmpne 12
end local 7 31: aload 5
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 32 0 this Lorg/bouncycastle/crypto/engines/RFC3394WrapEngine;
0 32 1 in [B
0 32 2 inOff I
0 32 3 inLen I
3 32 4 n I
6 32 5 block [B
7 32 6 buf [B
11 31 7 j I
13 29 8 i I
18 27 9 t I
19 25 10 k I
21 23 11 v B
MethodParameters:
Name Flags
in
inOff
inLen
public byte[] unwrap(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=13, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.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:
iload 3
bipush 8
idiv
istore 4
start local 4 3: iload 4
bipush 8
imul
iload 3
if_icmpeq 5
4: new org.bouncycastle.crypto.InvalidCipherTextException
dup
ldc "unwrap data must be a multiple of 8 bytes"
invokespecial org.bouncycastle.crypto.InvalidCipherTextException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: int
StackMap stack:
iload 3
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
isub
newarray 8
astore 5
start local 5 6: aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
newarray 8
astore 6
start local 6 7: bipush 8
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
iadd
newarray 8
astore 7
start local 7 8: aload 1
iconst_0
aload 6
iconst_0
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 1
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
aload 5
iconst_0
iload 3
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.engine:Lorg/bouncycastle/crypto/BlockCipher;
iconst_0
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.param:Lorg/bouncycastle/crypto/params/KeyParameter;
invokeinterface org.bouncycastle.crypto.BlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
11: iinc 4 -1
12: iconst_5
istore 8
start local 8 13: goto 32
14: StackMap locals: org.bouncycastle.crypto.engines.RFC3394WrapEngine byte[] int int int byte[] byte[] byte[] int
StackMap stack:
iload 4
istore 9
start local 9 15: goto 30
16: StackMap locals: int
StackMap stack:
aload 6
iconst_0
aload 7
iconst_0
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
17: aload 5
bipush 8
iload 9
iconst_1
isub
imul
aload 7
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
18: iload 4
iload 8
imul
iload 9
iadd
istore 10
start local 10 19: iconst_1
istore 11
start local 11 20: goto 25
21: StackMap locals: int int
StackMap stack:
iload 10
i2b
istore 12
start local 12 22: aload 7
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
arraylength
iload 11
isub
dup2
baload
iload 12
ixor
i2b
bastore
23: iload 10
bipush 8
iushr
istore 10
end local 12 24: iinc 11 1
StackMap locals:
StackMap stack:
25: iload 10
ifne 21
end local 11 26: aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.engine:Lorg/bouncycastle/crypto/BlockCipher;
aload 7
iconst_0
aload 7
iconst_0
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
pop
27: aload 7
iconst_0
aload 6
iconst_0
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
28: aload 7
bipush 8
aload 5
bipush 8
iload 9
iconst_1
isub
imul
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
end local 10 29: iinc 9 -1
StackMap locals:
StackMap stack:
30: iload 9
iconst_1
if_icmpge 16
end local 9 31: iinc 8 -1
StackMap locals:
StackMap stack:
32: iload 8
ifge 14
end local 8 33: aload 6
aload 0
getfield org.bouncycastle.crypto.engines.RFC3394WrapEngine.iv:[B
invokestatic org.bouncycastle.util.Arrays.constantTimeAreEqual:([B[B)Z
ifne 35
34: new org.bouncycastle.crypto.InvalidCipherTextException
dup
ldc "checksum failed"
invokespecial org.bouncycastle.crypto.InvalidCipherTextException.<init>:(Ljava/lang/String;)V
athrow
35: StackMap locals:
StackMap stack:
aload 5
areturn
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 Lorg/bouncycastle/crypto/engines/RFC3394WrapEngine;
0 36 1 in [B
0 36 2 inOff I
0 36 3 inLen I
3 36 4 n I
6 36 5 block [B
7 36 6 a [B
8 36 7 buf [B
13 33 8 j I
15 31 9 i I
19 29 10 t I
20 26 11 k I
22 24 12 v B
Exceptions:
throws org.bouncycastle.crypto.InvalidCipherTextException
MethodParameters:
Name Flags
in
inOff
inLen
}
SourceFile: "RFC3394WrapEngine.java"