public abstract class com.oracle.security.ucrypto.NativeDigestMD extends java.security.MessageDigestSpi implements java.lang.Cloneable
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.oracle.security.ucrypto.NativeDigestMD
super_class: java.security.MessageDigestSpi
{
private static final int MECH_MD5;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int MECH_SHA1;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int MECH_SHA256;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int MECH_SHA224;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int MECH_SHA384;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private static final int MECH_SHA512;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6
private final int digestLen;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int mech;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef pCtxt;
descriptor: Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
flags: (0x0002) ACC_PRIVATE
void <init>(int, int);
descriptor: (II)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.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
2: aload 0
iload 2
putfield com.oracle.security.ucrypto.NativeDigestMD.digestLen:I
3: aload 0
iload 1
putfield com.oracle.security.ucrypto.NativeDigestMD.mech: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/NativeDigestMD;
0 5 1 mech I
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.NativeDigestMD.digestLen:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/security/ucrypto/NativeDigestMD;
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.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
ifnull 3
1: aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
iconst_1
invokevirtual com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef.dispose:(Z)V
2: aload 0
aconst_null
putfield com.oracle.security.ucrypto.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/security/ucrypto/NativeDigestMD;
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.NativeDigestMD.digestLen:I
newarray 8
astore 1
start local 1 1: aload 0
aload 1
iconst_0
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.digestLen:I
invokevirtual com.oracle.security.ucrypto.NativeDigestMD.engineDigest:([BII)I
istore 2
start local 2 2: iload 2
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.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.NativeDigestMD.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.NativeDigestMD 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/NativeDigestMD;
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.NativeDigestMD.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.NativeDigestMD.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.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
ifnonnull 10
9: aload 0
new com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef
dup
aload 0
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.mech:I
invokestatic com.oracle.security.ucrypto.NativeDigestMD.nativeInit:(I)J
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.mech:I
invokespecial com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef.<init>:(Lcom/oracle/security/ucrypto/NativeDigestMD;JI)V
putfield com.oracle.security.ucrypto.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
10: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.mech:I
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
getfield com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef.id:J
aload 1
iload 2
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.digestLen:I
invokestatic com.oracle.security.ucrypto.NativeDigestMD.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.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
iconst_0
invokevirtual com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef.dispose:(Z)V
15: aload 0
aconst_null
putfield com.oracle.security.ucrypto.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
16: aload 5
athrow
17: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
iconst_0
invokevirtual com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef.dispose:(Z)V
18: aload 0
aconst_null
putfield com.oracle.security.ucrypto.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
19: aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.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/NativeDigestMD;
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.NativeDigestMD.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/NativeDigestMD;
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.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
ifnonnull 8
7: aload 0
new com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef
dup
aload 0
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.mech:I
invokestatic com.oracle.security.ucrypto.NativeDigestMD.nativeInit:(I)J
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.mech:I
invokespecial com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef.<init>:(Lcom/oracle/security/ucrypto/NativeDigestMD;JI)V
putfield com.oracle.security.ucrypto.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
8: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.mech:I
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
getfield com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef.id:J
aload 1
iload 2
iload 3
invokestatic com.oracle.security.ucrypto.NativeDigestMD.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/NativeDigestMD;
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=7, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.security.MessageDigestSpi.clone:()Ljava/lang/Object;
checkcast com.oracle.security.ucrypto.NativeDigestMD
astore 1
start local 1 1: aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
ifnull 3
2: aload 1
new com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef
dup
aload 0
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.mech:I
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
getfield com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef.id:J
invokestatic com.oracle.security.ucrypto.NativeDigestMD.nativeClone:(IJ)J
aload 0
getfield com.oracle.security.ucrypto.NativeDigestMD.mech:I
invokespecial com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef.<init>:(Lcom/oracle/security/ucrypto/NativeDigestMD;JI)V
putfield com.oracle.security.ucrypto.NativeDigestMD.pCtxt:Lcom/oracle/security/ucrypto/NativeDigestMD$DigestContextRef;
3: StackMap locals: com.oracle.security.ucrypto.NativeDigestMD
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/security/ucrypto/NativeDigestMD;
1 4 1 copy Lcom/oracle/security/ucrypto/NativeDigestMD;
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
protected static final native long nativeClone(int, long);
descriptor: (IJ)J
flags: (0x011c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL, ACC_NATIVE
MethodParameters:
Name Flags
mech
pCtxt
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: "NativeDigestMD.java"
NestMembers:
com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef com.oracle.security.ucrypto.NativeDigestMD$MD5 com.oracle.security.ucrypto.NativeDigestMD$SHA1 com.oracle.security.ucrypto.NativeDigestMD$SHA256 com.oracle.security.ucrypto.NativeDigestMD$SHA384 com.oracle.security.ucrypto.NativeDigestMD$SHA512
InnerClasses:
private DigestContextRef = com.oracle.security.ucrypto.NativeDigestMD$DigestContextRef of com.oracle.security.ucrypto.NativeDigestMD
public final MD5 = com.oracle.security.ucrypto.NativeDigestMD$MD5 of com.oracle.security.ucrypto.NativeDigestMD
public final SHA1 = com.oracle.security.ucrypto.NativeDigestMD$SHA1 of com.oracle.security.ucrypto.NativeDigestMD
public final SHA256 = com.oracle.security.ucrypto.NativeDigestMD$SHA256 of com.oracle.security.ucrypto.NativeDigestMD
public final SHA384 = com.oracle.security.ucrypto.NativeDigestMD$SHA384 of com.oracle.security.ucrypto.NativeDigestMD
public final SHA512 = com.oracle.security.ucrypto.NativeDigestMD$SHA512 of com.oracle.security.ucrypto.NativeDigestMD