public class org.bouncycastle.crypto.modes.OFBBlockCipher implements org.bouncycastle.crypto.BlockCipher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.modes.OFBBlockCipher
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
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
invokespecial java.lang.Object.<init>:()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 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.OFBBlockCipher.cipher:Lorg/bouncycastle/crypto/BlockCipher;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/modes/OFBBlockCipher;
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 15
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 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 14: goto 17
15: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.bouncycastle.crypto.modes.OFBBlockCipher.reset:()V
16: 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
17: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/bouncycastle/crypto/modes/OFBBlockCipher;
0 18 1 encrypting Z
0 18 2 params Lorg/bouncycastle/crypto/CipherParameters;
2 14 3 ivParam Lorg/bouncycastle/crypto/params/ParametersWithIV;
3 14 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=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.OFBBlockCipher.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.OFBBlockCipher.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.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
5: iconst_0
istore 5
start local 5 6: goto 9
7: StackMap locals: int
StackMap stack:
aload 3
iload 4
iload 5
iadd
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.ofbOutV:[B
iload 5
baload
aload 1
iload 2
iload 5
iadd
baload
ixor
i2b
bastore
8: iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
aload 0
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.blockSize:I
if_icmplt 7
end local 5 10: 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
11: 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
12: 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 13 0 this Lorg/bouncycastle/crypto/modes/OFBBlockCipher;
0 13 1 in [B
0 13 2 inOff I
0 13 3 out [B
0 13 4 outOff I
6 10 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.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
getfield org.bouncycastle.crypto.modes.OFBBlockCipher.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/OFBBlockCipher;
}
SourceFile: "OFBBlockCipher.java"