public class sun.security.provider.HmacDrbg extends sun.security.provider.AbstractHashDrbg
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.provider.HmacDrbg
super_class: sun.security.provider.AbstractHashDrbg
{
private javax.crypto.Mac mac;
descriptor: Ljavax/crypto/Mac;
flags: (0x0002) ACC_PRIVATE
private java.lang.String macAlg;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private byte[] v;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] k;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
public void <init>(java.security.SecureRandomParameters);
descriptor: (Ljava/security/SecureRandomParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.security.provider.AbstractHashDrbg.<init>:()V
1: aload 0
ldc "HMAC_DRBG"
putfield sun.security.provider.HmacDrbg.mechName:Ljava/lang/String;
2: aload 0
aload 1
invokevirtual sun.security.provider.HmacDrbg.configure:(Ljava/security/SecureRandomParameters;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/provider/HmacDrbg;
0 4 1 params Ljava/security/SecureRandomParameters;
MethodParameters:
Name Flags
params
private void status();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: getstatic sun.security.provider.HmacDrbg.debug:Lsun/security/util/Debug;
ifnull 4
1: getstatic sun.security.provider.HmacDrbg.debug:Lsun/security/util/Debug;
aload 0
new java.lang.StringBuilder
dup
ldc "V = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.provider.HmacDrbg.v:[B
invokestatic sun.security.provider.HmacDrbg.hex:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual sun.security.util.Debug.println:(Ljava/lang/Object;Ljava/lang/String;)V
2: getstatic sun.security.provider.HmacDrbg.debug:Lsun/security/util/Debug;
aload 0
new java.lang.StringBuilder
dup
ldc "Key = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.provider.HmacDrbg.k:[B
invokestatic sun.security.provider.HmacDrbg.hex:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual sun.security.util.Debug.println:(Ljava/lang/Object;Ljava/lang/String;)V
3: getstatic sun.security.provider.HmacDrbg.debug:Lsun/security/util/Debug;
aload 0
new java.lang.StringBuilder
dup
ldc "reseed counter = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.provider.HmacDrbg.reseedCounter:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual sun.security.util.Debug.println:(Ljava/lang/Object;Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/provider/HmacDrbg;
private void update(java.util.List<byte[]>);
descriptor: (Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
new javax.crypto.spec.SecretKeySpec
dup
aload 0
getfield sun.security.provider.HmacDrbg.k:[B
aload 0
getfield sun.security.provider.HmacDrbg.macAlg:Ljava/lang/String;
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
invokevirtual javax.crypto.Mac.init:(Ljava/security/Key;)V
1: aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
aload 0
getfield sun.security.provider.HmacDrbg.v:[B
invokevirtual javax.crypto.Mac.update:([B)V
2: aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
iconst_0
invokevirtual javax.crypto.Mac.update:(B)V
3: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: sun.security.provider.HmacDrbg java.util.List top java.util.Iterator
StackMap stack:
4: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 2
start local 2 5: aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
aload 2
invokevirtual javax.crypto.Mac.update:([B)V
end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: aload 0
aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
invokevirtual javax.crypto.Mac.doFinal:()[B
putfield sun.security.provider.HmacDrbg.k:[B
8: aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
new javax.crypto.spec.SecretKeySpec
dup
aload 0
getfield sun.security.provider.HmacDrbg.k:[B
aload 0
getfield sun.security.provider.HmacDrbg.macAlg:Ljava/lang/String;
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
invokevirtual javax.crypto.Mac.init:(Ljava/security/Key;)V
9: aload 0
aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
aload 0
getfield sun.security.provider.HmacDrbg.v:[B
invokevirtual javax.crypto.Mac.doFinal:([B)[B
putfield sun.security.provider.HmacDrbg.v:[B
10: aload 1
invokeinterface java.util.List.isEmpty:()Z
ifne 23
11: aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
aload 0
getfield sun.security.provider.HmacDrbg.v:[B
invokevirtual javax.crypto.Mac.update:([B)V
12: aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
iconst_1
invokevirtual javax.crypto.Mac.update:(B)V
13: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 16
StackMap locals:
StackMap stack:
14: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 2
start local 2 15: aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
aload 2
invokevirtual javax.crypto.Mac.update:([B)V
end local 2 16: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
17: aload 0
aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
invokevirtual javax.crypto.Mac.doFinal:()[B
putfield sun.security.provider.HmacDrbg.k:[B
18: aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
new javax.crypto.spec.SecretKeySpec
dup
aload 0
getfield sun.security.provider.HmacDrbg.k:[B
aload 0
getfield sun.security.provider.HmacDrbg.macAlg:Ljava/lang/String;
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
invokevirtual javax.crypto.Mac.init:(Ljava/security/Key;)V
19: aload 0
aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
aload 0
getfield sun.security.provider.HmacDrbg.v:[B
invokevirtual javax.crypto.Mac.doFinal:([B)[B
putfield sun.security.provider.HmacDrbg.v:[B
20: goto 23
StackMap locals: sun.security.provider.HmacDrbg java.util.List
StackMap stack: java.security.InvalidKeyException
21: astore 2
start local 2 22: new java.lang.InternalError
dup
aload 2
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 23: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/security/provider/HmacDrbg;
0 24 1 inputs Ljava/util/List<[B>;
5 6 2 input [B
15 16 2 input [B
22 23 2 e Ljava/security/InvalidKeyException;
Exception table:
from to target type
0 20 21 Class java.security.InvalidKeyException
Signature: (Ljava/util/List<[B>;)V
MethodParameters:
Name Flags
inputs
protected void initEngine();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
new java.lang.StringBuilder
dup
ldc "HmacSHA"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.provider.HmacDrbg.algorithm:Ljava/lang/String;
iconst_4
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield sun.security.provider.HmacDrbg.macAlg:Ljava/lang/String;
1: aload 0
aload 0
getfield sun.security.provider.HmacDrbg.macAlg:Ljava/lang/String;
ldc "SunJCE"
invokestatic javax.crypto.Mac.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljavax/crypto/Mac;
putfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
2: goto 10
StackMap locals:
StackMap stack: java.security.GeneralSecurityException
3: pop
4: aload 0
aload 0
getfield sun.security.provider.HmacDrbg.macAlg:Ljava/lang/String;
invokestatic javax.crypto.Mac.getInstance:(Ljava/lang/String;)Ljavax/crypto/Mac;
putfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
5: goto 10
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
6: astore 1
start local 1 7: new java.lang.InternalError
dup
8: new java.lang.StringBuilder
dup
ldc "internal error: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.provider.HmacDrbg.macAlg:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " not available."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
9: invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/provider/HmacDrbg;
7 10 1 exc Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
1 2 3 Class java.security.NoSuchProviderException
1 2 3 Class java.security.NoSuchAlgorithmException
4 5 6 Class java.security.NoSuchAlgorithmException
protected final synchronized void hashReseedInternal(java.util.List<byte[]>);
descriptor: (Ljava/util/List;)V
flags: (0x0034) ACC_PROTECTED, ACC_FINAL, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.provider.HmacDrbg.v:[B
ifnonnull 4
1: aload 0
aload 0
getfield sun.security.provider.HmacDrbg.outLen:I
newarray 8
putfield sun.security.provider.HmacDrbg.k:[B
2: aload 0
aload 0
getfield sun.security.provider.HmacDrbg.outLen:I
newarray 8
putfield sun.security.provider.HmacDrbg.v:[B
3: aload 0
getfield sun.security.provider.HmacDrbg.v:[B
iconst_1
invokestatic java.util.Arrays.fill:([BB)V
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.security.provider.HmacDrbg.update:(Ljava/util/List;)V
5: aload 0
iconst_1
putfield sun.security.provider.HmacDrbg.reseedCounter:I
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/provider/HmacDrbg;
0 7 1 input Ljava/util/List<[B>;
Signature: (Ljava/util/List<[B>;)V
MethodParameters:
Name Flags
input
public synchronized void generateAlgorithm(byte[], byte[]);
descriptor: ([B[B)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.security.provider.HmacDrbg.debug:Lsun/security/util/Debug;
ifnull 2
1: getstatic sun.security.provider.HmacDrbg.debug:Lsun/security/util/Debug;
aload 0
ldc "generateAlgorithm"
invokevirtual sun.security.util.Debug.println:(Ljava/lang/Object;Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 2
ifnull 4
3: aload 0
aload 2
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
invokevirtual sun.security.provider.HmacDrbg.update:(Ljava/util/List;)V
4: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 5: aload 1
arraylength
istore 4
start local 4 6: goto 20
7: StackMap locals: int int
StackMap stack:
aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
new javax.crypto.spec.SecretKeySpec
dup
aload 0
getfield sun.security.provider.HmacDrbg.k:[B
aload 0
getfield sun.security.provider.HmacDrbg.macAlg:Ljava/lang/String;
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
invokevirtual javax.crypto.Mac.init:(Ljava/security/Key;)V
8: goto 11
StackMap locals:
StackMap stack: java.security.InvalidKeyException
9: astore 5
start local 5 10: new java.lang.InternalError
dup
aload 5
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 11: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.security.provider.HmacDrbg.mac:Ljavax/crypto/Mac;
aload 0
getfield sun.security.provider.HmacDrbg.v:[B
invokevirtual javax.crypto.Mac.doFinal:([B)[B
putfield sun.security.provider.HmacDrbg.v:[B
12: aload 0
getfield sun.security.provider.HmacDrbg.v:[B
iconst_0
aload 1
iload 3
13: iload 4
aload 0
getfield sun.security.provider.HmacDrbg.outLen:I
if_icmple 14
aload 0
getfield sun.security.provider.HmacDrbg.outLen:I
goto 15
StackMap locals: sun.security.provider.HmacDrbg byte[] byte[] int int
StackMap stack: byte[] int byte[] int
14: iload 4
15: StackMap locals: sun.security.provider.HmacDrbg byte[] byte[] int int
StackMap stack: byte[] int byte[] int int
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
16: iload 4
aload 0
getfield sun.security.provider.HmacDrbg.outLen:I
isub
istore 4
17: iload 4
ifgt 19
18: goto 21
19: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield sun.security.provider.HmacDrbg.outLen:I
iadd
istore 3
20: StackMap locals:
StackMap stack:
iload 4
ifgt 7
21: StackMap locals:
StackMap stack:
aload 2
ifnull 24
22: aload 0
aload 2
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
invokevirtual sun.security.provider.HmacDrbg.update:(Ljava/util/List;)V
23: goto 25
24: StackMap locals:
StackMap stack:
aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
invokevirtual sun.security.provider.HmacDrbg.update:(Ljava/util/List;)V
25: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.security.provider.HmacDrbg.reseedCounter:I
iconst_1
iadd
putfield sun.security.provider.HmacDrbg.reseedCounter:I
26: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/security/provider/HmacDrbg;
0 27 1 result [B
0 27 2 additionalInput [B
5 27 3 pos I
6 27 4 len I
10 11 5 e Ljava/security/InvalidKeyException;
Exception table:
from to target type
7 8 9 Class java.security.InvalidKeyException
MethodParameters:
Name Flags
result
additionalInput
}
SourceFile: "HmacDrbg.java"