public class org.bouncycastle.crypto.engines.XTEAEngine implements org.bouncycastle.crypto.BlockCipher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.engines.XTEAEngine
super_class: java.lang.Object
{
private static final int rounds;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 32
private static final int block_size;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final int delta;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1640531527
private int[] _S;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
private int[] _sum0;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
private int[] _sum1;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
private boolean _initialised;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean _forEncryption;
descriptor: Z
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
iconst_4
newarray 10
putfield org.bouncycastle.crypto.engines.XTEAEngine._S:[I
2: aload 0
bipush 32
newarray 10
putfield org.bouncycastle.crypto.engines.XTEAEngine._sum0:[I
3: aload 0
bipush 32
newarray 10
putfield org.bouncycastle.crypto.engines.XTEAEngine._sum1:[I
4: aload 0
iconst_0
putfield org.bouncycastle.crypto.engines.XTEAEngine._initialised:Z
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/crypto/engines/XTEAEngine;
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 "XTEA"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/engines/XTEAEngine;
public int getBlockSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: bipush 8
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/engines/XTEAEngine;
public void init(boolean, org.bouncycastle.crypto.CipherParameters);
descriptor: (ZLorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.bouncycastle.crypto.params.KeyParameter
ifne 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "invalid parameter passed to TEA 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
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.bouncycastle.crypto.engines.XTEAEngine._forEncryption:Z
3: aload 0
iconst_1
putfield org.bouncycastle.crypto.engines.XTEAEngine._initialised:Z
4: aload 2
checkcast org.bouncycastle.crypto.params.KeyParameter
astore 3
start local 3 5: aload 0
aload 3
invokevirtual org.bouncycastle.crypto.params.KeyParameter.getKey:()[B
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.setKey:([B)V
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/crypto/engines/XTEAEngine;
0 7 1 forEncryption Z
0 7 2 params Lorg/bouncycastle/crypto/CipherParameters;
5 7 3 p Lorg/bouncycastle/crypto/params/KeyParameter;
MethodParameters:
Name Flags
forEncryption
params
public int processBlock(byte[], int, byte[], int);
descriptor: ([BI[BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield org.bouncycastle.crypto.engines.XTEAEngine._initialised:Z
ifne 2
1: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
aload 0
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.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
bipush 8
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 4
bipush 8
iadd
aload 3
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
getfield org.bouncycastle.crypto.engines.XTEAEngine._forEncryption:Z
ifeq 7
aload 0
aload 1
iload 2
aload 3
iload 4
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.encryptBlock:([BI[BI)I
goto 8
7: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
aload 3
iload 4
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.decryptBlock:([BI[BI)I
8: StackMap locals:
StackMap stack: int
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bouncycastle/crypto/engines/XTEAEngine;
0 9 1 in [B
0 9 2 inOff I
0 9 3 out [B
0 9 4 outOff I
MethodParameters:
Name Flags
in
inOff
out
outOff
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/engines/XTEAEngine;
private void setKey(byte[]);
descriptor: ([B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
dup
istore 3
start local 3 1: istore 2
start local 2 2: goto 5
3: StackMap locals: int int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.XTEAEngine._S:[I
iload 2
aload 0
aload 1
iload 3
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.bytesToInt:([BI)I
iastore
4: iinc 2 1
iinc 3 4
StackMap locals:
StackMap stack:
5: iload 2
iconst_4
if_icmplt 3
6: iconst_0
dup
istore 3
istore 2
goto 11
7: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.XTEAEngine._sum0:[I
iload 2
iload 3
aload 0
getfield org.bouncycastle.crypto.engines.XTEAEngine._S:[I
iload 3
iconst_3
iand
iaload
iadd
iastore
8: iload 3
ldc -1640531527
iadd
istore 3
9: aload 0
getfield org.bouncycastle.crypto.engines.XTEAEngine._sum1:[I
iload 2
iload 3
aload 0
getfield org.bouncycastle.crypto.engines.XTEAEngine._S:[I
iload 3
bipush 11
iushr
iconst_3
iand
iaload
iadd
iastore
10: iinc 2 1
StackMap locals:
StackMap stack:
11: iload 2
bipush 32
if_icmplt 7
12: return
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/XTEAEngine;
0 13 1 key [B
2 13 2 i I
1 13 3 j I
MethodParameters:
Name Flags
key
private int encryptBlock(byte[], int, byte[], int);
descriptor: ([BI[BI)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, 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
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.bytesToInt:([BI)I
istore 5
start local 5 1: aload 0
aload 1
iload 2
iconst_4
iadd
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.bytesToInt:([BI)I
istore 6
start local 6 2: iconst_0
istore 7
start local 7 3: goto 7
4: StackMap locals: int int int
StackMap stack:
iload 5
iload 6
iconst_4
ishl
iload 6
iconst_5
iushr
ixor
iload 6
iadd
aload 0
getfield org.bouncycastle.crypto.engines.XTEAEngine._sum0:[I
iload 7
iaload
ixor
iadd
istore 5
5: iload 6
iload 5
iconst_4
ishl
iload 5
iconst_5
iushr
ixor
iload 5
iadd
aload 0
getfield org.bouncycastle.crypto.engines.XTEAEngine._sum1:[I
iload 7
iaload
ixor
iadd
istore 6
6: iinc 7 1
StackMap locals:
StackMap stack:
7: iload 7
bipush 32
if_icmplt 4
end local 7 8: aload 0
iload 5
aload 3
iload 4
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.unpackInt:(I[BI)V
9: aload 0
iload 6
aload 3
iload 4
iconst_4
iadd
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.unpackInt:(I[BI)V
10: bipush 8
ireturn
end local 6 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 11 0 this Lorg/bouncycastle/crypto/engines/XTEAEngine;
0 11 1 in [B
0 11 2 inOff I
0 11 3 out [B
0 11 4 outOff I
1 11 5 v0 I
2 11 6 v1 I
3 8 7 i I
MethodParameters:
Name Flags
in
inOff
out
outOff
private int decryptBlock(byte[], int, byte[], int);
descriptor: ([BI[BI)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, 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
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.bytesToInt:([BI)I
istore 5
start local 5 1: aload 0
aload 1
iload 2
iconst_4
iadd
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.bytesToInt:([BI)I
istore 6
start local 6 2: bipush 31
istore 7
start local 7 3: goto 7
4: StackMap locals: int int int
StackMap stack:
iload 6
iload 5
iconst_4
ishl
iload 5
iconst_5
iushr
ixor
iload 5
iadd
aload 0
getfield org.bouncycastle.crypto.engines.XTEAEngine._sum1:[I
iload 7
iaload
ixor
isub
istore 6
5: iload 5
iload 6
iconst_4
ishl
iload 6
iconst_5
iushr
ixor
iload 6
iadd
aload 0
getfield org.bouncycastle.crypto.engines.XTEAEngine._sum0:[I
iload 7
iaload
ixor
isub
istore 5
6: iinc 7 -1
StackMap locals:
StackMap stack:
7: iload 7
ifge 4
end local 7 8: aload 0
iload 5
aload 3
iload 4
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.unpackInt:(I[BI)V
9: aload 0
iload 6
aload 3
iload 4
iconst_4
iadd
invokevirtual org.bouncycastle.crypto.engines.XTEAEngine.unpackInt:(I[BI)V
10: bipush 8
ireturn
end local 6 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 11 0 this Lorg/bouncycastle/crypto/engines/XTEAEngine;
0 11 1 in [B
0 11 2 inOff I
0 11 3 out [B
0 11 4 outOff I
1 11 5 v0 I
2 11 6 v1 I
3 8 7 i I
MethodParameters:
Name Flags
in
inOff
out
outOff
private int bytesToInt(byte[], int);
descriptor: ([BI)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
iload 2
iinc 2 1
baload
bipush 24
ishl
1: aload 1
iload 2
iinc 2 1
baload
sipush 255
iand
bipush 16
ishl
2: ior
3: aload 1
iload 2
iinc 2 1
baload
sipush 255
iand
bipush 8
ishl
4: ior
5: aload 1
iload 2
baload
sipush 255
iand
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/XTEAEngine;
0 7 1 in [B
0 7 2 inOff I
MethodParameters:
Name Flags
in
inOff
private void unpackInt(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
iinc 3 1
iload 1
bipush 24
iushr
i2b
bastore
1: aload 2
iload 3
iinc 3 1
iload 1
bipush 16
iushr
i2b
bastore
2: aload 2
iload 3
iinc 3 1
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/engines/XTEAEngine;
0 5 1 v I
0 5 2 out [B
0 5 3 outOff I
MethodParameters:
Name Flags
v
out
outOff
}
SourceFile: "XTEAEngine.java"