public class org.bouncycastle.crypto.modes.GOFBBlockCipher implements org.bouncycastle.crypto.BlockCipher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.modes.GOFBBlockCipher
super_class: java.lang.Object
{
private byte[] IV;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] ofbV;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] ofbOutV;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private final int blockSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.bouncycastle.crypto.BlockCipher cipher;
descriptor: Lorg/bouncycastle/crypto/BlockCipher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
boolean firstStep;
descriptor: Z
flags: (0x0000)
int N3;
descriptor: I
flags: (0x0000)
int N4;
descriptor: I
flags: (0x0000)
static final int C1;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 16843012
static final int C2;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 16843009
public void <init>(org.bouncycastle.crypto.BlockCipher);
descriptor: (Lorg/bouncycastle/crypto/BlockCipher;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.firstStep:Z
2: aload 0
aload 1
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
3: aload 0
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.blockSize:I
4: aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.blockSize:I
bipush 8
if_icmpeq 6
5: new java.lang.IllegalArgumentException
dup
ldc "GCTR only for 64 bit block ciphers"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: org.bouncycastle.crypto.modes.GOFBBlockCipher org.bouncycastle.crypto.BlockCipher
StackMap stack:
aload 0
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
newarray 8
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.IV:[B
7: aload 0
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
newarray 8
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbV:[B
8: aload 0
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
newarray 8
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbOutV:[B
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/bouncycastle/crypto/modes/GOFBBlockCipher;
0 10 1 cipher Lorg/bouncycastle/crypto/BlockCipher;
MethodParameters:
Name Flags
cipher
public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher();
descriptor: ()Lorg/bouncycastle/crypto/BlockCipher;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/modes/GOFBBlockCipher;
public void init(boolean, org.bouncycastle.crypto.CipherParameters);
descriptor: (ZLorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_1
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.firstStep:Z
1: aload 0
iconst_0
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.N3:I
2: aload 0
iconst_0
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.N4:I
3: aload 2
instanceof org.bouncycastle.crypto.params.ParametersWithIV
ifeq 18
4: aload 2
checkcast org.bouncycastle.crypto.params.ParametersWithIV
astore 3
start local 3 5: aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithIV.getIV:()[B
astore 4
start local 4 6: aload 4
arraylength
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.IV:[B
arraylength
if_icmpge 14
7: aload 4
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.IV:[B
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.IV:[B
arraylength
aload 4
arraylength
isub
aload 4
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: iconst_0
istore 5
start local 5 9: goto 12
10: StackMap locals: org.bouncycastle.crypto.params.ParametersWithIV byte[] int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.IV:[B
iload 5
iconst_0
bastore
11: iinc 5 1
StackMap locals:
StackMap stack:
12: iload 5
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.IV:[B
arraylength
aload 4
arraylength
isub
if_icmplt 10
end local 5 13: goto 15
14: StackMap locals:
StackMap stack:
aload 4
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.IV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.IV:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
15: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.bouncycastle.crypto.modes.GOFBBlockCipher.reset:()V
16: aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
iconst_1
aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithIV.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
invokeinterface org.bouncycastle.crypto.BlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
end local 4 end local 3 17: goto 20
18: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.bouncycastle.crypto.modes.GOFBBlockCipher.reset:()V
19: aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
iconst_1
aload 2
invokeinterface org.bouncycastle.crypto.BlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
20: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/bouncycastle/crypto/modes/GOFBBlockCipher;
0 21 1 encrypting Z
0 21 2 params Lorg/bouncycastle/crypto/CipherParameters;
5 17 3 ivParam Lorg/bouncycastle/crypto/params/ParametersWithIV;
6 17 4 iv [B
9 13 5 i I
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
encrypting
params
public java.lang.String getAlgorithmName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
invokeinterface org.bouncycastle.crypto.BlockCipher.getAlgorithmName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/GCTR"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/modes/GOFBBlockCipher;
public int getBlockSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.blockSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/modes/GOFBBlockCipher;
public int processBlock(byte[], int, byte[], int);
descriptor: ([BI[BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 2
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.blockSize:I
iadd
aload 1
arraylength
if_icmple 2
1: new org.bouncycastle.crypto.DataLengthException
dup
ldc "input buffer too short"
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 4
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.blockSize:I
iadd
aload 3
arraylength
if_icmple 4
3: new org.bouncycastle.crypto.DataLengthException
dup
ldc "output buffer too short"
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.firstStep:Z
ifeq 9
5: aload 0
iconst_0
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.firstStep:Z
6: aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbOutV:[B
iconst_0
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
pop
7: aload 0
aload 0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbOutV:[B
iconst_0
invokevirtual org.bouncycastle.crypto.modes.GOFBBlockCipher.bytesToint:([BI)I
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.N3:I
8: aload 0
aload 0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbOutV:[B
iconst_4
invokevirtual org.bouncycastle.crypto.modes.GOFBBlockCipher.bytesToint:([BI)I
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.N4:I
9: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.N3:I
ldc 16843009
iadd
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.N3:I
10: aload 0
dup
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.N4:I
ldc 16843012
iadd
putfield org.bouncycastle.crypto.modes.GOFBBlockCipher.N4:I
11: aload 0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.N3:I
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbV:[B
iconst_0
invokevirtual org.bouncycastle.crypto.modes.GOFBBlockCipher.intTobytes:(I[BI)V
12: aload 0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.N4:I
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbV:[B
iconst_4
invokevirtual org.bouncycastle.crypto.modes.GOFBBlockCipher.intTobytes:(I[BI)V
13: aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbOutV:[B
iconst_0
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
pop
14: iconst_0
istore 5
start local 5 15: goto 18
16: StackMap locals: int
StackMap stack:
aload 3
iload 4
iload 5
iadd
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbOutV:[B
iload 5
baload
aload 1
iload 2
iload 5
iadd
baload
ixor
i2b
bastore
17: iinc 5 1
StackMap locals:
StackMap stack:
18: iload 5
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.blockSize:I
if_icmplt 16
end local 5 19: aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbV:[B
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.blockSize:I
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbV:[B
arraylength
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.blockSize:I
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
20: aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbOutV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbV:[B
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbV:[B
arraylength
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.blockSize:I
isub
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.blockSize:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
21: aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.blockSize:I
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/bouncycastle/crypto/modes/GOFBBlockCipher;
0 22 1 in [B
0 22 2 inOff I
0 22 3 out [B
0 22 4 outOff I
15 19 5 i I
Exceptions:
throws org.bouncycastle.crypto.DataLengthException, java.lang.IllegalStateException
MethodParameters:
Name Flags
in
inOff
out
outOff
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.IV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.ofbV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.IV:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
1: aload 0
getfield org.bouncycastle.crypto.modes.GOFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
invokeinterface org.bouncycastle.crypto.BlockCipher.reset:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/crypto/modes/GOFBBlockCipher;
private int bytesToint(byte[], int);
descriptor: ([BI)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
iload 2
iconst_3
iadd
baload
bipush 24
ishl
ldc -16777216
iand
aload 1
iload 2
iconst_2
iadd
baload
bipush 16
ishl
ldc 16711680
iand
iadd
1: aload 1
iload 2
iconst_1
iadd
baload
bipush 8
ishl
ldc 65280
iand
2: iadd
3: aload 1
iload 2
baload
sipush 255
iand
4: iadd
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/modes/GOFBBlockCipher;
0 5 1 in [B
0 5 2 inOff I
MethodParameters:
Name Flags
in
inOff
private void intTobytes(int, byte[], int);
descriptor: (I[BI)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
iload 3
iconst_3
iadd
iload 1
bipush 24
iushr
i2b
bastore
1: aload 2
iload 3
iconst_2
iadd
iload 1
bipush 16
iushr
i2b
bastore
2: aload 2
iload 3
iconst_1
iadd
iload 1
bipush 8
iushr
i2b
bastore
3: aload 2
iload 3
iload 1
i2b
bastore
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/modes/GOFBBlockCipher;
0 5 1 num I
0 5 2 out [B
0 5 3 outOff I
MethodParameters:
Name Flags
num
out
outOff
}
SourceFile: "GOFBBlockCipher.java"