public class org.bouncycastle.crypto.digests.SHAKEDigest extends org.bouncycastle.crypto.digests.KeccakDigest implements org.bouncycastle.crypto.Xof
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.digests.SHAKEDigest
super_class: org.bouncycastle.crypto.digests.KeccakDigest
{
private static int checkBitLength(int);
descriptor: (I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: iload 0
lookupswitch { // 2
128: 1
256: 1
default: 2
}
1: StackMap locals:
StackMap stack:
iload 0
ireturn
2: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "'bitLength' "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " not supported for SHAKE"
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 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 bitLength I
MethodParameters:
Name Flags
bitLength
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
sipush 128
invokespecial org.bouncycastle.crypto.digests.SHAKEDigest.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/digests/SHAKEDigest;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic org.bouncycastle.crypto.digests.SHAKEDigest.checkBitLength:(I)I
invokespecial org.bouncycastle.crypto.digests.KeccakDigest.<init>:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/digests/SHAKEDigest;
0 2 1 bitLength I
MethodParameters:
Name Flags
bitLength
public void <init>(org.bouncycastle.crypto.digests.SHAKEDigest);
descriptor: (Lorg/bouncycastle/crypto/digests/SHAKEDigest;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.bouncycastle.crypto.digests.KeccakDigest.<init>:(Lorg/bouncycastle/crypto/digests/KeccakDigest;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/digests/SHAKEDigest;
0 2 1 source Lorg/bouncycastle/crypto/digests/SHAKEDigest;
MethodParameters:
Name Flags
source
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
ldc "SHAKE"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.bouncycastle.crypto.digests.SHAKEDigest.fixedOutputLength:I
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/digests/SHAKEDigest;
public int doFinal(byte[], int);
descriptor: ([BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
aload 0
invokevirtual org.bouncycastle.crypto.digests.SHAKEDigest.getDigestSize:()I
invokevirtual org.bouncycastle.crypto.digests.SHAKEDigest.doFinal:([BII)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/digests/SHAKEDigest;
0 1 1 out [B
0 1 2 outOff I
MethodParameters:
Name Flags
out
outOff
public int doFinal(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
invokevirtual org.bouncycastle.crypto.digests.SHAKEDigest.doOutput:([BII)I
istore 4
start local 4 1: aload 0
invokevirtual org.bouncycastle.crypto.digests.SHAKEDigest.reset:()V
2: iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/crypto/digests/SHAKEDigest;
0 3 1 out [B
0 3 2 outOff I
0 3 3 outLen I
1 3 4 length I
MethodParameters:
Name Flags
out
outOff
outLen
public int doOutput(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.bouncycastle.crypto.digests.SHAKEDigest.squeezing:Z
ifne 2
1: aload 0
bipush 15
iconst_4
invokevirtual org.bouncycastle.crypto.digests.SHAKEDigest.absorbBits:(II)V
2: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
iload 3
i2l
ldc 8
lmul
invokevirtual org.bouncycastle.crypto.digests.SHAKEDigest.squeeze:([BIJ)V
3: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/digests/SHAKEDigest;
0 4 1 out [B
0 4 2 outOff I
0 4 3 outLen I
MethodParameters:
Name Flags
out
outOff
outLen
protected int doFinal(byte[], int, byte, int);
descriptor: ([BIBI)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=5, 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
aload 0
invokevirtual org.bouncycastle.crypto.digests.SHAKEDigest.getDigestSize:()I
iload 3
iload 4
invokevirtual org.bouncycastle.crypto.digests.SHAKEDigest.doFinal:([BIIBI)I
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/digests/SHAKEDigest;
0 1 1 out [B
0 1 2 outOff I
0 1 3 partialByte B
0 1 4 partialBits I
MethodParameters:
Name Flags
out
outOff
partialByte
partialBits
protected int doFinal(byte[], int, int, byte, int);
descriptor: ([BIIBI)I
flags: (0x0004) ACC_PROTECTED
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 5
iflt 1
iload 5
bipush 7
if_icmple 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "'partialBits' must be in the range [0,7]"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 4
iconst_1
iload 5
ishl
iconst_1
isub
iand
bipush 15
iload 5
ishl
ior
istore 6
start local 6 3: iload 5
iconst_4
iadd
istore 7
start local 7 4: iload 7
bipush 8
if_icmplt 8
5: aload 0
iconst_1
newarray 8
dup
iconst_0
iload 6
i2b
bastore
iconst_0
iconst_1
invokevirtual org.bouncycastle.crypto.digests.SHAKEDigest.absorb:([BII)V
6: iinc 7 -8
7: iload 6
bipush 8
iushr
istore 6
8: StackMap locals: int int
StackMap stack:
iload 7
ifle 10
9: aload 0
iload 6
iload 7
invokevirtual org.bouncycastle.crypto.digests.SHAKEDigest.absorbBits:(II)V
10: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
iload 3
i2l
ldc 8
lmul
invokevirtual org.bouncycastle.crypto.digests.SHAKEDigest.squeeze:([BIJ)V
11: aload 0
invokevirtual org.bouncycastle.crypto.digests.SHAKEDigest.reset:()V
12: iload 3
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/digests/SHAKEDigest;
0 13 1 out [B
0 13 2 outOff I
0 13 3 outLen I
0 13 4 partialByte B
0 13 5 partialBits I
3 13 6 finalInput I
4 13 7 finalBits I
MethodParameters:
Name Flags
out
outOff
outLen
partialByte
partialBits
}
SourceFile: "SHAKEDigest.java"