public class org.bouncycastle.crypto.engines.TEAEngine implements org.bouncycastle.crypto.BlockCipher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.engines.TEAEngine
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 static final int d_sum;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -957401312
private int _a;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int _b;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int _c;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int _d;
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_0
putfield org.bouncycastle.crypto.engines.TEAEngine._initialised:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/crypto/engines/TEAEngine;
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 "TEA"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/engines/TEAEngine;
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/TEAEngine;
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.TEAEngine._forEncryption:Z
3: aload 0
iconst_1
putfield org.bouncycastle.crypto.engines.TEAEngine._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.TEAEngine.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/TEAEngine;
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.TEAEngine._initialised:Z
ifne 2
1: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
aload 0
invokevirtual org.bouncycastle.crypto.engines.TEAEngine.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.TEAEngine._forEncryption:Z
ifeq 7
aload 0
aload 1
iload 2
aload 3
iload 4
invokevirtual org.bouncycastle.crypto.engines.TEAEngine.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.TEAEngine.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/TEAEngine;
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/TEAEngine;
private void setKey(byte[]);
descriptor: ([B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
aload 1
iconst_0
invokevirtual org.bouncycastle.crypto.engines.TEAEngine.bytesToInt:([BI)I
putfield org.bouncycastle.crypto.engines.TEAEngine._a:I
1: aload 0
aload 0
aload 1
iconst_4
invokevirtual org.bouncycastle.crypto.engines.TEAEngine.bytesToInt:([BI)I
putfield org.bouncycastle.crypto.engines.TEAEngine._b:I
2: aload 0
aload 0
aload 1
bipush 8
invokevirtual org.bouncycastle.crypto.engines.TEAEngine.bytesToInt:([BI)I
putfield org.bouncycastle.crypto.engines.TEAEngine._c:I
3: aload 0
aload 0
aload 1
bipush 12
invokevirtual org.bouncycastle.crypto.engines.TEAEngine.bytesToInt:([BI)I
putfield org.bouncycastle.crypto.engines.TEAEngine._d:I
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/engines/TEAEngine;
0 5 1 key [B
MethodParameters:
Name Flags
key
private int encryptBlock(byte[], int, byte[], int);
descriptor: ([BI[BI)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=9, 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.TEAEngine.bytesToInt:([BI)I
istore 5
start local 5 1: aload 0
aload 1
iload 2
iconst_4
iadd
invokevirtual org.bouncycastle.crypto.engines.TEAEngine.bytesToInt:([BI)I
istore 6
start local 6 2: iconst_0
istore 7
start local 7 3: iconst_0
istore 8
start local 8 4: goto 9
5: StackMap locals: org.bouncycastle.crypto.engines.TEAEngine byte[] int byte[] int int int int int
StackMap stack:
iload 7
ldc -1640531527
iadd
istore 7
6: iload 5
iload 6
iconst_4
ishl
aload 0
getfield org.bouncycastle.crypto.engines.TEAEngine._a:I
iadd
iload 6
iload 7
iadd
ixor
iload 6
iconst_5
iushr
aload 0
getfield org.bouncycastle.crypto.engines.TEAEngine._b:I
iadd
ixor
iadd
istore 5
7: iload 6
iload 5
iconst_4
ishl
aload 0
getfield org.bouncycastle.crypto.engines.TEAEngine._c:I
iadd
iload 5
iload 7
iadd
ixor
iload 5
iconst_5
iushr
aload 0
getfield org.bouncycastle.crypto.engines.TEAEngine._d:I
iadd
ixor
iadd
istore 6
8: iinc 8 1
StackMap locals:
StackMap stack:
9: iload 8
bipush 32
if_icmpne 5
end local 8 10: aload 0
iload 5
aload 3
iload 4
invokevirtual org.bouncycastle.crypto.engines.TEAEngine.unpackInt:(I[BI)V
11: aload 0
iload 6
aload 3
iload 4
iconst_4
iadd
invokevirtual org.bouncycastle.crypto.engines.TEAEngine.unpackInt:(I[BI)V
12: bipush 8
ireturn
end local 7 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 13 0 this Lorg/bouncycastle/crypto/engines/TEAEngine;
0 13 1 in [B
0 13 2 inOff I
0 13 3 out [B
0 13 4 outOff I
1 13 5 v0 I
2 13 6 v1 I
3 13 7 sum I
4 10 8 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=9, 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.TEAEngine.bytesToInt:([BI)I
istore 5
start local 5 1: aload 0
aload 1
iload 2
iconst_4
iadd
invokevirtual org.bouncycastle.crypto.engines.TEAEngine.bytesToInt:([BI)I
istore 6
start local 6 2: ldc -957401312
istore 7
start local 7 3: iconst_0
istore 8
start local 8 4: goto 9
5: StackMap locals: org.bouncycastle.crypto.engines.TEAEngine byte[] int byte[] int int int int int
StackMap stack:
iload 6
iload 5
iconst_4
ishl
aload 0
getfield org.bouncycastle.crypto.engines.TEAEngine._c:I
iadd
iload 5
iload 7
iadd
ixor
iload 5
iconst_5
iushr
aload 0
getfield org.bouncycastle.crypto.engines.TEAEngine._d:I
iadd
ixor
isub
istore 6
6: iload 5
iload 6
iconst_4
ishl
aload 0
getfield org.bouncycastle.crypto.engines.TEAEngine._a:I
iadd
iload 6
iload 7
iadd
ixor
iload 6
iconst_5
iushr
aload 0
getfield org.bouncycastle.crypto.engines.TEAEngine._b:I
iadd
ixor
isub
istore 5
7: iload 7
ldc -1640531527
isub
istore 7
8: iinc 8 1
StackMap locals:
StackMap stack:
9: iload 8
bipush 32
if_icmpne 5
end local 8 10: aload 0
iload 5
aload 3
iload 4
invokevirtual org.bouncycastle.crypto.engines.TEAEngine.unpackInt:(I[BI)V
11: aload 0
iload 6
aload 3
iload 4
iconst_4
iadd
invokevirtual org.bouncycastle.crypto.engines.TEAEngine.unpackInt:(I[BI)V
12: bipush 8
ireturn
end local 7 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 13 0 this Lorg/bouncycastle/crypto/engines/TEAEngine;
0 13 1 in [B
0 13 2 inOff I
0 13 3 out [B
0 13 4 outOff I
1 13 5 v0 I
2 13 6 v1 I
3 13 7 sum I
4 10 8 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/TEAEngine;
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/TEAEngine;
0 5 1 v I
0 5 2 out [B
0 5 3 outOff I
MethodParameters:
Name Flags
v
out
outOff
}
SourceFile: "TEAEngine.java"