public class org.bouncycastle.crypto.engines.Salsa20Engine implements org.bouncycastle.crypto.StreamCipher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.engines.Salsa20Engine
super_class: java.lang.Object
{
private static final int stateSize;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 16
private static final byte[] sigma;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final byte[] tau;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private int index;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int[] engineState;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
private int[] x;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
private byte[] keyStream;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] workingKey;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] workingIV;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private boolean initialised;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int cW0;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int cW1;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int cW2;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "expand 32-byte k"
invokestatic org.bouncycastle.util.Strings.toByteArray:(Ljava/lang/String;)[B
putstatic org.bouncycastle.crypto.engines.Salsa20Engine.sigma:[B
1: ldc "expand 16-byte k"
invokestatic org.bouncycastle.util.Strings.toByteArray:(Ljava/lang/String;)[B
putstatic org.bouncycastle.crypto.engines.Salsa20Engine.tau:[B
return
LocalVariableTable:
Start End Slot Name Signature
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
iconst_0
putfield org.bouncycastle.crypto.engines.Salsa20Engine.index:I
2: aload 0
bipush 16
newarray 10
putfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
3: aload 0
bipush 16
newarray 10
putfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
4: aload 0
bipush 64
newarray 8
putfield org.bouncycastle.crypto.engines.Salsa20Engine.keyStream:[B
5: aload 0
aconst_null
putfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
6: aload 0
aconst_null
putfield org.bouncycastle.crypto.engines.Salsa20Engine.workingIV:[B
7: aload 0
iconst_0
putfield org.bouncycastle.crypto.engines.Salsa20Engine.initialised:Z
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
public void init(boolean, org.bouncycastle.crypto.CipherParameters);
descriptor: (ZLorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.bouncycastle.crypto.params.ParametersWithIV
ifne 2
1: new java.lang.IllegalArgumentException
dup
ldc "Salsa20 Init parameters must include an IV"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
checkcast org.bouncycastle.crypto.params.ParametersWithIV
astore 3
start local 3 3: aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithIV.getIV:()[B
astore 4
start local 4 4: aload 4
ifnull 5
aload 4
arraylength
bipush 8
if_icmpeq 6
5: StackMap locals: org.bouncycastle.crypto.params.ParametersWithIV byte[]
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Salsa20 requires exactly 8 bytes of IV"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithIV.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
instanceof org.bouncycastle.crypto.params.KeyParameter
ifne 8
7: new java.lang.IllegalArgumentException
dup
ldc "Salsa20 Init parameters must include a key"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithIV.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.KeyParameter
astore 5
start local 5 9: aload 0
aload 5
invokevirtual org.bouncycastle.crypto.params.KeyParameter.getKey:()[B
putfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
10: aload 0
aload 4
putfield org.bouncycastle.crypto.engines.Salsa20Engine.workingIV:[B
11: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingIV:[B
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.setKey:([B[B)V
12: return
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 13 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
0 13 1 forEncryption Z
0 13 2 params Lorg/bouncycastle/crypto/CipherParameters;
3 13 3 ivParams Lorg/bouncycastle/crypto/params/ParametersWithIV;
4 13 4 iv [B
9 13 5 key Lorg/bouncycastle/crypto/params/KeyParameter;
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 "Salsa20"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
public byte returnByte(byte);
descriptor: (B)B
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.limitExceeded:()Z
ifeq 2
1: new org.bouncycastle.crypto.MaxBytesExceededException
dup
ldc "2^70 byte limit per IV; Change IV"
invokespecial org.bouncycastle.crypto.MaxBytesExceededException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.index:I
ifne 7
3: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.keyStream:[B
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.salsa20WordToByte:([I[B)V
4: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 8
dup2
iaload
iconst_1
iadd
iastore
5: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 8
iaload
ifne 7
6: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 9
dup2
iaload
iconst_1
iadd
iastore
7: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.keyStream:[B
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.index:I
baload
iload 1
ixor
i2b
istore 2
start local 2 8: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.index:I
iconst_1
iadd
bipush 63
iand
putfield org.bouncycastle.crypto.engines.Salsa20Engine.index:I
9: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
0 10 1 in B
8 10 2 out B
MethodParameters:
Name Flags
in
public void processBytes(byte[], int, int, byte[], int);
descriptor: ([BII[BI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.initialised:Z
ifne 2
1: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
aload 0
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.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 " not initialised"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 2
iload 3
iadd
aload 1
arraylength
if_icmple 4
3: new org.bouncycastle.crypto.DataLengthException
dup
ldc "input buffer too short"
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iload 5
iload 3
iadd
aload 4
arraylength
if_icmple 6
5: new org.bouncycastle.crypto.DataLengthException
dup
ldc "output buffer too short"
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
iload 3
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.limitExceeded:(I)Z
ifeq 8
7: new org.bouncycastle.crypto.MaxBytesExceededException
dup
ldc "2^70 byte limit per IV would be exceeded; Change IV"
invokespecial org.bouncycastle.crypto.MaxBytesExceededException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
iconst_0
istore 6
start local 6 9: goto 18
10: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.index:I
ifne 15
11: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.keyStream:[B
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.salsa20WordToByte:([I[B)V
12: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 8
dup2
iaload
iconst_1
iadd
iastore
13: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 8
iaload
ifne 15
14: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 9
dup2
iaload
iconst_1
iadd
iastore
15: StackMap locals:
StackMap stack:
aload 4
iload 6
iload 5
iadd
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.keyStream:[B
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.index:I
baload
aload 1
iload 6
iload 2
iadd
baload
ixor
i2b
bastore
16: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.index:I
iconst_1
iadd
bipush 63
iand
putfield org.bouncycastle.crypto.engines.Salsa20Engine.index:I
17: iinc 6 1
StackMap locals:
StackMap stack:
18: iload 6
iload 3
if_icmplt 10
end local 6 19: return
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 20 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
0 20 1 in [B
0 20 2 inOff I
0 20 3 len I
0 20 4 out [B
0 20 5 outOff I
9 19 6 i I
MethodParameters:
Name Flags
in
inOff
len
out
outOff
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingIV:[B
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.setKey:([B[B)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
private void setKey(byte[], byte[]);
descriptor: ([B[B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
putfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
1: aload 0
aload 2
putfield org.bouncycastle.crypto.engines.Salsa20Engine.workingIV:[B
2: aload 0
iconst_0
putfield org.bouncycastle.crypto.engines.Salsa20Engine.index:I
3: aload 0
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.resetCounter:()V
4: iconst_0
istore 3
start local 3 5: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
iconst_1
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
iconst_0
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
6: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
iconst_2
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
iconst_4
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
7: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
iconst_3
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
bipush 8
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
8: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
iconst_4
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
bipush 12
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
9: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
arraylength
bipush 32
if_icmpne 13
10: getstatic org.bouncycastle.crypto.engines.Salsa20Engine.sigma:[B
astore 4
start local 4 11: bipush 16
istore 3
12: goto 14
end local 4 13: StackMap locals: int
StackMap stack:
getstatic org.bouncycastle.crypto.engines.Salsa20Engine.tau:[B
astore 4
start local 4 14: StackMap locals: byte[]
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 11
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
iload 3
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
15: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 12
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
iload 3
iconst_4
iadd
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
16: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 13
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
iload 3
bipush 8
iadd
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
17: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 14
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingKey:[B
iload 3
bipush 12
iadd
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
18: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
iconst_0
aload 0
aload 4
iconst_0
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
19: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
iconst_5
aload 0
aload 4
iconst_4
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
20: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 10
aload 0
aload 4
bipush 8
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
21: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 15
aload 0
aload 4
bipush 12
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
22: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 6
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingIV:[B
iconst_0
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
23: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 7
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.workingIV:[B
iconst_4
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.byteToIntLittle:([BI)I
iastore
24: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 8
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.engineState:[I
bipush 9
iconst_0
dup_x2
iastore
iastore
25: aload 0
iconst_1
putfield org.bouncycastle.crypto.engines.Salsa20Engine.initialised:Z
26: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
0 27 1 keyBytes [B
0 27 2 ivBytes [B
5 27 3 offset I
11 13 4 constants [B
14 27 4 constants [B
MethodParameters:
Name Flags
keyBytes
ivBytes
private void salsa20WordToByte(int[], byte[]);
descriptor: ([I[B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
iconst_0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_0
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
1: iconst_0
istore 3
start local 3 2: goto 36
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_4
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_0
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 12
iaload
iadd
bipush 7
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
4: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 8
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_4
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_0
iaload
iadd
bipush 9
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
5: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 12
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 8
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_4
iaload
iadd
bipush 13
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
6: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_0
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 12
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 8
iaload
iadd
bipush 18
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
7: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 9
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_5
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_1
iaload
iadd
bipush 7
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
8: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 13
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 9
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_5
iaload
iadd
bipush 9
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
9: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_1
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 13
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 9
iaload
iadd
bipush 13
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
10: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_5
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_1
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 13
iaload
iadd
bipush 18
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
11: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 14
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 10
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 6
iaload
iadd
bipush 7
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
12: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_2
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 14
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 10
iaload
iadd
bipush 9
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
13: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 6
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_2
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 14
iaload
iadd
bipush 13
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
14: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 10
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 6
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_2
iaload
iadd
bipush 18
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
15: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_3
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 15
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 11
iaload
iadd
bipush 7
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
16: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 7
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_3
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 15
iaload
iadd
bipush 9
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
17: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 11
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 7
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_3
iaload
iadd
bipush 13
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
18: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 15
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 11
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 7
iaload
iadd
bipush 18
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
19: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_1
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_0
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_3
iaload
iadd
bipush 7
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
20: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_2
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_1
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_0
iaload
iadd
bipush 9
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
21: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_3
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_2
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_1
iaload
iadd
bipush 13
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
22: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_0
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_3
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_2
iaload
iadd
bipush 18
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
23: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 6
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_5
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_4
iaload
iadd
bipush 7
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
24: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 7
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 6
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_5
iaload
iadd
bipush 9
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
25: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_4
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 7
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 6
iaload
iadd
bipush 13
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
26: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_5
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iconst_4
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 7
iaload
iadd
bipush 18
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
27: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 11
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 10
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 9
iaload
iadd
bipush 7
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
28: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 8
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 11
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 10
iaload
iadd
bipush 9
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
29: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 9
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 8
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 11
iaload
iadd
bipush 13
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
30: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 10
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 9
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 8
iaload
iadd
bipush 18
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
31: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 12
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 15
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 14
iaload
iadd
bipush 7
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
32: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 13
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 12
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 15
iaload
iadd
bipush 9
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
33: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 14
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 13
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 12
iaload
iadd
bipush 13
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
34: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 15
dup2
iaload
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 14
iaload
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
bipush 13
iaload
iadd
bipush 18
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.rotl:(II)I
ixor
iastore
35: iinc 3 1
StackMap locals:
StackMap stack:
36: iload 3
bipush 10
if_icmplt 3
end local 3 37: iconst_0
istore 3
start local 3 38: iconst_0
istore 4
start local 4 39: goto 43
40: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iload 4
iaload
aload 1
iload 4
iaload
iadd
aload 2
iload 3
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.intToByteLittle:(I[BI)[B
pop
41: iinc 3 4
42: iinc 4 1
StackMap locals:
StackMap stack:
43: iload 4
bipush 16
if_icmplt 40
end local 4 44: bipush 16
istore 4
start local 4 45: goto 49
46: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
iload 4
iaload
aload 2
iload 3
invokevirtual org.bouncycastle.crypto.engines.Salsa20Engine.intToByteLittle:(I[BI)[B
pop
47: iinc 3 4
48: iinc 4 1
StackMap locals:
StackMap stack:
49: iload 4
aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.x:[I
arraylength
if_icmplt 46
end local 4 50: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 51 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
0 51 1 input [I
0 51 2 output [B
2 37 3 i I
38 51 3 offset I
39 44 4 i I
45 50 4 i I
MethodParameters:
Name Flags
input
output
private byte[] intToByteLittle(int, byte[], int);
descriptor: (I[BI)[B
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
iload 1
i2b
bastore
1: aload 2
iload 3
iconst_1
iadd
iload 1
bipush 8
iushr
i2b
bastore
2: aload 2
iload 3
iconst_2
iadd
iload 1
bipush 16
iushr
i2b
bastore
3: aload 2
iload 3
iconst_3
iadd
iload 1
bipush 24
iushr
i2b
bastore
4: aload 2
areturn
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/engines/Salsa20Engine;
0 5 1 x I
0 5 2 out [B
0 5 3 off I
MethodParameters:
Name Flags
x
out
off
private int rotl(int, int);
descriptor: (II)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
ishl
iload 1
iload 2
ineg
iushr
ior
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
0 1 1 x I
0 1 2 y I
MethodParameters:
Name Flags
x
y
private int byteToIntLittle(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
baload
sipush 255
iand
1: aload 1
iload 2
iconst_1
iadd
baload
sipush 255
iand
bipush 8
ishl
2: ior
3: aload 1
iload 2
iconst_2
iadd
baload
sipush 255
iand
bipush 16
ishl
4: ior
5: aload 1
iload 2
iconst_3
iadd
baload
bipush 24
ishl
6: ior
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
0 7 1 x [B
0 7 2 offset I
MethodParameters:
Name Flags
x
offset
private void resetCounter();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield org.bouncycastle.crypto.engines.Salsa20Engine.cW0:I
1: aload 0
iconst_0
putfield org.bouncycastle.crypto.engines.Salsa20Engine.cW1:I
2: aload 0
iconst_0
putfield org.bouncycastle.crypto.engines.Salsa20Engine.cW2:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
private boolean limitExceeded();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW0:I
iconst_1
iadd
putfield org.bouncycastle.crypto.engines.Salsa20Engine.cW0:I
1: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW0:I
ifne 7
2: aload 0
dup
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW1:I
iconst_1
iadd
putfield org.bouncycastle.crypto.engines.Salsa20Engine.cW1:I
3: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW1:I
ifne 7
4: aload 0
dup
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW2:I
iconst_1
iadd
putfield org.bouncycastle.crypto.engines.Salsa20Engine.cW2:I
5: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW2:I
bipush 32
iand
ifeq 6
iconst_1
ireturn
StackMap locals:
StackMap stack:
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
private boolean limitExceeded(int);
descriptor: (I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW0:I
iflt 3
1: aload 0
dup
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW0:I
iload 1
iadd
putfield org.bouncycastle.crypto.engines.Salsa20Engine.cW0:I
2: goto 10
3: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW0:I
iload 1
iadd
putfield org.bouncycastle.crypto.engines.Salsa20Engine.cW0:I
4: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW0:I
iflt 10
5: aload 0
dup
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW1:I
iconst_1
iadd
putfield org.bouncycastle.crypto.engines.Salsa20Engine.cW1:I
6: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW1:I
ifne 10
7: aload 0
dup
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW2:I
iconst_1
iadd
putfield org.bouncycastle.crypto.engines.Salsa20Engine.cW2:I
8: aload 0
getfield org.bouncycastle.crypto.engines.Salsa20Engine.cW2:I
bipush 32
iand
ifeq 9
iconst_1
ireturn
StackMap locals:
StackMap stack:
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/bouncycastle/crypto/engines/Salsa20Engine;
0 11 1 len I
MethodParameters:
Name Flags
len
}
SourceFile: "Salsa20Engine.java"