public class org.bouncycastle.crypto.engines.RC4Engine implements org.bouncycastle.crypto.StreamCipher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.engines.RC4Engine
super_class: java.lang.Object
{
private static final int STATE_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 256
private byte[] engineState;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int x;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int y;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] workingKey;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
2: aload 0
iconst_0
putfield org.bouncycastle.crypto.engines.RC4Engine.x:I
3: aload 0
iconst_0
putfield org.bouncycastle.crypto.engines.RC4Engine.y:I
4: aload 0
aconst_null
putfield org.bouncycastle.crypto.engines.RC4Engine.workingKey:[B
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/crypto/engines/RC4Engine;
public void init(boolean, org.bouncycastle.crypto.CipherParameters);
descriptor: (ZLorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.bouncycastle.crypto.params.KeyParameter
ifeq 4
1: aload 0
aload 2
checkcast org.bouncycastle.crypto.params.KeyParameter
invokevirtual org.bouncycastle.crypto.params.KeyParameter.getKey:()[B
putfield org.bouncycastle.crypto.engines.RC4Engine.workingKey:[B
2: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.workingKey:[B
invokevirtual org.bouncycastle.crypto.engines.RC4Engine.setKey:([B)V
3: return
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "invalid parameter passed to RC4 init - "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/engines/RC4Engine;
0 5 1 forEncryption Z
0 5 2 params Lorg/bouncycastle/crypto/CipherParameters;
MethodParameters:
Name Flags
forEncryption
params
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 "RC4"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/engines/RC4Engine;
public byte returnByte(byte);
descriptor: (B)B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.x:I
iconst_1
iadd
sipush 255
iand
putfield org.bouncycastle.crypto.engines.RC4Engine.x:I
1: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.x:I
baload
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.y:I
iadd
sipush 255
iand
putfield org.bouncycastle.crypto.engines.RC4Engine.y:I
2: aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.x:I
baload
istore 2
start local 2 3: aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.x:I
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.y:I
baload
bastore
4: aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.y:I
iload 2
bastore
5: iload 1
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.x:I
baload
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.y:I
baload
iadd
sipush 255
iand
baload
ixor
i2b
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/crypto/engines/RC4Engine;
0 6 1 in B
3 6 2 tmp B
MethodParameters:
Name Flags
in
public int processBytes(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: iload 2
iload 3
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 5
iload 3
iadd
aload 4
arraylength
if_icmple 4
3: new org.bouncycastle.crypto.OutputLengthException
dup
ldc "output buffer too short"
invokespecial org.bouncycastle.crypto.OutputLengthException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iconst_0
istore 6
start local 6 5: goto 15
6: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.x:I
iconst_1
iadd
sipush 255
iand
putfield org.bouncycastle.crypto.engines.RC4Engine.x:I
7: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.x:I
baload
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.y:I
iadd
sipush 255
iand
putfield org.bouncycastle.crypto.engines.RC4Engine.y:I
8: aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.x:I
baload
istore 7
start local 7 9: aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.x:I
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.y:I
baload
bastore
10: aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.y:I
iload 7
bastore
11: aload 4
iload 6
iload 5
iadd
aload 1
iload 6
iload 2
iadd
baload
12: aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.x:I
baload
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.y:I
baload
iadd
sipush 255
iand
baload
ixor
i2b
13: bastore
end local 7 14: iinc 6 1
StackMap locals:
StackMap stack:
15: iload 6
iload 3
if_icmplt 6
end local 6 16: iload 3
ireturn
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 17 0 this Lorg/bouncycastle/crypto/engines/RC4Engine;
0 17 1 in [B
0 17 2 inOff I
0 17 3 len I
0 17 4 out [B
0 17 5 outOff I
5 16 6 i I
9 14 7 tmp B
MethodParameters:
Name Flags
in
inOff
len
out
outOff
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.workingKey:[B
invokevirtual org.bouncycastle.crypto.engines.RC4Engine.setKey:([B)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/engines/RC4Engine;
private void setKey(byte[]);
descriptor: ([B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.bouncycastle.crypto.engines.RC4Engine.workingKey:[B
1: aload 0
iconst_0
putfield org.bouncycastle.crypto.engines.RC4Engine.x:I
2: aload 0
iconst_0
putfield org.bouncycastle.crypto.engines.RC4Engine.y:I
3: aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
ifnonnull 5
4: aload 0
sipush 256
newarray 8
putfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
5: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 6: goto 9
7: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
iload 2
iload 2
i2b
bastore
8: iinc 2 1
StackMap locals:
StackMap stack:
9: iload 2
sipush 256
if_icmplt 7
end local 2 10: iconst_0
istore 2
start local 2 11: iconst_0
istore 3
start local 3 12: iconst_0
istore 4
start local 4 13: goto 20
14: StackMap locals: int int
StackMap stack:
aload 1
iload 2
baload
sipush 255
iand
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
iload 4
baload
iadd
iload 3
iadd
sipush 255
iand
istore 3
15: aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
iload 4
baload
istore 5
start local 5 16: aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
iload 4
aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
iload 3
baload
bastore
17: aload 0
getfield org.bouncycastle.crypto.engines.RC4Engine.engineState:[B
iload 3
iload 5
bastore
18: iload 2
iconst_1
iadd
aload 1
arraylength
irem
istore 2
end local 5 19: iinc 4 1
StackMap locals:
StackMap stack:
20: iload 4
sipush 256
if_icmplt 14
end local 4 21: return
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/engines/RC4Engine;
0 22 1 keyBytes [B
6 10 2 i I
11 22 2 i1 I
12 22 3 i2 I
13 21 4 i I
16 19 5 tmp B
MethodParameters:
Name Flags
keyBytes
}
SourceFile: "RC4Engine.java"