abstract class com.sun.crypto.provider.HmacCore extends javax.crypto.MacSpi implements java.lang.Cloneable
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.crypto.provider.HmacCore
super_class: javax.crypto.MacSpi
{
private java.security.MessageDigest md;
descriptor: Ljava/security/MessageDigest;
flags: (0x0002) ACC_PRIVATE
private byte[] k_ipad;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] k_opad;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private boolean first;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final int blockLen;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.security.MessageDigest, int);
descriptor: (Ljava/security/MessageDigest;I)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial javax.crypto.MacSpi.<init>:()V
1: aload 0
aload 1
putfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
2: aload 0
iload 2
putfield com.sun.crypto.provider.HmacCore.blockLen:I
3: aload 0
aload 0
getfield com.sun.crypto.provider.HmacCore.blockLen:I
newarray 8
putfield com.sun.crypto.provider.HmacCore.k_ipad:[B
4: aload 0
aload 0
getfield com.sun.crypto.provider.HmacCore.blockLen:I
newarray 8
putfield com.sun.crypto.provider.HmacCore.k_opad:[B
5: aload 0
iconst_1
putfield com.sun.crypto.provider.HmacCore.first:Z
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/crypto/provider/HmacCore;
0 7 1 md Ljava/security/MessageDigest;
0 7 2 bl I
MethodParameters:
Name Flags
md
bl
void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
iload 2
invokespecial com.sun.crypto.provider.HmacCore.<init>:(Ljava/security/MessageDigest;I)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/crypto/provider/HmacCore;
0 2 1 digestAlgorithm Ljava/lang/String;
0 2 2 bl I
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
digestAlgorithm
bl
protected int engineGetMacLength();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.getDigestLength:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/HmacCore;
protected void engineInit(java.security.Key, java.security.spec.AlgorithmParameterSpec);
descriptor: (Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 4
1: new java.security.InvalidAlgorithmParameterException
dup
2: ldc "HMAC does not use parameters"
3: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
instanceof javax.crypto.SecretKey
ifne 6
5: new java.security.InvalidKeyException
dup
ldc "Secret key expected"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.security.Key.getEncoded:()[B
astore 3
start local 3 7: aload 3
ifnonnull 9
8: new java.security.InvalidKeyException
dup
ldc "Missing key data"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: byte[]
StackMap stack:
aload 3
arraylength
aload 0
getfield com.sun.crypto.provider.HmacCore.blockLen:I
if_icmple 13
10: aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
aload 3
invokevirtual java.security.MessageDigest.digest:([B)[B
astore 4
start local 4 11: aload 3
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
12: aload 4
astore 3
end local 4 13: StackMap locals:
StackMap stack:
iconst_0
istore 4
start local 4 14: goto 21
15: StackMap locals: int
StackMap stack:
iload 4
aload 3
arraylength
if_icmpge 16
aload 3
iload 4
baload
goto 17
StackMap locals:
StackMap stack:
16: iconst_0
StackMap locals:
StackMap stack: int
17: istore 5
start local 5 18: aload 0
getfield com.sun.crypto.provider.HmacCore.k_ipad:[B
iload 4
iload 5
bipush 54
ixor
i2b
bastore
19: aload 0
getfield com.sun.crypto.provider.HmacCore.k_opad:[B
iload 4
iload 5
bipush 92
ixor
i2b
bastore
end local 5 20: iinc 4 1
StackMap locals:
StackMap stack:
21: iload 4
aload 0
getfield com.sun.crypto.provider.HmacCore.blockLen:I
if_icmplt 15
end local 4 22: aload 3
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
23: aconst_null
astore 3
24: aload 0
invokevirtual com.sun.crypto.provider.HmacCore.engineReset:()V
25: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lcom/sun/crypto/provider/HmacCore;
0 26 1 key Ljava/security/Key;
0 26 2 params Ljava/security/spec/AlgorithmParameterSpec;
7 26 3 secret [B
11 13 4 tmp [B
14 22 4 i I
18 20 5 si I
Exceptions:
throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
key
params
protected void engineUpdate(byte);
descriptor: (B)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.crypto.provider.HmacCore.first:Z
ifeq 3
1: aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
aload 0
getfield com.sun.crypto.provider.HmacCore.k_ipad:[B
invokevirtual java.security.MessageDigest.update:([B)V
2: aload 0
iconst_0
putfield com.sun.crypto.provider.HmacCore.first:Z
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
iload 1
invokevirtual java.security.MessageDigest.update:(B)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/crypto/provider/HmacCore;
0 5 1 input B
MethodParameters:
Name Flags
input
protected void engineUpdate(byte[], int, int);
descriptor: ([BII)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.sun.crypto.provider.HmacCore.first:Z
ifeq 3
1: aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
aload 0
getfield com.sun.crypto.provider.HmacCore.k_ipad:[B
invokevirtual java.security.MessageDigest.update:([B)V
2: aload 0
iconst_0
putfield com.sun.crypto.provider.HmacCore.first:Z
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
aload 1
iload 2
iload 3
invokevirtual java.security.MessageDigest.update:([BII)V
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/crypto/provider/HmacCore;
0 5 1 input [B
0 5 2 offset I
0 5 3 len I
MethodParameters:
Name Flags
input
offset
len
protected void engineUpdate(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.crypto.provider.HmacCore.first:Z
ifeq 3
1: aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
aload 0
getfield com.sun.crypto.provider.HmacCore.k_ipad:[B
invokevirtual java.security.MessageDigest.update:([B)V
2: aload 0
iconst_0
putfield com.sun.crypto.provider.HmacCore.first:Z
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
aload 1
invokevirtual java.security.MessageDigest.update:(Ljava/nio/ByteBuffer;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/crypto/provider/HmacCore;
0 5 1 input Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
input
protected byte[] engineDoFinal();
descriptor: ()[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.HmacCore.first:Z
ifeq 3
1: aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
aload 0
getfield com.sun.crypto.provider.HmacCore.k_ipad:[B
invokevirtual java.security.MessageDigest.update:([B)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield com.sun.crypto.provider.HmacCore.first:Z
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.digest:()[B
astore 1
start local 1 5: aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
aload 0
getfield com.sun.crypto.provider.HmacCore.k_opad:[B
invokevirtual java.security.MessageDigest.update:([B)V
6: aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
aload 1
invokevirtual java.security.MessageDigest.update:([B)V
7: aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
aload 1
iconst_0
aload 1
arraylength
invokevirtual java.security.MessageDigest.digest:([BII)I
pop
8: aload 1
9: areturn
end local 1 10: StackMap locals:
StackMap stack: java.security.DigestException
astore 1
start local 1 11: new java.security.ProviderException
dup
aload 1
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/crypto/provider/HmacCore;
5 10 1 tmp [B
11 12 1 e Ljava/security/DigestException;
Exception table:
from to target type
4 9 10 Class java.security.DigestException
protected void engineReset();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.HmacCore.first:Z
ifne 3
1: aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.reset:()V
2: aload 0
iconst_1
putfield com.sun.crypto.provider.HmacCore.first:Z
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/crypto/provider/HmacCore;
public java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokespecial javax.crypto.MacSpi.clone:()Ljava/lang/Object;
checkcast com.sun.crypto.provider.HmacCore
astore 1
start local 1 1: aload 1
aload 0
getfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.clone:()Ljava/lang/Object;
checkcast java.security.MessageDigest
putfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
2: aload 1
aload 0
getfield com.sun.crypto.provider.HmacCore.k_ipad:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
putfield com.sun.crypto.provider.HmacCore.k_ipad:[B
3: aload 1
aload 0
getfield com.sun.crypto.provider.HmacCore.k_opad:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
putfield com.sun.crypto.provider.HmacCore.k_opad:[B
4: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/crypto/provider/HmacCore;
1 5 1 copy Lcom/sun/crypto/provider/HmacCore;
Exceptions:
throws java.lang.CloneNotSupportedException
}
SourceFile: "HmacCore.java"
NestMembers:
com.sun.crypto.provider.HmacCore$HmacSHA224 com.sun.crypto.provider.HmacCore$HmacSHA256 com.sun.crypto.provider.HmacCore$HmacSHA384 com.sun.crypto.provider.HmacCore$HmacSHA512
InnerClasses:
public final HmacSHA224 = com.sun.crypto.provider.HmacCore$HmacSHA224 of com.sun.crypto.provider.HmacCore
public final HmacSHA256 = com.sun.crypto.provider.HmacCore$HmacSHA256 of com.sun.crypto.provider.HmacCore
public final HmacSHA384 = com.sun.crypto.provider.HmacCore$HmacSHA384 of com.sun.crypto.provider.HmacCore
public final HmacSHA512 = com.sun.crypto.provider.HmacCore$HmacSHA512 of com.sun.crypto.provider.HmacCore