final class sun.security.pkcs11.P11Digest extends java.security.MessageDigestSpi implements java.lang.Cloneable, sun.security.util.MessageDigestSpi2
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.P11Digest
super_class: java.security.MessageDigestSpi
{
private static final int S_BLANK;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int S_BUFFERED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int S_INIT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 96
private final sun.security.pkcs11.Token token;
descriptor: Lsun/security/pkcs11/Token;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String algorithm;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final sun.security.pkcs11.wrapper.CK_MECHANISM mechanism;
descriptor: Lsun/security/pkcs11/wrapper/CK_MECHANISM;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int digestLength;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private sun.security.pkcs11.Session session;
descriptor: Lsun/security/pkcs11/Session;
flags: (0x0002) ACC_PRIVATE
private int state;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] buffer;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int bufOfs;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(sun.security.pkcs11.Token, java.lang.String, long);
descriptor: (Lsun/security/pkcs11/Token;Ljava/lang/String;J)V
flags: (0x0000)
Code:
stack=5, locals=5, 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.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
2: aload 0
aload 2
putfield sun.security.pkcs11.P11Digest.algorithm:Ljava/lang/String;
3: aload 0
new sun.security.pkcs11.wrapper.CK_MECHANISM
dup
lload 3
invokespecial sun.security.pkcs11.wrapper.CK_MECHANISM.<init>:(J)V
putfield sun.security.pkcs11.P11Digest.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
4: lload 3
l2i
lookupswitch { // 7
512: 5
528: 5
544: 7
592: 11
597: 9
608: 13
624: 15
default: 17
}
5: StackMap locals: sun.security.pkcs11.P11Digest sun.security.pkcs11.Token java.lang.String long
StackMap stack:
aload 0
bipush 16
putfield sun.security.pkcs11.P11Digest.digestLength:I
6: goto 18
7: StackMap locals:
StackMap stack:
aload 0
bipush 20
putfield sun.security.pkcs11.P11Digest.digestLength:I
8: goto 18
9: StackMap locals:
StackMap stack:
aload 0
bipush 28
putfield sun.security.pkcs11.P11Digest.digestLength:I
10: goto 18
11: StackMap locals:
StackMap stack:
aload 0
bipush 32
putfield sun.security.pkcs11.P11Digest.digestLength:I
12: goto 18
13: StackMap locals:
StackMap stack:
aload 0
bipush 48
putfield sun.security.pkcs11.P11Digest.digestLength:I
14: goto 18
15: StackMap locals:
StackMap stack:
aload 0
bipush 64
putfield sun.security.pkcs11.P11Digest.digestLength:I
16: goto 18
17: StackMap locals:
StackMap stack:
new java.security.ProviderException
dup
new java.lang.StringBuilder
dup
ldc "Unknown mechanism: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 3
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack:
aload 0
bipush 96
newarray 8
putfield sun.security.pkcs11.P11Digest.buffer:[B
19: aload 0
iconst_1
putfield sun.security.pkcs11.P11Digest.state:I
20: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/security/pkcs11/P11Digest;
0 21 1 token Lsun/security/pkcs11/Token;
0 21 2 algorithm Ljava/lang/String;
0 21 3 mechanism J
MethodParameters:
Name Flags
token
algorithm
mechanism
protected int engineGetDigestLength();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11Digest.digestLength:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/P11Digest;
private void fetchSession();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.ensureValid:()V
1: aload 0
getfield sun.security.pkcs11.P11Digest.state:I
iconst_1
if_icmpne 7
2: aload 0
aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getOpSession:()Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
3: aload 0
iconst_2
putfield sun.security.pkcs11.P11Digest.state:I
4: goto 7
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
5: astore 1
start local 1 6: new java.security.ProviderException
dup
ldc "No more session available"
aload 1
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/pkcs11/P11Digest;
6 7 1 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
2 4 5 Class sun.security.pkcs11.wrapper.PKCS11Exception
protected void engineReset();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.ensureValid:()V
1: aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
ifnull 6
2: aload 0
getfield sun.security.pkcs11.P11Digest.state:I
iconst_3
if_icmpne 5
aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.explicitCancel:Z
ifeq 5
3: aload 0
aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Token.killSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
4: goto 6
5: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
6: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.security.pkcs11.P11Digest.state:I
7: aload 0
iconst_0
putfield sun.security.pkcs11.P11Digest.bufOfs:I
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/pkcs11/P11Digest;
protected byte[] engineDigest();
descriptor: ()[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11Digest.digestLength:I
newarray 8
astore 1
start local 1 1: aload 0
aload 1
iconst_0
aload 0
getfield sun.security.pkcs11.P11Digest.digestLength:I
invokevirtual sun.security.pkcs11.P11Digest.engineDigest:([BII)I
pop
2: aload 1
3: areturn
end local 1 4: StackMap locals:
StackMap stack: java.security.DigestException
astore 1
start local 1 5: new java.security.ProviderException
dup
ldc "internal error"
aload 1
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/pkcs11/P11Digest;
1 4 1 digest [B
5 6 1 e Ljava/security/DigestException;
Exception table:
from to target type
0 3 4 Class java.security.DigestException
protected int engineDigest(byte[], int, int);
descriptor: ([BII)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=10, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
aload 0
getfield sun.security.pkcs11.P11Digest.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.pkcs11.P11Digest.digestLength:I
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:
aload 0
invokevirtual sun.security.pkcs11.P11Digest.fetchSession:()V
5: aload 0
getfield sun.security.pkcs11.P11Digest.state:I
iconst_2
if_icmpne 11
6: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 0
getfield sun.security.pkcs11.P11Digest.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
aload 0
getfield sun.security.pkcs11.P11Digest.buffer:[B
iconst_0
7: aload 0
getfield sun.security.pkcs11.P11Digest.bufOfs:I
aload 1
iload 2
iload 3
8: invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DigestSingle:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;[BII[BII)I
istore 4
start local 4 9: aload 0
iconst_0
putfield sun.security.pkcs11.P11Digest.bufOfs:I
10: goto 17
end local 4 11: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Digest.bufOfs:I
ifeq 16
12: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
lconst_0
aload 0
getfield sun.security.pkcs11.P11Digest.buffer:[B
iconst_0
13: aload 0
getfield sun.security.pkcs11.P11Digest.bufOfs:I
14: invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DigestUpdate:(JJ[BII)V
15: aload 0
iconst_0
putfield sun.security.pkcs11.P11Digest.bufOfs:I
16: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 1
iload 2
iload 3
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DigestFinal:(J[BII)I
istore 4
start local 4 17: StackMap locals: int
StackMap stack:
iload 4
aload 0
getfield sun.security.pkcs11.P11Digest.digestLength:I
if_icmpeq 19
18: new java.security.ProviderException
dup
ldc "internal digest length error"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
iload 4
istore 6
20: aload 0
invokevirtual sun.security.pkcs11.P11Digest.engineReset:()V
21: iload 6
ireturn
end local 4 22: StackMap locals: sun.security.pkcs11.P11Digest byte[] int int
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 4
start local 4 23: new java.security.ProviderException
dup
ldc "digest() failed"
aload 4
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 24: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
25: aload 0
invokevirtual sun.security.pkcs11.P11Digest.engineReset:()V
26: aload 5
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/security/pkcs11/P11Digest;
0 27 1 digest [B
0 27 2 ofs I
0 27 3 len I
9 11 4 n I
17 22 4 n I
23 24 4 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
5 20 22 Class sun.security.pkcs11.wrapper.PKCS11Exception
5 20 24 any
22 24 24 any
Exceptions:
throws java.security.DigestException
MethodParameters:
Name Flags
digest
ofs
len
protected void engineUpdate(byte);
descriptor: (B)V
flags: (0x0004) ACC_PROTECTED
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 sun.security.pkcs11.P11Digest.engineUpdate:([BII)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/pkcs11/P11Digest;
0 3 1 in B
1 3 2 temp [B
MethodParameters:
Name Flags
in
protected void engineUpdate(byte[], int, int);
descriptor: ([BII)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifgt 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.pkcs11.P11Digest.fetchSession:()V
3: aload 0
getfield sun.security.pkcs11.P11Digest.state:I
iconst_2
if_icmpne 6
4: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 0
getfield sun.security.pkcs11.P11Digest.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DigestInit:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;)V
5: aload 0
iconst_3
putfield sun.security.pkcs11.P11Digest.state:I
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Digest.bufOfs:I
ifeq 9
aload 0
getfield sun.security.pkcs11.P11Digest.bufOfs:I
iload 3
iadd
aload 0
getfield sun.security.pkcs11.P11Digest.buffer:[B
arraylength
if_icmple 9
7: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
lconst_0
aload 0
getfield sun.security.pkcs11.P11Digest.buffer:[B
iconst_0
aload 0
getfield sun.security.pkcs11.P11Digest.bufOfs:I
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DigestUpdate:(JJ[BII)V
8: aload 0
iconst_0
putfield sun.security.pkcs11.P11Digest.bufOfs:I
9: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Digest.bufOfs:I
iload 3
iadd
aload 0
getfield sun.security.pkcs11.P11Digest.buffer:[B
arraylength
if_icmple 12
10: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
lconst_0
aload 1
iload 2
iload 3
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DigestUpdate:(JJ[BII)V
11: goto 18
12: StackMap locals:
StackMap stack:
aload 1
iload 2
aload 0
getfield sun.security.pkcs11.P11Digest.buffer:[B
aload 0
getfield sun.security.pkcs11.P11Digest.bufOfs:I
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: aload 0
dup
getfield sun.security.pkcs11.P11Digest.bufOfs:I
iload 3
iadd
putfield sun.security.pkcs11.P11Digest.bufOfs:I
14: goto 18
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
15: astore 4
start local 4 16: aload 0
invokevirtual sun.security.pkcs11.P11Digest.engineReset:()V
17: new java.security.ProviderException
dup
ldc "update() failed"
aload 4
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 18: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/security/pkcs11/P11Digest;
0 19 1 in [B
0 19 2 ofs I
0 19 3 len I
16 18 4 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
3 14 15 Class sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
in
ofs
len
public void engineUpdate(javax.crypto.SecretKey);
descriptor: (Ljavax/crypto/SecretKey;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof sun.security.pkcs11.P11Key
ifne 2
1: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "Not a P11Key: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
checkcast sun.security.pkcs11.P11Key
astore 2
start local 2 3: aload 2
getfield sun.security.pkcs11.P11Key.token:Lsun/security/pkcs11/Token;
aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
if_acmpeq 7
4: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "Not a P11Key of this provider: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: sun.security.pkcs11.P11Key
StackMap stack:
aload 0
invokevirtual sun.security.pkcs11.P11Digest.fetchSession:()V
8: aload 0
getfield sun.security.pkcs11.P11Digest.state:I
iconst_2
if_icmpne 11
9: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 0
getfield sun.security.pkcs11.P11Digest.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DigestInit:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;)V
10: aload 0
iconst_3
putfield sun.security.pkcs11.P11Digest.state:I
11: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Digest.bufOfs:I
ifeq 14
12: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
lconst_0
aload 0
getfield sun.security.pkcs11.P11Digest.buffer:[B
iconst_0
aload 0
getfield sun.security.pkcs11.P11Digest.bufOfs:I
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DigestUpdate:(JJ[BII)V
13: aload 0
iconst_0
putfield sun.security.pkcs11.P11Digest.bufOfs:I
14: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 2
getfield sun.security.pkcs11.P11Key.keyID:J
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DigestKey:(JJ)V
15: goto 19
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
16: astore 3
start local 3 17: aload 0
invokevirtual sun.security.pkcs11.P11Digest.engineReset:()V
18: new java.security.ProviderException
dup
ldc "update(SecretKey) failed"
aload 3
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 19: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/security/pkcs11/P11Digest;
0 20 1 key Ljavax/crypto/SecretKey;
3 20 2 p11Key Lsun/security/pkcs11/P11Key;
17 19 3 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
8 15 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected void engineUpdate(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 2
start local 2 1: iload 2
ifgt 3
2: return
3: StackMap locals: int
StackMap stack:
aload 1
instanceof sun.nio.ch.DirectBuffer
ifne 6
4: aload 0
aload 1
invokespecial java.security.MessageDigestSpi.engineUpdate:(Ljava/nio/ByteBuffer;)V
5: return
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.pkcs11.P11Digest.fetchSession:()V
7: aload 1
checkcast sun.nio.ch.DirectBuffer
invokeinterface sun.nio.ch.DirectBuffer.address:()J
lstore 3
start local 3 8: aload 1
invokevirtual java.nio.ByteBuffer.position:()I
istore 5
start local 5 9: aload 0
getfield sun.security.pkcs11.P11Digest.state:I
iconst_2
if_icmpne 12
10: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 0
getfield sun.security.pkcs11.P11Digest.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DigestInit:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;)V
11: aload 0
iconst_3
putfield sun.security.pkcs11.P11Digest.state:I
12: StackMap locals: long int
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Digest.bufOfs:I
ifeq 15
13: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
lconst_0
aload 0
getfield sun.security.pkcs11.P11Digest.buffer:[B
iconst_0
aload 0
getfield sun.security.pkcs11.P11Digest.bufOfs:I
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DigestUpdate:(JJ[BII)V
14: aload 0
iconst_0
putfield sun.security.pkcs11.P11Digest.bufOfs:I
15: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
lload 3
iload 5
i2l
ladd
aconst_null
iconst_0
iload 2
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DigestUpdate:(JJ[BII)V
16: aload 1
iload 5
iload 2
iadd
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
17: goto 21
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
18: astore 6
start local 6 19: aload 0
invokevirtual sun.security.pkcs11.P11Digest.engineReset:()V
20: new java.security.ProviderException
dup
ldc "update() failed"
aload 6
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 21: StackMap locals:
StackMap stack:
return
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/security/pkcs11/P11Digest;
0 22 1 byteBuffer Ljava/nio/ByteBuffer;
1 22 2 len I
8 22 3 addr J
9 22 5 ofs I
19 21 6 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
9 17 18 Class sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
byteBuffer
public java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=1
start local 0 0: aload 0
invokespecial java.security.MessageDigestSpi.clone:()Ljava/lang/Object;
checkcast sun.security.pkcs11.P11Digest
astore 1
start local 1 1: aload 1
aload 0
getfield sun.security.pkcs11.P11Digest.buffer:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
putfield sun.security.pkcs11.P11Digest.buffer:[B
2: aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
ifnull 4
3: aload 1
aload 1
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getOpSession:()Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
4: StackMap locals: sun.security.pkcs11.P11Digest
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11Digest.state:I
iconst_3
if_icmpne 14
5: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_GetOperationState:(J)[B
6: astore 2
start local 2 7: aload 0
getfield sun.security.pkcs11.P11Digest.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 1
getfield sun.security.pkcs11.P11Digest.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
8: aload 2
lconst_0
lconst_0
9: invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SetOperationState:(J[BJJ)V
end local 2 10: goto 14
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
11: astore 2
start local 2 12: new java.lang.CloneNotSupportedException
dup
aload 0
getfield sun.security.pkcs11.P11Digest.algorithm:Ljava/lang/String;
invokespecial java.lang.CloneNotSupportedException.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.CloneNotSupportedException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
13: checkcast java.lang.CloneNotSupportedException
athrow
end local 2 14: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/security/pkcs11/P11Digest;
1 15 1 copy Lsun/security/pkcs11/P11Digest;
7 10 2 stateValues [B
12 14 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
2 10 11 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.lang.CloneNotSupportedException
}
SourceFile: "P11Digest.java"