abstract class com.oracle.security.ucrypto.NativeDigest extends java.security.MessageDigestSpi
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: com.oracle.security.ucrypto.NativeDigest
super_class: java.security.MessageDigestSpi
{
private final int digestLen;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.security.ucrypto.UcryptoMech mech;
descriptor: Lcom/oracle/security/ucrypto/UcryptoMech;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private com.oracle.security.ucrypto.NativeDigest$DigestContextRef pCtxt;
descriptor: Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
flags: (0x0002) ACC_PRIVATE
void <init>(com.oracle.security.ucrypto.UcryptoMech, int);
descriptor: (Lcom/oracle/security/ucrypto/UcryptoMech;I)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.security.MessageDigestSpi.<init>:()V
1: aload 0
aconst_null
putfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
2: aload 0
aload 1
putfield com.oracle.security.ucrypto.NativeDigest.mech:Lcom/oracle/security/ucrypto/UcryptoMech;
3: aload 0
iload 2
putfield com.oracle.security.ucrypto.NativeDigest.digestLen:I
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/security/ucrypto/NativeDigest;
0 5 1 mech Lcom/oracle/security/ucrypto/UcryptoMech;
0 5 2 digestLen I
MethodParameters:
Name Flags
mech
digestLen
protected int engineGetDigestLength();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.security.ucrypto.NativeDigest.digestLen:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/security/ucrypto/NativeDigest;
protected synchronized void engineReset();
descriptor: ()V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
ifnull 3
1: aload 0
getfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
iconst_1
invokevirtual com.oracle.security.ucrypto.NativeDigest$DigestContextRef.dispose:(Z)V
2: aload 0
aconst_null
putfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/security/ucrypto/NativeDigest;
protected synchronized byte[] engineDigest();
descriptor: ()[B
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield com.oracle.security.ucrypto.NativeDigest.digestLen:I
newarray 8
astore 1
start local 1 1: aload 0
aload 1
iconst_0
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.digestLen:I
invokevirtual com.oracle.security.ucrypto.NativeDigest.engineDigest:([BII)I
istore 2
start local 2 2: iload 2
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.digestLen:I
if_icmpeq 6
3: new com.oracle.security.ucrypto.UcryptoException
dup
new java.lang.StringBuilder
dup
ldc "Digest length mismatch. Len: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ". digestLen: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.digestLen:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial com.oracle.security.ucrypto.UcryptoException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: byte[] int
StackMap stack:
aload 1
7: areturn
end local 2 8: StackMap locals: com.oracle.security.ucrypto.NativeDigest byte[]
StackMap stack: java.security.DigestException
astore 2
start local 2 9: new com.oracle.security.ucrypto.UcryptoException
dup
ldc "Internal error"
aload 2
invokespecial com.oracle.security.ucrypto.UcryptoException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/security/ucrypto/NativeDigest;
1 10 1 digest [B
2 8 2 len I
9 10 2 de Ljava/security/DigestException;
Exception table:
from to target type
1 7 8 Class java.security.DigestException
protected synchronized int engineDigest(byte[], int, int);
descriptor: ([BII)I
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.digestLen:I
if_icmpge 4
1: new java.security.DigestException
dup
new java.lang.StringBuilder
dup
ldc "Output buffer must be at least "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
2: aload 0
getfield com.oracle.security.ucrypto.NativeDigest.digestLen:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes long. Got: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 3
invokevirtual java.lang.StringBuilder.append:(I)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 8
5: StackMap locals:
StackMap stack:
new java.security.DigestException
dup
new java.lang.StringBuilder
dup
ldc "Buffer too short to store digest. ofs: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
6: iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ". len: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ". out.length: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.security.DigestException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
ifnonnull 10
9: aload 0
new com.oracle.security.ucrypto.NativeDigest$DigestContextRef
dup
aload 0
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.mech:Lcom/oracle/security/ucrypto/UcryptoMech;
invokevirtual com.oracle.security.ucrypto.UcryptoMech.value:()I
invokestatic com.oracle.security.ucrypto.NativeDigest.nativeInit:(I)J
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.mech:Lcom/oracle/security/ucrypto/UcryptoMech;
invokespecial com.oracle.security.ucrypto.NativeDigest$DigestContextRef.<init>:(Lcom/oracle/security/ucrypto/NativeDigest;JLcom/oracle/security/ucrypto/UcryptoMech;)V
putfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
10: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.mech:Lcom/oracle/security/ucrypto/UcryptoMech;
invokevirtual com.oracle.security.ucrypto.UcryptoMech.value:()I
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
getfield com.oracle.security.ucrypto.NativeDigest$DigestContextRef.id:J
aload 1
iload 2
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.digestLen:I
invokestatic com.oracle.security.ucrypto.NativeDigest.nativeDigest:(IJ[BII)I
istore 4
start local 4 11: iload 4
ifeq 17
12: new java.security.DigestException
dup
new java.lang.StringBuilder
dup
ldc "Internal error: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.DigestException.<init>:(Ljava/lang/String;)V
athrow
end local 4 13: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
14: aload 0
getfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
iconst_0
invokevirtual com.oracle.security.ucrypto.NativeDigest$DigestContextRef.dispose:(Z)V
15: aload 0
aconst_null
putfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
16: aload 5
athrow
17: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
iconst_0
invokevirtual com.oracle.security.ucrypto.NativeDigest$DigestContextRef.dispose:(Z)V
18: aload 0
aconst_null
putfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
19: aload 0
getfield com.oracle.security.ucrypto.NativeDigest.digestLen:I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lcom/oracle/security/ucrypto/NativeDigest;
0 20 1 out [B
0 20 2 ofs I
0 20 3 len I
11 13 4 status I
Exception table:
from to target type
10 13 13 any
Exceptions:
throws java.security.DigestException
MethodParameters:
Name Flags
out
ofs
len
protected synchronized void engineUpdate(byte);
descriptor: (B)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iconst_1
newarray 8
dup
iconst_0
iload 1
bastore
astore 2
start local 2 1: aload 0
aload 2
iconst_0
iconst_1
invokevirtual com.oracle.security.ucrypto.NativeDigest.engineUpdate:([BII)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/security/ucrypto/NativeDigest;
0 3 1 in B
1 3 2 temp [B
MethodParameters:
Name Flags
in
protected synchronized void engineUpdate(byte[], int, int);
descriptor: ([BII)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=7, locals=4, 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 6
3: StackMap locals:
StackMap stack:
new java.lang.ArrayIndexOutOfBoundsException
dup
new java.lang.StringBuilder
dup
ldc "ofs: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ". len: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ". in.length: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
ifnonnull 8
7: aload 0
new com.oracle.security.ucrypto.NativeDigest$DigestContextRef
dup
aload 0
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.mech:Lcom/oracle/security/ucrypto/UcryptoMech;
invokevirtual com.oracle.security.ucrypto.UcryptoMech.value:()I
invokestatic com.oracle.security.ucrypto.NativeDigest.nativeInit:(I)J
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.mech:Lcom/oracle/security/ucrypto/UcryptoMech;
invokespecial com.oracle.security.ucrypto.NativeDigest$DigestContextRef.<init>:(Lcom/oracle/security/ucrypto/NativeDigest;JLcom/oracle/security/ucrypto/UcryptoMech;)V
putfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
8: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.mech:Lcom/oracle/security/ucrypto/UcryptoMech;
invokevirtual com.oracle.security.ucrypto.UcryptoMech.value:()I
aload 0
getfield com.oracle.security.ucrypto.NativeDigest.pCtxt:Lcom/oracle/security/ucrypto/NativeDigest$DigestContextRef;
getfield com.oracle.security.ucrypto.NativeDigest$DigestContextRef.id:J
aload 1
iload 2
iload 3
invokestatic com.oracle.security.ucrypto.NativeDigest.nativeUpdate:(IJ[BII)I
pop
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/security/ucrypto/NativeDigest;
0 10 1 in [B
0 10 2 ofs I
0 10 3 len I
MethodParameters:
Name Flags
in
ofs
len
public synchronized java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.CloneNotSupportedException
dup
ldc "Clone is not supported"
invokespecial java.lang.CloneNotSupportedException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/security/ucrypto/NativeDigest;
Exceptions:
throws java.lang.CloneNotSupportedException
protected static final native long nativeInit(int);
descriptor: (I)J
flags: (0x011c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL, ACC_NATIVE
MethodParameters:
Name Flags
mech
protected static final native int nativeUpdate(int, long, byte[], int, int);
descriptor: (IJ[BII)I
flags: (0x011c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL, ACC_NATIVE
MethodParameters:
Name Flags
mech
pCtxt
in
ofs
inLen
protected static final native int nativeDigest(int, long, byte[], int, int);
descriptor: (IJ[BII)I
flags: (0x011c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL, ACC_NATIVE
MethodParameters:
Name Flags
mech
pCtxt
out
ofs
digestLen
private static final native void nativeFree(int, long);
descriptor: (IJ)V
flags: (0x011a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL, ACC_NATIVE
MethodParameters:
Name Flags
mech
id
}
SourceFile: "NativeDigest.java"
NestMembers:
com.oracle.security.ucrypto.NativeDigest$DigestContextRef com.oracle.security.ucrypto.NativeDigest$MD5 com.oracle.security.ucrypto.NativeDigest$SHA1 com.oracle.security.ucrypto.NativeDigest$SHA224 com.oracle.security.ucrypto.NativeDigest$SHA256 com.oracle.security.ucrypto.NativeDigest$SHA384 com.oracle.security.ucrypto.NativeDigest$SHA3_224 com.oracle.security.ucrypto.NativeDigest$SHA3_256 com.oracle.security.ucrypto.NativeDigest$SHA3_384 com.oracle.security.ucrypto.NativeDigest$SHA3_512 com.oracle.security.ucrypto.NativeDigest$SHA512
InnerClasses:
private DigestContextRef = com.oracle.security.ucrypto.NativeDigest$DigestContextRef of com.oracle.security.ucrypto.NativeDigest
public final MD5 = com.oracle.security.ucrypto.NativeDigest$MD5 of com.oracle.security.ucrypto.NativeDigest
public final SHA1 = com.oracle.security.ucrypto.NativeDigest$SHA1 of com.oracle.security.ucrypto.NativeDigest
public final SHA224 = com.oracle.security.ucrypto.NativeDigest$SHA224 of com.oracle.security.ucrypto.NativeDigest
public final SHA256 = com.oracle.security.ucrypto.NativeDigest$SHA256 of com.oracle.security.ucrypto.NativeDigest
public final SHA384 = com.oracle.security.ucrypto.NativeDigest$SHA384 of com.oracle.security.ucrypto.NativeDigest
public final SHA3_224 = com.oracle.security.ucrypto.NativeDigest$SHA3_224 of com.oracle.security.ucrypto.NativeDigest
public final SHA3_256 = com.oracle.security.ucrypto.NativeDigest$SHA3_256 of com.oracle.security.ucrypto.NativeDigest
public final SHA3_384 = com.oracle.security.ucrypto.NativeDigest$SHA3_384 of com.oracle.security.ucrypto.NativeDigest
public final SHA3_512 = com.oracle.security.ucrypto.NativeDigest$SHA3_512 of com.oracle.security.ucrypto.NativeDigest
public final SHA512 = com.oracle.security.ucrypto.NativeDigest$SHA512 of com.oracle.security.ucrypto.NativeDigest