abstract class sun.security.provider.DigestBase extends java.security.MessageDigestSpi implements java.lang.Cloneable
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: sun.security.provider.DigestBase
super_class: java.security.MessageDigestSpi
{
private byte[] oneByte;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private final java.lang.String algorithm;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int digestLength;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int blockSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
byte[] buffer;
descriptor: [B
flags: (0x0000)
private int bufOfs;
descriptor: I
flags: (0x0002) ACC_PRIVATE
long bytesProcessed;
descriptor: J
flags: (0x0000)
static final byte[] padding;
descriptor: [B
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: sipush 136
newarray 8
putstatic sun.security.provider.DigestBase.padding:[B
1: getstatic sun.security.provider.DigestBase.padding:[B
iconst_0
bipush -128
bastore
2: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.security.MessageDigestSpi.<init>:()V
1: aload 0
aload 1
putfield sun.security.provider.DigestBase.algorithm:Ljava/lang/String;
2: aload 0
iload 2
putfield sun.security.provider.DigestBase.digestLength:I
3: aload 0
iload 3
putfield sun.security.provider.DigestBase.blockSize:I
4: aload 0
iload 3
newarray 8
putfield sun.security.provider.DigestBase.buffer:[B
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/provider/DigestBase;
0 6 1 algorithm Ljava/lang/String;
0 6 2 digestLength I
0 6 3 blockSize I
MethodParameters:
Name Flags
algorithm
digestLength
blockSize
protected final int engineGetDigestLength();
descriptor: ()I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.provider.DigestBase.digestLength:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/provider/DigestBase;
protected final void engineUpdate(byte);
descriptor: (B)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.provider.DigestBase.oneByte:[B
ifnonnull 2
1: aload 0
iconst_1
newarray 8
putfield sun.security.provider.DigestBase.oneByte:[B
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.provider.DigestBase.oneByte:[B
iconst_0
iload 1
bastore
3: aload 0
aload 0
getfield sun.security.provider.DigestBase.oneByte:[B
iconst_0
iconst_1
invokevirtual sun.security.provider.DigestBase.engineUpdate:([BII)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/provider/DigestBase;
0 5 1 b B
MethodParameters:
Name Flags
b
protected final void engineUpdate(byte[], int, int);
descriptor: ([BII)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifne 2
1: return
2: StackMap locals:
StackMap stack:
iload 2
iflt 3
iload 3
iflt 3
iload 2
aload 1
arraylength
iload 3
isub
if_icmple 4
3: StackMap locals:
StackMap stack:
new java.lang.ArrayIndexOutOfBoundsException
dup
invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.provider.DigestBase.bytesProcessed:J
lconst_0
lcmp
ifge 6
5: aload 0
invokevirtual sun.security.provider.DigestBase.engineReset:()V
6: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.security.provider.DigestBase.bytesProcessed:J
iload 3
i2l
ladd
putfield sun.security.provider.DigestBase.bytesProcessed:J
7: aload 0
getfield sun.security.provider.DigestBase.bufOfs:I
ifeq 16
8: iload 3
aload 0
getfield sun.security.provider.DigestBase.blockSize:I
aload 0
getfield sun.security.provider.DigestBase.bufOfs:I
isub
invokestatic java.lang.Math.min:(II)I
istore 4
start local 4 9: aload 1
iload 2
aload 0
getfield sun.security.provider.DigestBase.buffer:[B
aload 0
getfield sun.security.provider.DigestBase.bufOfs:I
iload 4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 0
dup
getfield sun.security.provider.DigestBase.bufOfs:I
iload 4
iadd
putfield sun.security.provider.DigestBase.bufOfs:I
11: iload 2
iload 4
iadd
istore 2
12: iload 3
iload 4
isub
istore 3
13: aload 0
getfield sun.security.provider.DigestBase.bufOfs:I
aload 0
getfield sun.security.provider.DigestBase.blockSize:I
if_icmplt 16
14: aload 0
aload 0
getfield sun.security.provider.DigestBase.buffer:[B
iconst_0
invokevirtual sun.security.provider.DigestBase.implCompress:([BI)V
15: aload 0
iconst_0
putfield sun.security.provider.DigestBase.bufOfs:I
end local 4 16: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield sun.security.provider.DigestBase.blockSize:I
if_icmplt 20
17: iload 2
iload 3
iadd
istore 4
start local 4 18: aload 0
aload 1
iload 2
iload 4
aload 0
getfield sun.security.provider.DigestBase.blockSize:I
isub
invokevirtual sun.security.provider.DigestBase.implCompressMultiBlock:([BII)I
istore 2
19: iload 4
iload 2
isub
istore 3
end local 4 20: StackMap locals:
StackMap stack:
iload 3
ifle 23
21: aload 1
iload 2
aload 0
getfield sun.security.provider.DigestBase.buffer:[B
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
22: aload 0
iload 3
putfield sun.security.provider.DigestBase.bufOfs:I
23: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/security/provider/DigestBase;
0 24 1 b [B
0 24 2 ofs I
0 24 3 len I
9 16 4 n I
18 20 4 limit I
MethodParameters:
Name Flags
b
ofs
len
private int implCompressMultiBlock(byte[], int, int);
descriptor: ([BII)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
invokevirtual sun.security.provider.DigestBase.implCompressMultiBlockCheck:([BII)V
1: aload 0
aload 1
iload 2
iload 3
invokevirtual sun.security.provider.DigestBase.implCompressMultiBlock0:([BII)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/provider/DigestBase;
0 2 1 b [B
0 2 2 ofs I
0 2 3 limit I
MethodParameters:
Name Flags
b
ofs
limit
private int implCompressMultiBlock0(byte[], int, int);
descriptor: ([BII)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: goto 3
1: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
invokevirtual sun.security.provider.DigestBase.implCompress:([BI)V
2: iload 2
aload 0
getfield sun.security.provider.DigestBase.blockSize:I
iadd
istore 2
StackMap locals:
StackMap stack:
3: iload 2
iload 3
if_icmple 1
4: iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/provider/DigestBase;
0 5 1 b [B
0 5 2 ofs I
0 5 3 limit I
RuntimeVisibleAnnotations:
jdk.internal.HotSpotIntrinsicCandidate()
MethodParameters:
Name Flags
b
ofs
limit
private void implCompressMultiBlockCheck(byte[], int, int);
descriptor: ([BII)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifge 2
1: return
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: iload 2
iflt 4
iload 2
aload 1
arraylength
if_icmplt 5
4: StackMap locals:
StackMap stack:
new java.lang.ArrayIndexOutOfBoundsException
dup
iload 2
invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(I)V
athrow
5: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield sun.security.provider.DigestBase.blockSize:I
idiv
aload 0
getfield sun.security.provider.DigestBase.blockSize:I
imul
aload 0
getfield sun.security.provider.DigestBase.blockSize:I
iadd
iconst_1
isub
istore 4
start local 4 6: iload 4
aload 1
arraylength
if_icmplt 8
7: new java.lang.ArrayIndexOutOfBoundsException
dup
iload 4
invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(I)V
athrow
8: StackMap locals: int
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/provider/DigestBase;
0 9 1 b [B
0 9 2 ofs I
0 9 3 limit I
6 9 4 endIndex I
MethodParameters:
Name Flags
b
ofs
limit
protected final void engineReset();
descriptor: ()V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.provider.DigestBase.bytesProcessed:J
lconst_0
lcmp
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.provider.DigestBase.implReset:()V
3: aload 0
iconst_0
putfield sun.security.provider.DigestBase.bufOfs:I
4: aload 0
lconst_0
putfield sun.security.provider.DigestBase.bytesProcessed:J
5: aload 0
getfield sun.security.provider.DigestBase.buffer:[B
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/provider/DigestBase;
protected final byte[] engineDigest();
descriptor: ()[B
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.security.provider.DigestBase.digestLength:I
newarray 8
astore 1
start local 1 1: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual sun.security.provider.DigestBase.engineDigest:([BII)I
pop
2: goto 6
StackMap locals: sun.security.provider.DigestBase byte[]
StackMap stack: java.security.DigestException
3: astore 2
start local 2 4: new java.security.ProviderException
dup
ldc "Internal error"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.security.ProviderException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
5: checkcast java.security.ProviderException
athrow
end local 2 6: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/provider/DigestBase;
1 7 1 b [B
4 6 2 e Ljava/security/DigestException;
Exception table:
from to target type
1 2 3 Class java.security.DigestException
protected final int engineDigest(byte[], int, int);
descriptor: ([BII)I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
aload 0
getfield sun.security.provider.DigestBase.digestLength:I
if_icmpge 4
1: new java.security.DigestException
dup
new java.lang.StringBuilder
dup
ldc "Length must be at least "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
2: aload 0
getfield sun.security.provider.DigestBase.digestLength:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " for "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.provider.DigestBase.algorithm:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "digests"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.security.DigestException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iload 2
iflt 5
iload 3
iflt 5
iload 2
aload 1
arraylength
iload 3
isub
if_icmple 6
5: StackMap locals:
StackMap stack:
new java.security.DigestException
dup
ldc "Buffer too short to store digest"
invokespecial java.security.DigestException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.provider.DigestBase.bytesProcessed:J
lconst_0
lcmp
ifge 8
7: aload 0
invokevirtual sun.security.provider.DigestBase.engineReset:()V
8: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
invokevirtual sun.security.provider.DigestBase.implDigest:([BI)V
9: aload 0
ldc -1
putfield sun.security.provider.DigestBase.bytesProcessed:J
10: aload 0
getfield sun.security.provider.DigestBase.digestLength:I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/provider/DigestBase;
0 11 1 out [B
0 11 2 ofs I
0 11 3 len I
Exceptions:
throws java.security.DigestException
MethodParameters:
Name Flags
out
ofs
len
abstract void implCompress(byte[], int);
descriptor: ([BI)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
b
ofs
abstract void implDigest(byte[], int);
descriptor: ([BI)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
out
ofs
abstract void implReset();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
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 java.security.MessageDigestSpi.clone:()Ljava/lang/Object;
checkcast sun.security.provider.DigestBase
astore 1
start local 1 1: aload 1
aload 1
getfield sun.security.provider.DigestBase.buffer:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
putfield sun.security.provider.DigestBase.buffer:[B
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/provider/DigestBase;
1 3 1 copy Lsun/security/provider/DigestBase;
Exceptions:
throws java.lang.CloneNotSupportedException
}
SourceFile: "DigestBase.java"