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.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0000)
Code:
stack=2, locals=12, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial javax.crypto.MacSpi.<init>:()V
1: aload 1
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 3
start local 3 2: aload 3
instanceof java.lang.Cloneable
ifne 20
3: ldc "SUN"
invokestatic java.security.Security.getProvider:(Ljava/lang/String;)Ljava/security/Provider;
astore 4
start local 4 4: aload 4
ifnull 7
5: aload 1
aload 4
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/MessageDigest;
astore 3
6: goto 20
7: StackMap locals: com.sun.crypto.provider.HmacCore java.lang.String int java.security.MessageDigest java.security.Provider
StackMap stack:
aload 3
invokevirtual java.security.MessageDigest.getProvider:()Ljava/security/Provider;
invokevirtual java.security.Provider.getName:()Ljava/lang/String;
astore 5
start local 5 8: invokestatic java.security.Security.getProviders:()[Ljava/security/Provider;
astore 6
start local 6 9: aload 6
dup
astore 10
arraylength
istore 9
iconst_0
istore 8
goto 19
StackMap locals: com.sun.crypto.provider.HmacCore java.lang.String int java.security.MessageDigest java.security.Provider java.lang.String java.security.Provider[] top int int java.security.Provider[]
StackMap stack:
10: aload 10
iload 8
aaload
astore 7
start local 7 11: aload 7
invokevirtual java.security.Provider.getName:()Ljava/lang/String;
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 18
12: aload 1
aload 7
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/MessageDigest;
13: astore 11
start local 11 14: aload 11
instanceof java.lang.Cloneable
ifeq 18
15: aload 11
astore 3
16: goto 20
end local 11 17: StackMap locals: com.sun.crypto.provider.HmacCore java.lang.String int java.security.MessageDigest java.security.Provider java.lang.String java.security.Provider[] java.security.Provider int int java.security.Provider[]
StackMap stack: java.security.NoSuchAlgorithmException
pop
end local 7 18: StackMap locals: com.sun.crypto.provider.HmacCore java.lang.String int java.security.MessageDigest java.security.Provider java.lang.String java.security.Provider[] top int int java.security.Provider[]
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
19: iload 8
iload 9
if_icmplt 10
end local 6 end local 5 end local 4 20: StackMap locals: com.sun.crypto.provider.HmacCore java.lang.String int java.security.MessageDigest
StackMap stack:
aload 0
aload 3
putfield com.sun.crypto.provider.HmacCore.md:Ljava/security/MessageDigest;
21: aload 0
iload 2
putfield com.sun.crypto.provider.HmacCore.blockLen:I
22: aload 0
aload 0
getfield com.sun.crypto.provider.HmacCore.blockLen:I
newarray 8
putfield com.sun.crypto.provider.HmacCore.k_ipad:[B
23: aload 0
aload 0
getfield com.sun.crypto.provider.HmacCore.blockLen:I
newarray 8
putfield com.sun.crypto.provider.HmacCore.k_opad:[B
24: aload 0
iconst_1
putfield com.sun.crypto.provider.HmacCore.first:Z
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 digestAlgo Ljava/lang/String;
0 26 2 bl I
2 26 3 md Ljava/security/MessageDigest;
4 20 4 sun Ljava/security/Provider;
8 20 5 noCloneProv Ljava/lang/String;
9 20 6 provs [Ljava/security/Provider;
11 18 7 p Ljava/security/Provider;
14 17 11 md2 Ljava/security/MessageDigest;
Exception table:
from to target type
11 16 17 Class java.security.NoSuchAlgorithmException
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
digestAlgo
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 com.sun.crypto.provider.HmacCore$HmacSHA512_224 com.sun.crypto.provider.HmacCore$HmacSHA512_256
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
public final HmacSHA512_224 = com.sun.crypto.provider.HmacCore$HmacSHA512_224 of com.sun.crypto.provider.HmacCore
public final HmacSHA512_256 = com.sun.crypto.provider.HmacCore$HmacSHA512_256 of com.sun.crypto.provider.HmacCore