public class org.bouncycastle.crypto.modes.OFBBlockCipher extends org.bouncycastle.crypto.StreamBlockCipher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.modes.OFBBlockCipher
super_class: org.bouncycastle.crypto.StreamBlockCipher
{
private int byteCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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
public void <init>(org.bouncycastle.crypto.BlockCipher, int);
descriptor: (Lorg/bouncycastle/crypto/BlockCipher;I)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
aload 1
invokespecial org.bouncycastle.crypto.StreamBlockCipher.<init>:(Lorg/bouncycastle/crypto/BlockCipher;)V
1: aload 0
aload 1
putfield org.bouncycastle.crypto.modes.OFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
2: aload 0
iload 2
bipush 8
idiv
putfield org.bouncycastle.crypto.modes.OFBBlockCipher.blockSize:I
3: aload 0
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
newarray 8
putfield org.bouncycastle.crypto.modes.OFBBlockCipher.IV:[B
4: aload 0
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
newarray 8
putfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbV:[B
5: aload 0
aload 1
invokeinterface org.bouncycastle.crypto.BlockCipher.getBlockSize:()I
newarray 8
putfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbOutV:[B
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/crypto/modes/OFBBlockCipher;
0 7 1 cipher Lorg/bouncycastle/crypto/BlockCipher;
0 7 2 blockSize I
MethodParameters:
Name Flags
cipher
blockSize
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 2
instanceof org.bouncycastle.crypto.params.ParametersWithIV
ifeq 16
1: aload 2
checkcast org.bouncycastle.crypto.params.ParametersWithIV
astore 3
start local 3 2: aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithIV.getIV:()[B
astore 4
start local 4 3: aload 4
arraylength
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.IV:[B
arraylength
if_icmpge 11
4: aload 4
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.IV:[B
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.IV:[B
arraylength
aload 4
arraylength
isub
aload 4
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: iconst_0
istore 5
start local 5 6: goto 9
7: StackMap locals: org.bouncycastle.crypto.params.ParametersWithIV byte[] int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.IV:[B
iload 5
iconst_0
bastore
8: iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.IV:[B
arraylength
aload 4
arraylength
isub
if_icmplt 7
end local 5 10: goto 12
11: StackMap locals:
StackMap stack:
aload 4
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.IV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.IV:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.bouncycastle.crypto.modes.OFBBlockCipher.reset:()V
13: aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithIV.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
ifnull 19
14: aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.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 15: goto 19
16: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.bouncycastle.crypto.modes.OFBBlockCipher.reset:()V
17: aload 2
ifnull 19
18: aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
iconst_1
aload 2
invokeinterface org.bouncycastle.crypto.BlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
19: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/bouncycastle/crypto/modes/OFBBlockCipher;
0 20 1 encrypting Z
0 20 2 params Lorg/bouncycastle/crypto/CipherParameters;
2 15 3 ivParam Lorg/bouncycastle/crypto/params/ParametersWithIV;
3 15 4 iv [B
6 10 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.OFBBlockCipher.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 "/OFB"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.blockSize:I
bipush 8
imul
invokevirtual java.lang.StringBuilder.append:(I)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/OFBBlockCipher;
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.OFBBlockCipher.blockSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/modes/OFBBlockCipher;
public int processBlock(byte[], int, byte[], int);
descriptor: ([BI[BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
iload 2
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.blockSize:I
aload 3
iload 4
invokevirtual org.bouncycastle.crypto.modes.OFBBlockCipher.processBytes:([BII[BI)I
pop
1: aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.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 2 0 this Lorg/bouncycastle/crypto/modes/OFBBlockCipher;
0 2 1 in [B
0 2 2 inOff I
0 2 3 out [B
0 2 4 outOff 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.OFBBlockCipher.IV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.IV:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
1: aload 0
iconst_0
putfield org.bouncycastle.crypto.modes.OFBBlockCipher.byteCount:I
2: aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
invokeinterface org.bouncycastle.crypto.BlockCipher.reset:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/modes/OFBBlockCipher;
protected byte calculateByte(byte);
descriptor: (B)B
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.byteCount:I
ifne 2
1: aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbOutV:[B
iconst_0
invokeinterface org.bouncycastle.crypto.BlockCipher.processBlock:([BI[BI)I
pop
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbOutV:[B
aload 0
dup
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.byteCount:I
dup_x1
iconst_1
iadd
putfield org.bouncycastle.crypto.modes.OFBBlockCipher.byteCount:I
baload
iload 1
ixor
i2b
istore 2
start local 2 3: aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.byteCount:I
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.blockSize:I
if_icmpne 7
4: aload 0
iconst_0
putfield org.bouncycastle.crypto.modes.OFBBlockCipher.byteCount:I
5: aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbV:[B
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.blockSize:I
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbV:[B
arraylength
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.blockSize:I
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbOutV:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbV:[B
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbV:[B
arraylength
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.blockSize:I
isub
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.blockSize:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: StackMap locals: int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/bouncycastle/crypto/modes/OFBBlockCipher;
0 8 1 in B
3 8 2 rv B
Exceptions:
throws org.bouncycastle.crypto.DataLengthException, java.lang.IllegalStateException
MethodParameters:
Name Flags
in
}
SourceFile: "OFBBlockCipher.java"