public abstract class sun.security.provider.AbstractHashDrbg extends sun.security.provider.AbstractDrbg
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.security.provider.AbstractHashDrbg
super_class: sun.security.provider.AbstractDrbg
{
protected int outLen;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int seedLen;
descriptor: I
flags: (0x0004) ACC_PROTECTED
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial sun.security.provider.AbstractDrbg.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/provider/AbstractHashDrbg;
private static int alg2strength(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
dup
astore 1
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 6
-1523887821: 1
-1523887726: 2
-1523886674: 3
-1523884971: 4
752961850: 5
752961945: 6
default: 9
}
StackMap locals: java.lang.String
StackMap stack:
1: aload 1
ldc "SHA-224"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
goto 9
StackMap locals:
StackMap stack:
2: aload 1
ldc "SHA-256"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
goto 9
StackMap locals:
StackMap stack:
3: aload 1
ldc "SHA-384"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
goto 9
StackMap locals:
StackMap stack:
4: aload 1
ldc "SHA-512"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
goto 9
StackMap locals:
StackMap stack:
5: aload 1
ldc "SHA-512/224"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
goto 9
StackMap locals:
StackMap stack:
6: aload 1
ldc "SHA-512/256"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
goto 9
7: StackMap locals:
StackMap stack:
sipush 192
ireturn
8: StackMap locals:
StackMap stack:
sipush 256
ireturn
9: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
10: ldc " not supported in Hash_DBRG"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 algorithm Ljava/lang/String;
MethodParameters:
Name Flags
algorithm
protected void chooseAlgorithmAndStrength();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.security.provider.AbstractHashDrbg.requestedAlgorithm:Ljava/lang/String;
ifnull 18
1: aload 0
aload 0
getfield sun.security.provider.AbstractHashDrbg.requestedAlgorithm:Ljava/lang/String;
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
putfield sun.security.provider.AbstractHashDrbg.algorithm:Ljava/lang/String;
2: aload 0
getfield sun.security.provider.AbstractHashDrbg.algorithm:Ljava/lang/String;
invokestatic sun.security.provider.AbstractHashDrbg.alg2strength:(Ljava/lang/String;)I
istore 1
start local 1 3: aload 0
getfield sun.security.provider.AbstractHashDrbg.requestedInstantiationSecurityStrength:I
iflt 13
4: aload 0
getfield sun.security.provider.AbstractHashDrbg.requestedInstantiationSecurityStrength:I
5: invokestatic sun.security.provider.AbstractHashDrbg.getStandardStrength:(I)I
istore 2
start local 2 6: iload 2
iload 1
if_icmple 11
7: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 0
getfield sun.security.provider.AbstractHashDrbg.algorithm:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: ldc " does not support strength "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: aload 0
getfield sun.security.provider.AbstractHashDrbg.requestedInstantiationSecurityStrength:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: int int
StackMap stack:
aload 0
iload 2
putfield sun.security.provider.AbstractHashDrbg.securityStrength:I
end local 2 12: goto 25
13: StackMap locals:
StackMap stack:
aload 0
sipush 128
iload 1
if_icmple 15
14: iload 1
goto 16
StackMap locals:
StackMap stack: sun.security.provider.AbstractHashDrbg
15: sipush 128
16: StackMap locals: sun.security.provider.AbstractHashDrbg int
StackMap stack: sun.security.provider.AbstractHashDrbg int
putfield sun.security.provider.AbstractHashDrbg.securityStrength:I
end local 1 17: goto 25
18: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.provider.AbstractHashDrbg.requestedInstantiationSecurityStrength:I
ifge 20
19: sipush 128
goto 21
StackMap locals:
StackMap stack:
20: aload 0
getfield sun.security.provider.AbstractHashDrbg.requestedInstantiationSecurityStrength:I
21: StackMap locals:
StackMap stack: int
istore 1
start local 1 22: iload 1
invokestatic sun.security.provider.AbstractHashDrbg.getStandardStrength:(I)I
istore 1
23: aload 0
ldc "SHA-256"
putfield sun.security.provider.AbstractHashDrbg.algorithm:Ljava/lang/String;
24: aload 0
iload 1
putfield sun.security.provider.AbstractHashDrbg.securityStrength:I
end local 1 25: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.provider.AbstractHashDrbg.algorithm:Ljava/lang/String;
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
dup
astore 1
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 6
-1523887821: 26
-1523887726: 27
-1523886674: 28
-1523884971: 29
752961850: 30
752961945: 31
default: 44
}
StackMap locals: java.lang.String
StackMap stack:
26: aload 1
ldc "SHA-224"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 32
goto 44
StackMap locals:
StackMap stack:
27: aload 1
ldc "SHA-256"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 35
goto 44
StackMap locals:
StackMap stack:
28: aload 1
ldc "SHA-384"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 38
goto 44
StackMap locals:
StackMap stack:
29: aload 1
ldc "SHA-512"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 41
goto 44
StackMap locals:
StackMap stack:
30: aload 1
ldc "SHA-512/224"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 32
goto 44
StackMap locals:
StackMap stack:
31: aload 1
ldc "SHA-512/256"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 35
goto 44
32: StackMap locals:
StackMap stack:
aload 0
bipush 55
putfield sun.security.provider.AbstractHashDrbg.seedLen:I
33: aload 0
bipush 28
putfield sun.security.provider.AbstractHashDrbg.outLen:I
34: goto 47
35: StackMap locals:
StackMap stack:
aload 0
bipush 55
putfield sun.security.provider.AbstractHashDrbg.seedLen:I
36: aload 0
bipush 32
putfield sun.security.provider.AbstractHashDrbg.outLen:I
37: goto 47
38: StackMap locals:
StackMap stack:
aload 0
bipush 111
putfield sun.security.provider.AbstractHashDrbg.seedLen:I
39: aload 0
bipush 48
putfield sun.security.provider.AbstractHashDrbg.outLen:I
40: goto 47
41: StackMap locals:
StackMap stack:
aload 0
bipush 111
putfield sun.security.provider.AbstractHashDrbg.seedLen:I
42: aload 0
bipush 64
putfield sun.security.provider.AbstractHashDrbg.outLen:I
43: goto 47
44: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 0
getfield sun.security.provider.AbstractHashDrbg.algorithm:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
45: ldc " not supported in Hash_DBRG"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
46: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
47: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.security.provider.AbstractHashDrbg.securityStrength:I
bipush 8
idiv
putfield sun.security.provider.AbstractHashDrbg.minLength:I
48: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 49 0 this Lsun/security/provider/AbstractHashDrbg;
3 17 1 supportedStrength I
6 12 2 tryStrength I
22 25 1 tryStrength I
public void instantiateAlgorithm(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: getstatic sun.security.provider.AbstractHashDrbg.debug:Lsun/security/util/Debug;
ifnull 2
1: getstatic sun.security.provider.AbstractHashDrbg.debug:Lsun/security/util/Debug;
aload 0
ldc "instantiate"
invokevirtual sun.security.util.Debug.println:(Ljava/lang/Object;Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
iconst_3
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 3: aload 2
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: aload 2
aload 0
getfield sun.security.provider.AbstractHashDrbg.nonce:[B
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: aload 0
getfield sun.security.provider.AbstractHashDrbg.personalizationString:[B
ifnull 7
6: aload 2
aload 0
getfield sun.security.provider.AbstractHashDrbg.personalizationString:[B
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: StackMap locals: java.util.List
StackMap stack:
aload 0
aload 2
invokevirtual sun.security.provider.AbstractHashDrbg.hashReseedInternal:(Ljava/util/List;)V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/provider/AbstractHashDrbg;
0 9 1 entropy [B
3 9 2 inputs Ljava/util/List<[B>;
MethodParameters:
Name Flags
entropy
protected void reseedAlgorithm(byte[], byte[]);
descriptor: ([B[B)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.security.provider.AbstractHashDrbg.debug:Lsun/security/util/Debug;
ifnull 7
1: getstatic sun.security.provider.AbstractHashDrbg.debug:Lsun/security/util/Debug;
aload 0
new java.lang.StringBuilder
dup
ldc "reseedAlgorithm\n"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
2: new sun.security.util.HexDumpEncoder
dup
invokespecial sun.security.util.HexDumpEncoder.<init>:()V
aload 1
invokevirtual sun.security.util.HexDumpEncoder.encodeBuffer:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: aload 2
ifnonnull 4
ldc ""
goto 5
4: StackMap locals: sun.security.provider.AbstractHashDrbg byte[] byte[]
StackMap stack: sun.security.util.Debug sun.security.provider.AbstractHashDrbg java.lang.StringBuilder
new sun.security.util.HexDumpEncoder
dup
invokespecial sun.security.util.HexDumpEncoder.<init>:()V
aload 2
invokevirtual sun.security.util.HexDumpEncoder.encodeBuffer:([B)Ljava/lang/String;
5: StackMap locals: sun.security.provider.AbstractHashDrbg byte[] byte[]
StackMap stack: sun.security.util.Debug sun.security.provider.AbstractHashDrbg java.lang.StringBuilder java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokevirtual sun.security.util.Debug.println:(Ljava/lang/Object;Ljava/lang/String;)V
7: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
iconst_2
invokespecial java.util.ArrayList.<init>:(I)V
astore 3
start local 3 8: aload 3
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
9: aload 2
ifnull 11
10: aload 3
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
11: StackMap locals: java.util.List
StackMap stack:
aload 0
aload 3
invokevirtual sun.security.provider.AbstractHashDrbg.hashReseedInternal:(Ljava/util/List;)V
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/security/provider/AbstractHashDrbg;
0 13 1 ei [B
0 13 2 additionalInput [B
8 13 3 inputs Ljava/util/List<[B>;
MethodParameters:
Name Flags
ei
additionalInput
protected abstract void hashReseedInternal(java.util.List<byte[]>);
descriptor: (Ljava/util/List;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (Ljava/util/List<[B>;)V
MethodParameters:
Name Flags
inputs
}
SourceFile: "AbstractHashDrbg.java"