public class org.bouncycastle.crypto.macs.HMac implements org.bouncycastle.crypto.Mac
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.macs.HMac
super_class: java.lang.Object
{
private static final byte IPAD;
descriptor: B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 54
private static final byte OPAD;
descriptor: B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 92
private org.bouncycastle.crypto.Digest digest;
descriptor: Lorg/bouncycastle/crypto/Digest;
flags: (0x0002) ACC_PRIVATE
private int digestSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int blockLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] inputPad;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] outputPad;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private static java.util.Hashtable blockLengths;
descriptor: Ljava/util/Hashtable;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
1: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "GOST3411"
new java.lang.Integer
dup
bipush 32
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "MD2"
new java.lang.Integer
dup
bipush 16
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "MD4"
new java.lang.Integer
dup
bipush 64
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "MD5"
new java.lang.Integer
dup
bipush 64
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "RIPEMD128"
new java.lang.Integer
dup
bipush 64
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "RIPEMD160"
new java.lang.Integer
dup
bipush 64
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "SHA-1"
new java.lang.Integer
dup
bipush 64
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "SHA-224"
new java.lang.Integer
dup
bipush 64
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "SHA-256"
new java.lang.Integer
dup
bipush 64
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "SHA-384"
new java.lang.Integer
dup
sipush 128
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "SHA-512"
new java.lang.Integer
dup
sipush 128
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "Tiger"
new java.lang.Integer
dup
bipush 64
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
ldc "Whirlpool"
new java.lang.Integer
dup
bipush 64
invokespecial java.lang.Integer.<init>:(I)V
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: return
LocalVariableTable:
Start End Slot Name Signature
private static int getByteLength(org.bouncycastle.crypto.Digest);
descriptor: (Lorg/bouncycastle/crypto/Digest;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
instanceof org.bouncycastle.crypto.ExtendedDigest
ifeq 2
1: aload 0
checkcast org.bouncycastle.crypto.ExtendedDigest
invokeinterface org.bouncycastle.crypto.ExtendedDigest.getByteLength:()I
ireturn
2: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.crypto.macs.HMac.blockLengths:Ljava/util/Hashtable;
aload 0
invokeinterface org.bouncycastle.crypto.Digest.getAlgorithmName:()Ljava/lang/String;
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 1
start local 1 3: aload 1
ifnonnull 5
4: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "unknown digest passed: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokeinterface org.bouncycastle.crypto.Digest.getAlgorithmName:()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
5: StackMap locals: java.lang.Integer
StackMap stack:
aload 1
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 digest Lorg/bouncycastle/crypto/Digest;
3 6 1 b Ljava/lang/Integer;
MethodParameters:
Name Flags
digest
public void <init>(org.bouncycastle.crypto.Digest);
descriptor: (Lorg/bouncycastle/crypto/Digest;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
invokestatic org.bouncycastle.crypto.macs.HMac.getByteLength:(Lorg/bouncycastle/crypto/Digest;)I
invokespecial org.bouncycastle.crypto.macs.HMac.<init>:(Lorg/bouncycastle/crypto/Digest;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/macs/HMac;
0 2 1 digest Lorg/bouncycastle/crypto/Digest;
MethodParameters:
Name Flags
digest
private void <init>(org.bouncycastle.crypto.Digest, int);
descriptor: (Lorg/bouncycastle/crypto/Digest;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
2: aload 0
aload 1
invokeinterface org.bouncycastle.crypto.Digest.getDigestSize:()I
putfield org.bouncycastle.crypto.macs.HMac.digestSize:I
3: aload 0
iload 2
putfield org.bouncycastle.crypto.macs.HMac.blockLength:I
4: aload 0
aload 0
getfield org.bouncycastle.crypto.macs.HMac.blockLength:I
newarray 8
putfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
5: aload 0
aload 0
getfield org.bouncycastle.crypto.macs.HMac.blockLength:I
newarray 8
putfield org.bouncycastle.crypto.macs.HMac.outputPad:[B
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/crypto/macs/HMac;
0 7 1 digest Lorg/bouncycastle/crypto/Digest;
0 7 2 byteLength I
MethodParameters:
Name Flags
digest
byteLength
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
aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.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 "/HMAC"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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/macs/HMac;
public org.bouncycastle.crypto.Digest getUnderlyingDigest();
descriptor: ()Lorg/bouncycastle/crypto/Digest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/macs/HMac;
public void init(org.bouncycastle.crypto.CipherParameters);
descriptor: (Lorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.reset:()V
1: aload 1
checkcast org.bouncycastle.crypto.params.KeyParameter
invokevirtual org.bouncycastle.crypto.params.KeyParameter.getKey:()[B
astore 2
start local 2 2: aload 2
arraylength
aload 0
getfield org.bouncycastle.crypto.macs.HMac.blockLength:I
if_icmple 11
3: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
aload 2
iconst_0
aload 2
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
4: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
iconst_0
invokeinterface org.bouncycastle.crypto.Digest.doFinal:([BI)I
pop
5: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digestSize:I
istore 3
start local 3 6: goto 9
7: StackMap locals: byte[] int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
iload 3
iconst_0
bastore
8: iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
arraylength
if_icmplt 7
end local 3 10: goto 17
11: StackMap locals:
StackMap stack:
aload 2
iconst_0
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
iconst_0
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
12: aload 2
arraylength
istore 3
start local 3 13: goto 16
14: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
iload 3
iconst_0
bastore
15: iinc 3 1
StackMap locals:
StackMap stack:
16: iload 3
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
arraylength
if_icmplt 14
end local 3 17: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
arraylength
newarray 8
putfield org.bouncycastle.crypto.macs.HMac.outputPad:[B
18: aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.macs.HMac.outputPad:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
19: iconst_0
istore 3
start local 3 20: goto 23
21: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
iload 3
dup2
baload
bipush 54
ixor
i2b
bastore
22: iinc 3 1
StackMap locals:
StackMap stack:
23: iload 3
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
arraylength
if_icmplt 21
end local 3 24: iconst_0
istore 3
start local 3 25: goto 28
26: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.macs.HMac.outputPad:[B
iload 3
dup2
baload
bipush 92
ixor
i2b
bastore
27: iinc 3 1
StackMap locals:
StackMap stack:
28: iload 3
aload 0
getfield org.bouncycastle.crypto.macs.HMac.outputPad:[B
arraylength
if_icmplt 26
end local 3 29: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
30: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lorg/bouncycastle/crypto/macs/HMac;
0 31 1 params Lorg/bouncycastle/crypto/CipherParameters;
2 31 2 key [B
6 10 3 i I
13 17 3 i I
20 24 3 i I
25 29 3 i I
MethodParameters:
Name Flags
params
public int getMacSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digestSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/macs/HMac;
public void update(byte);
descriptor: (B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
iload 1
invokeinterface org.bouncycastle.crypto.Digest.update:(B)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/macs/HMac;
0 2 1 in B
MethodParameters:
Name Flags
in
public void update(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
aload 1
iload 2
iload 3
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/macs/HMac;
0 2 1 in [B
0 2 2 inOff I
0 2 3 len I
MethodParameters:
Name Flags
in
inOff
len
public int doFinal(byte[], int);
descriptor: ([BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digestSize:I
newarray 8
astore 3
start local 3 1: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
aload 3
iconst_0
invokeinterface org.bouncycastle.crypto.Digest.doFinal:([BI)I
pop
2: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
aload 0
getfield org.bouncycastle.crypto.macs.HMac.outputPad:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.macs.HMac.outputPad:[B
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
3: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
aload 3
iconst_0
aload 3
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
4: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
aload 1
iload 2
invokeinterface org.bouncycastle.crypto.Digest.doFinal:([BI)I
istore 4
start local 4 5: aload 0
invokevirtual org.bouncycastle.crypto.macs.HMac.reset:()V
6: 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 7 0 this Lorg/bouncycastle/crypto/macs/HMac;
0 7 1 out [B
0 7 2 outOff I
1 7 3 tmp [B
5 7 4 len I
MethodParameters:
Name Flags
out
outOff
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.reset:()V
1: aload 0
getfield org.bouncycastle.crypto.macs.HMac.digest:Lorg/bouncycastle/crypto/Digest;
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.macs.HMac.inputPad:[B
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/crypto/macs/HMac;
}
SourceFile: "HMac.java"