public class sun.security.provider.HashDrbg extends sun.security.provider.AbstractHashDrbg
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.provider.HashDrbg
super_class: sun.security.provider.AbstractHashDrbg
{
private static final byte[] ZERO;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final byte[] ONE;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.security.MessageDigest digest;
descriptor: Ljava/security/MessageDigest;
flags: (0x0002) ACC_PRIVATE
private byte[] v;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] c;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: iconst_1
newarray 8
putstatic sun.security.provider.HashDrbg.ZERO:[B
1: iconst_1
newarray 8
dup
iconst_0
iconst_1
bastore
putstatic sun.security.provider.HashDrbg.ONE:[B
return
LocalVariableTable:
Start End Slot Name Signature
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 "Hash_DRBG"
putfield sun.security.provider.HashDrbg.mechName:Ljava/lang/String;
2: aload 0
aload 1
invokevirtual sun.security.provider.HashDrbg.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/HashDrbg;
0 4 1 params Ljava/security/SecureRandomParameters;
MethodParameters:
Name Flags
params
protected void initEngine();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
aload 0
getfield sun.security.provider.HashDrbg.algorithm:Ljava/lang/String;
ldc "SUN"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/MessageDigest;
putfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
1: goto 9
StackMap locals:
StackMap stack: java.security.GeneralSecurityException
2: pop
3: aload 0
aload 0
getfield sun.security.provider.HashDrbg.algorithm:Ljava/lang/String;
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
putfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
4: goto 9
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
5: astore 1
start local 1 6: new java.lang.InternalError
dup
7: new java.lang.StringBuilder
dup
ldc "internal error: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.provider.HashDrbg.algorithm: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
8: invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/security/provider/HashDrbg;
6 9 1 exc Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
0 1 2 Class java.security.NoSuchProviderException
0 1 2 Class java.security.NoSuchAlgorithmException
3 4 5 Class java.security.NoSuchAlgorithmException
private byte[] hashDf(int, java.util.List<byte[]>);
descriptor: (ILjava/util/List;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
aload 0
getfield sun.security.provider.HashDrbg.outLen:I
iload 1
aload 2
invokestatic sun.security.provider.HashDrbg.hashDf:(Ljava/security/MessageDigest;IILjava/util/List;)[B
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/provider/HashDrbg;
0 1 1 requested I
0 1 2 inputs Ljava/util/List<[B>;
Signature: (ILjava/util/List<[B>;)[B
MethodParameters:
Name Flags
requested
inputs
public static byte[] hashDf(java.security.MessageDigest, int, int, java.util.List<byte[]>);
descriptor: (Ljava/security/MessageDigest;IILjava/util/List;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iload 1
iadd
iconst_1
isub
iload 1
idiv
istore 4
start local 4 1: iload 4
iload 1
imul
newarray 8
astore 5
start local 5 2: iconst_1
istore 6
start local 6 3: iconst_0
istore 7
start local 7 4: goto 20
5: StackMap locals: java.security.MessageDigest int int java.util.List int byte[] int int
StackMap stack:
aload 0
iload 6
i2b
invokevirtual java.security.MessageDigest.update:(B)V
6: aload 0
iload 2
bipush 21
ishr
i2b
invokevirtual java.security.MessageDigest.update:(B)V
7: aload 0
iload 2
bipush 13
ishr
i2b
invokevirtual java.security.MessageDigest.update:(B)V
8: aload 0
iload 2
iconst_5
ishr
i2b
invokevirtual java.security.MessageDigest.update:(B)V
9: aload 0
iload 2
iconst_3
ishl
i2b
invokevirtual java.security.MessageDigest.update:(B)V
10: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 13
StackMap locals: java.security.MessageDigest int int java.util.List int byte[] int int top java.util.Iterator
StackMap stack:
11: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 8
start local 8 12: aload 0
aload 8
invokevirtual java.security.MessageDigest.update:([B)V
end local 8 13: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
14: aload 0
aload 5
iload 7
iload 1
imul
iload 1
invokevirtual java.security.MessageDigest.digest:([BII)I
pop
15: goto 18
StackMap locals: java.security.MessageDigest int int java.util.List int byte[] int int
StackMap stack: java.security.DigestException
16: astore 8
start local 8 17: new java.lang.AssertionError
dup
ldc "will not happen"
aload 8
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 8 18: StackMap locals:
StackMap stack:
iinc 6 1
19: iinc 7 1
StackMap locals:
StackMap stack:
20: iload 7
iload 4
if_icmplt 5
end local 7 21: aload 5
arraylength
iload 2
if_icmpne 22
aload 5
goto 23
StackMap locals:
StackMap stack:
22: aload 5
iload 2
invokestatic java.util.Arrays.copyOf:([BI)[B
StackMap locals:
StackMap stack: byte[]
23: areturn
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 24 0 digest Ljava/security/MessageDigest;
0 24 1 outLen I
0 24 2 requested I
0 24 3 inputs Ljava/util/List<[B>;
1 24 4 len I
2 24 5 temp [B
3 24 6 counter I
4 21 7 i I
12 13 8 input [B
17 18 8 e Ljava/security/DigestException;
Exception table:
from to target type
14 15 16 Class java.security.DigestException
Signature: (Ljava/security/MessageDigest;IILjava/util/List<[B>;)[B
MethodParameters:
Name Flags
digest
outLen
requested
inputs
protected final synchronized void hashReseedInternal(java.util.List<byte[]>);
descriptor: (Ljava/util/List;)V
flags: (0x0034) ACC_PROTECTED, ACC_FINAL, ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.provider.HashDrbg.v:[B
ifnull 5
1: aload 1
iconst_0
getstatic sun.security.provider.HashDrbg.ONE:[B
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
2: aload 1
iconst_1
aload 0
getfield sun.security.provider.HashDrbg.v:[B
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
3: aload 0
aload 0
getfield sun.security.provider.HashDrbg.seedLen:I
aload 1
invokevirtual sun.security.provider.HashDrbg.hashDf:(ILjava/util/List;)[B
astore 2
start local 2 4: goto 6
end local 2 5: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.security.provider.HashDrbg.seedLen:I
aload 1
invokevirtual sun.security.provider.HashDrbg.hashDf:(ILjava/util/List;)[B
astore 2
start local 2 6: StackMap locals: byte[]
StackMap stack:
aload 0
aload 2
putfield sun.security.provider.HashDrbg.v:[B
7: new java.util.ArrayList
dup
iconst_2
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
8: aload 1
getstatic sun.security.provider.HashDrbg.ZERO:[B
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
9: aload 1
aload 0
getfield sun.security.provider.HashDrbg.v:[B
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
10: aload 0
aload 0
aload 0
getfield sun.security.provider.HashDrbg.seedLen:I
aload 1
invokevirtual sun.security.provider.HashDrbg.hashDf:(ILjava/util/List;)[B
putfield sun.security.provider.HashDrbg.c:[B
11: aload 0
iconst_1
putfield sun.security.provider.HashDrbg.reseedCounter:I
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/security/provider/HashDrbg;
0 13 1 inputs Ljava/util/List<[B>;
4 5 2 seed [B
6 13 2 seed [B
Signature: (Ljava/util/List<[B>;)V
MethodParameters:
Name Flags
inputs
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.HashDrbg.debug:Lsun/security/util/Debug;
ifnull 4
1: getstatic sun.security.provider.HashDrbg.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.HashDrbg.v:[B
invokestatic sun.security.provider.HashDrbg.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.HashDrbg.debug:Lsun/security/util/Debug;
aload 0
new java.lang.StringBuilder
dup
ldc "C = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.provider.HashDrbg.c:[B
invokestatic sun.security.provider.HashDrbg.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.HashDrbg.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.HashDrbg.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/HashDrbg;
private static void addBytes(byte[], int, byte[][]);
descriptor: ([BI[[B)V
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 15
StackMap locals: byte[] int byte[][] top int int byte[][]
StackMap stack:
1: aload 6
iload 4
aaload
astore 3
start local 3 2: aload 3
arraylength
istore 7
start local 7 3: iconst_0
istore 8
start local 8 4: iconst_0
istore 9
start local 9 5: goto 13
6: StackMap locals: byte[] int byte[][] byte[] int int byte[][] int int int
StackMap stack:
aload 0
iload 1
iload 9
isub
iconst_1
isub
baload
sipush 255
iand
iload 8
iadd
istore 10
start local 10 7: iload 9
iload 7
if_icmpge 9
8: iload 10
aload 3
iload 7
iload 9
isub
iconst_1
isub
baload
sipush 255
iand
iadd
istore 10
9: StackMap locals: int
StackMap stack:
aload 0
iload 1
iload 9
isub
iconst_1
isub
iload 10
i2b
bastore
10: iload 10
bipush 8
ishr
istore 8
11: iload 9
iload 7
iconst_1
isub
if_icmplt 12
iload 8
ifne 12
goto 14
end local 10 12: StackMap locals:
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
13: iload 9
iload 1
if_icmplt 6
end local 9 end local 8 end local 7 end local 3 14: StackMap locals: byte[] int byte[][] top int int byte[][]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
15: iload 4
iload 5
if_icmplt 1
16: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 out [B
0 17 1 len I
0 17 2 data [[B
2 14 3 d [B
3 14 7 dlen I
4 14 8 carry I
5 14 9 i I
7 12 10 sum I
MethodParameters:
Name Flags
out
len
data
public final synchronized void generateAlgorithm(byte[], byte[]);
descriptor: ([B[B)V
flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SYNCHRONIZED
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.security.provider.HashDrbg.debug:Lsun/security/util/Debug;
ifnull 2
1: getstatic sun.security.provider.HashDrbg.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 7
3: aload 0
getfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
iconst_2
invokevirtual java.security.MessageDigest.update:(B)V
4: aload 0
getfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
aload 0
getfield sun.security.provider.HashDrbg.v:[B
invokevirtual java.security.MessageDigest.update:([B)V
5: aload 0
getfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
aload 2
invokevirtual java.security.MessageDigest.update:([B)V
6: aload 0
getfield sun.security.provider.HashDrbg.v:[B
aload 0
getfield sun.security.provider.HashDrbg.seedLen:I
iconst_1
anewarray byte[]
dup
iconst_0
aload 0
getfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.digest:()[B
aastore
invokestatic sun.security.provider.HashDrbg.addBytes:([BI[[B)V
7: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 0
getfield sun.security.provider.HashDrbg.v:[B
invokevirtual sun.security.provider.HashDrbg.hashGen:([B[B)V
8: aload 0
getfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
iconst_3
invokevirtual java.security.MessageDigest.update:(B)V
9: aload 0
getfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
aload 0
getfield sun.security.provider.HashDrbg.v:[B
invokevirtual java.security.MessageDigest.update:([B)V
10: aload 0
getfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.digest:()[B
astore 3
start local 3 11: aload 0
getfield sun.security.provider.HashDrbg.reseedCounter:I
sipush 256
if_icmpge 14
12: iconst_1
newarray 8
dup
iconst_0
aload 0
getfield sun.security.provider.HashDrbg.reseedCounter:I
i2b
bastore
astore 4
start local 4 13: goto 15
end local 4 14: StackMap locals: byte[]
StackMap stack:
aload 0
getfield sun.security.provider.HashDrbg.reseedCounter:I
i2l
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.toByteArray:()[B
astore 4
start local 4 15: StackMap locals: byte[]
StackMap stack:
aload 0
getfield sun.security.provider.HashDrbg.v:[B
aload 0
getfield sun.security.provider.HashDrbg.seedLen:I
iconst_3
anewarray byte[]
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 0
getfield sun.security.provider.HashDrbg.c:[B
aastore
dup
iconst_2
aload 4
aastore
invokestatic sun.security.provider.HashDrbg.addBytes:([BI[[B)V
16: aload 0
dup
getfield sun.security.provider.HashDrbg.reseedCounter:I
iconst_1
iadd
putfield sun.security.provider.HashDrbg.reseedCounter:I
17: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/security/provider/HashDrbg;
0 18 1 result [B
0 18 2 additionalInput [B
11 18 3 h [B
13 14 4 rcBytes [B
15 18 4 rcBytes [B
MethodParameters:
Name Flags
result
additionalInput
private void hashGen(byte[], byte[]);
descriptor: ([B[B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 2
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: aload 1
arraylength
istore 5
start local 5 3: goto 21
4: StackMap locals: byte[] int int
StackMap stack:
iload 5
aload 0
getfield sun.security.provider.HashDrbg.outLen:I
if_icmpge 9
5: aload 0
getfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
aload 3
invokevirtual java.security.MessageDigest.digest:([B)[B
iconst_0
aload 1
iload 4
6: iload 5
7: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: goto 14
9: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
aload 3
invokevirtual java.security.MessageDigest.update:([B)V
10: aload 0
getfield sun.security.provider.HashDrbg.digest:Ljava/security/MessageDigest;
aload 1
iload 4
aload 0
getfield sun.security.provider.HashDrbg.outLen:I
invokevirtual java.security.MessageDigest.digest:([BII)I
pop
11: goto 14
StackMap locals:
StackMap stack: java.security.DigestException
12: astore 6
start local 6 13: new java.lang.AssertionError
dup
ldc "will not happen"
aload 6
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 14: StackMap locals:
StackMap stack:
iload 5
aload 0
getfield sun.security.provider.HashDrbg.outLen:I
isub
istore 5
15: iload 5
ifgt 17
16: goto 22
17: StackMap locals:
StackMap stack:
aload 3
aload 2
if_acmpne 19
18: aload 2
aload 2
arraylength
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 3
19: StackMap locals:
StackMap stack:
aload 3
aload 0
getfield sun.security.provider.HashDrbg.seedLen:I
iconst_1
anewarray byte[]
dup
iconst_0
getstatic sun.security.provider.HashDrbg.ONE:[B
aastore
invokestatic sun.security.provider.HashDrbg.addBytes:([BI[[B)V
20: iload 4
aload 0
getfield sun.security.provider.HashDrbg.outLen:I
iadd
istore 4
21: StackMap locals:
StackMap stack:
iload 5
ifgt 4
22: StackMap locals:
StackMap stack:
return
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 23 0 this Lsun/security/provider/HashDrbg;
0 23 1 output [B
0 23 2 v [B
1 23 3 data [B
2 23 4 pos I
3 23 5 len I
13 14 6 e Ljava/security/DigestException;
Exception table:
from to target type
9 11 12 Class java.security.DigestException
MethodParameters:
Name Flags
output
v
}
SourceFile: "HashDrbg.java"