final class sun.security.pkcs11.P11PSSSignature extends java.security.SignatureSpi
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.P11PSSSignature
super_class: java.security.SignatureSpi
{
private static final boolean DEBUG;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final java.util.Hashtable<java.lang.String, java.lang.Integer> DIGEST_LENGTHS;
descriptor: Ljava/util/Hashtable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Hashtable<Ljava/lang/String;Ljava/lang/Integer;>;
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 static final java.lang.String KEY_ALGO;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "RSA"
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 type;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private sun.security.pkcs11.P11Key p11Key;
descriptor: Lsun/security/pkcs11/P11Key;
flags: (0x0002) ACC_PRIVATE
private java.security.spec.PSSParameterSpec sigParams;
descriptor: Ljava/security/spec/PSSParameterSpec;
flags: (0x0002) ACC_PRIVATE
private boolean isActive;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final java.lang.String mdAlg;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.security.MessageDigest md;
descriptor: Ljava/security/MessageDigest;
flags: (0x0002) ACC_PRIVATE
private sun.security.pkcs11.Session session;
descriptor: Lsun/security/pkcs11/Session;
flags: (0x0002) ACC_PRIVATE
private int mode;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean initialized;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final byte[] buffer;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int bytesProcessed;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private static final int M_SIGN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int M_VERIFY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int T_DIGEST;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int T_UPDATE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
1: putstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
2: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA-1"
bipush 20
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA"
bipush 20
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA1"
bipush 20
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA-224"
bipush 28
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA224"
bipush 28
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA-256"
bipush 32
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA256"
bipush 32
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA-384"
bipush 48
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA384"
bipush 48
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA-512"
bipush 64
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA512"
bipush 64
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA-512/224"
bipush 28
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA512/224"
bipush 28
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
15: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA-512/256"
bipush 32
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
16: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
ldc "SHA512/256"
bipush 32
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
17: return
LocalVariableTable:
Start End Slot Name Signature
private static boolean isDigestEqual(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ifnull 1
aload 1
ifnonnull 2
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ldc "-"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_m1
if_icmpeq 4
3: aload 0
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ireturn
4: StackMap locals:
StackMap stack:
aload 0
ldc "SHA-1"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
5: aload 1
ldc "SHA"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 8
6: aload 1
ldc "SHA1"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 8
7: iconst_0
ireturn
StackMap locals:
StackMap stack:
8: iconst_1
ireturn
9: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 1
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 2
start local 2 10: aload 1
iconst_1
iconst_0
ldc "SHA"
iconst_0
iconst_3
invokevirtual java.lang.String.regionMatches:(ZILjava/lang/String;II)Z
ifeq 13
11: aload 2
iconst_3
ldc "-"
invokevirtual java.lang.StringBuilder.insert:(ILjava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
12: aload 0
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ireturn
13: StackMap locals: java.lang.StringBuilder
StackMap stack:
new java.security.ProviderException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported digest algorithm "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
14: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
15: invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 stdAlg Ljava/lang/String;
0 16 1 givenAlg Ljava/lang/String;
10 16 2 sb Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
stdAlg
givenAlg
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=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.security.SignatureSpi.<init>:()V
1: aload 0
aconst_null
putfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
2: aload 0
aconst_null
putfield sun.security.pkcs11.P11PSSSignature.sigParams:Ljava/security/spec/PSSParameterSpec;
3: aload 0
iconst_0
putfield sun.security.pkcs11.P11PSSSignature.isActive:Z
4: aload 0
aconst_null
putfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
5: aload 0
iconst_0
putfield sun.security.pkcs11.P11PSSSignature.initialized:Z
6: aload 0
iconst_1
newarray 8
putfield sun.security.pkcs11.P11PSSSignature.buffer:[B
7: aload 0
iconst_0
putfield sun.security.pkcs11.P11PSSSignature.bytesProcessed:I
8: aload 0
aload 1
putfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
9: aload 0
aload 2
putfield sun.security.pkcs11.P11PSSSignature.algorithm:Ljava/lang/String;
10: 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.P11PSSSignature.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
11: aload 2
ldc "with"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 5
start local 5 12: aload 0
iload 5
iconst_m1
if_icmpne 13
aconst_null
goto 14
StackMap locals: sun.security.pkcs11.P11PSSSignature sun.security.pkcs11.Token java.lang.String long int
StackMap stack: sun.security.pkcs11.P11PSSSignature
13: aload 2
iconst_0
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
StackMap locals: sun.security.pkcs11.P11PSSSignature sun.security.pkcs11.Token java.lang.String long int
StackMap stack: sun.security.pkcs11.P11PSSSignature java.lang.String
14: putfield sun.security.pkcs11.P11PSSSignature.mdAlg:Ljava/lang/String;
15: lload 3
l2i
lookupswitch { // 6
13: 18
14: 16
67: 16
68: 16
69: 16
71: 16
default: 20
}
16: StackMap locals:
StackMap stack:
aload 0
iconst_2
putfield sun.security.pkcs11.P11PSSSignature.type:I
17: goto 21
18: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.security.pkcs11.P11PSSSignature.type:I
19: goto 21
20: StackMap locals:
StackMap stack:
new java.security.ProviderException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported 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
21: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
22: return
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/security/pkcs11/P11PSSSignature;
0 23 1 token Lsun/security/pkcs11/Token;
0 23 2 algorithm Ljava/lang/String;
0 23 3 mechId J
12 23 5 idx I
Exceptions:
throws java.security.NoSuchAlgorithmException, sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
token
algorithm
mechId
private void ensureInitialized();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.ensureValid:()V
1: aload 0
getfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
ifnonnull 3
2: new java.security.SignatureException
dup
ldc "Missing key"
invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.sigParams:Ljava/security/spec/PSSParameterSpec;
ifnonnull 17
4: aload 0
getfield sun.security.pkcs11.P11PSSSignature.mdAlg:Ljava/lang/String;
ifnonnull 8
5: new java.security.SignatureException
dup
6: ldc "Parameters required for RSASSA-PSS signature"
7: invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mdAlg:Ljava/lang/String;
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 1
start local 1 9: aload 0
new java.security.spec.PSSParameterSpec
dup
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mdAlg:Ljava/lang/String;
10: ldc "MGF1"
new java.security.spec.MGF1ParameterSpec
dup
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mdAlg:Ljava/lang/String;
invokespecial java.security.spec.MGF1ParameterSpec.<init>:(Ljava/lang/String;)V
11: iload 1
iconst_1
invokespecial java.security.spec.PSSParameterSpec.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;II)V
12: putfield sun.security.pkcs11.P11PSSSignature.sigParams:Ljava/security/spec/PSSParameterSpec;
13: aload 0
getfield sun.security.pkcs11.P11PSSSignature.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
new sun.security.pkcs11.wrapper.CK_RSA_PKCS_PSS_PARAMS
dup
14: aload 0
getfield sun.security.pkcs11.P11PSSSignature.mdAlg:Ljava/lang/String;
ldc "MGF1"
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mdAlg:Ljava/lang/String;
15: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mdAlg:Ljava/lang/String;
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokespecial sun.security.pkcs11.wrapper.CK_RSA_PKCS_PSS_PARAMS.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
16: invokevirtual sun.security.pkcs11.wrapper.CK_MECHANISM.setParameter:(Lsun/security/pkcs11/wrapper/CK_RSA_PKCS_PSS_PARAMS;)V
end local 1 17: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.initialized:Z
ifne 19
18: aload 0
invokevirtual sun.security.pkcs11.P11PSSSignature.initialize:()V
19: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/security/pkcs11/P11PSSSignature;
9 17 1 saltLen I
Exceptions:
throws java.security.SignatureException
private void reset(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs11.P11PSSSignature.initialized:Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.security.pkcs11.P11PSSSignature.initialized:Z
3: aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
ifnonnull 9
4: aload 0
getfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
invokevirtual sun.security.pkcs11.P11Key.releaseKeyID:()V
5: aload 0
getfield sun.security.pkcs11.P11PSSSignature.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
invokevirtual sun.security.pkcs11.wrapper.CK_MECHANISM.freeHandle:()V
6: aload 0
aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
7: aload 0
iconst_0
putfield sun.security.pkcs11.P11PSSSignature.isActive:Z
8: return
9: StackMap locals:
StackMap stack:
iload 1
ifeq 18
aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.explicitCancel:Z
ifeq 18
10: aload 0
invokevirtual sun.security.pkcs11.P11PSSSignature.cancelOperation:()V
11: goto 18
StackMap locals:
StackMap stack: java.lang.Throwable
12: astore 2
13: aload 0
getfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
invokevirtual sun.security.pkcs11.P11Key.releaseKeyID:()V
14: aload 0
getfield sun.security.pkcs11.P11PSSSignature.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
invokevirtual sun.security.pkcs11.wrapper.CK_MECHANISM.freeHandle:()V
15: aload 0
aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
16: aload 0
iconst_0
putfield sun.security.pkcs11.P11PSSSignature.isActive:Z
17: aload 2
athrow
18: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
invokevirtual sun.security.pkcs11.P11Key.releaseKeyID:()V
19: aload 0
getfield sun.security.pkcs11.P11PSSSignature.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
invokevirtual sun.security.pkcs11.wrapper.CK_MECHANISM.freeHandle:()V
20: aload 0
aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
21: aload 0
iconst_0
putfield sun.security.pkcs11.P11PSSSignature.isActive:Z
22: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/security/pkcs11/P11PSSSignature;
0 23 1 doCancel Z
Exception table:
from to target type
3 4 12 any
9 12 12 any
MethodParameters:
Name Flags
doCancel
private void cancelOperation();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.ensureValid:()V
1: aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.hasObjects:()Z
ifne 4
2: aload 0
aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Token.killSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mode:I
iconst_1
if_icmpne 15
5: aload 0
getfield sun.security.pkcs11.P11PSSSignature.type:I
iconst_2
if_icmpne 8
6: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
iconst_0
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignFinal:(JI)[B
pop
7: goto 26
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
ifnonnull 9
iconst_0
newarray 8
goto 10
StackMap locals:
StackMap stack:
9: aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.digest:()[B
10: StackMap locals:
StackMap stack: byte[]
astore 1
start local 1 11: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 1
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_Sign:(J[B)[B
pop
end local 1 12: goto 26
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
13: astore 1
start local 1 14: new java.security.ProviderException
dup
ldc "cancel failed"
aload 1
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 15: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
invokevirtual sun.security.pkcs11.P11Key.length:()I
bipush 7
iadd
iconst_3
ishr
newarray 8
16: astore 1
start local 1 17: aload 0
getfield sun.security.pkcs11.P11PSSSignature.type:I
iconst_2
if_icmpne 20
18: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 1
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_VerifyFinal:(J[B)V
19: goto 26
20: StackMap locals: byte[]
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
ifnonnull 21
iconst_0
newarray 8
goto 22
StackMap locals:
StackMap stack:
21: aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.digest:()[B
22: StackMap locals:
StackMap stack: byte[]
astore 2
start local 2 23: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 2
aload 1
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_Verify:(J[B[B)V
end local 2 end local 1 24: goto 26
StackMap locals: sun.security.pkcs11.P11PSSSignature
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
25: pop
26: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/security/pkcs11/P11PSSSignature;
11 12 1 digest [B
14 15 1 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
17 24 1 signature [B
23 24 2 digest [B
Exception table:
from to target type
5 12 13 Class sun.security.pkcs11.wrapper.PKCS11Exception
15 24 25 Class sun.security.pkcs11.wrapper.PKCS11Exception
private void initialize();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
ifnonnull 4
1: new java.security.ProviderException
dup
2: ldc "No Key found, call initSign/initVerify first"
3: invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
invokevirtual sun.security.pkcs11.P11Key.getKeyID:()J
lstore 1
start local 1 5: aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
ifnonnull 7
6: aload 0
aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getOpSession:()Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
7: StackMap locals: long
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mode:I
iconst_1
if_icmpne 10
8: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
lload 1
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignInit:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;J)V
9: goto 16
10: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
lload 1
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_VerifyInit:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;J)V
11: goto 16
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
12: astore 3
start local 3 13: aload 0
getfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
invokevirtual sun.security.pkcs11.P11Key.releaseKeyID:()V
14: aload 0
aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
putfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
15: new java.security.ProviderException
dup
ldc "Initialization failed"
aload 3
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 16: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.bytesProcessed:I
ifeq 20
17: aload 0
iconst_0
putfield sun.security.pkcs11.P11PSSSignature.bytesProcessed:I
18: aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
ifnull 20
19: aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.reset:()V
20: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.security.pkcs11.P11PSSSignature.initialized:Z
21: aload 0
iconst_0
putfield sun.security.pkcs11.P11PSSSignature.isActive:Z
22: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/security/pkcs11/P11PSSSignature;
5 23 1 keyID J
13 16 3 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
5 11 12 Class sun.security.pkcs11.wrapper.PKCS11Exception
private void checkKeySize(java.security.Key);
descriptor: (Ljava/security/Key;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
ldc "RSA"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 2
1: new java.security.InvalidKeyException
dup
ldc "Only RSA keys are supported"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 3: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
getfield sun.security.pkcs11.wrapper.CK_MECHANISM.mechanism:J
invokevirtual sun.security.pkcs11.Token.getMechanismInfo:(J)Lsun/security/pkcs11/wrapper/CK_MECHANISM_INFO;
astore 2
4: goto 6
StackMap locals: sun.security.pkcs11.P11PSSSignature java.security.Key sun.security.pkcs11.wrapper.CK_MECHANISM_INFO
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
5: astore 3
6: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 7: aload 2
ifnull 25
8: aload 1
instanceof sun.security.pkcs11.P11Key
ifeq 11
9: aload 1
checkcast sun.security.pkcs11.P11Key
invokevirtual sun.security.pkcs11.P11Key.length:()I
bipush 7
iadd
iconst_3
ishr
istore 3
10: goto 15
StackMap locals: int
StackMap stack:
11: aload 1
instanceof java.security.interfaces.RSAKey
ifeq 14
12: aload 1
checkcast java.security.interfaces.RSAKey
invokeinterface java.security.interfaces.RSAKey.getModulus:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.bitLength:()I
iconst_3
ishr
istore 3
13: goto 15
14: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "Unrecognized key type "
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
15: StackMap locals:
StackMap stack:
aload 2
getfield sun.security.pkcs11.wrapper.CK_MECHANISM_INFO.iMinKeySize:I
ifeq 20
16: iload 3
aload 2
getfield sun.security.pkcs11.wrapper.CK_MECHANISM_INFO.iMinKeySize:I
iconst_3
ishr
if_icmpge 20
17: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "RSA key must be at least "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
18: aload 2
getfield sun.security.pkcs11.wrapper.CK_MECHANISM_INFO.iMinKeySize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bits"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
aload 2
getfield sun.security.pkcs11.wrapper.CK_MECHANISM_INFO.iMaxKeySize:I
ldc 2147483647
if_icmpeq 25
21: iload 3
aload 2
getfield sun.security.pkcs11.wrapper.CK_MECHANISM_INFO.iMaxKeySize:I
iconst_3
ishr
if_icmple 25
22: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "RSA key must be at most "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
23: aload 2
getfield sun.security.pkcs11.wrapper.CK_MECHANISM_INFO.iMaxKeySize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bits"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
24: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.sigParams:Ljava/security/spec/PSSParameterSpec;
ifnull 34
26: aload 0
getfield sun.security.pkcs11.P11PSSSignature.sigParams:Ljava/security/spec/PSSParameterSpec;
invokevirtual java.security.spec.PSSParameterSpec.getDigestAlgorithm:()Ljava/lang/String;
astore 4
start local 4 27: aload 0
getfield sun.security.pkcs11.P11PSSSignature.sigParams:Ljava/security/spec/PSSParameterSpec;
invokevirtual java.security.spec.PSSParameterSpec.getSaltLength:()I
istore 5
start local 5 28: getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
aload 4
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 6
start local 6 29: iload 5
iload 6
invokestatic java.lang.Math.addExact:(II)I
iconst_2
invokestatic java.lang.Math.addExact:(II)I
istore 7
start local 7 30: iload 3
iload 7
if_icmpge 34
31: new java.security.InvalidKeyException
dup
32: new java.lang.StringBuilder
dup
ldc "Key is too short for current params, need min "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 7
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
33: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 7 end local 6 end local 5 end local 4 34: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lsun/security/pkcs11/P11PSSSignature;
0 35 1 key Ljava/security/Key;
3 35 2 mechInfo Lsun/security/pkcs11/wrapper/CK_MECHANISM_INFO;
7 35 3 keySize I
27 34 4 digestAlg Ljava/lang/String;
28 34 5 sLen I
29 34 6 hLen I
30 34 7 minKeyLen I
Exception table:
from to target type
3 4 5 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
private void setSigParams(java.security.spec.AlgorithmParameterSpec);
descriptor: (Ljava/security/spec/AlgorithmParameterSpec;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=9, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.security.InvalidAlgorithmParameterException
dup
ldc "PSS Parameter required"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.spec.PSSParameterSpec
ifne 6
3: new java.security.InvalidAlgorithmParameterException
dup
4: ldc "Only PSSParameterSpec is supported"
5: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 1
checkcast java.security.spec.PSSParameterSpec
astore 2
start local 2 7: aload 2
aload 0
getfield sun.security.pkcs11.P11PSSSignature.sigParams:Ljava/security/spec/PSSParameterSpec;
if_acmpne 8
return
8: StackMap locals: java.security.spec.PSSParameterSpec
StackMap stack:
aload 2
invokevirtual java.security.spec.PSSParameterSpec.getDigestAlgorithm:()Ljava/lang/String;
astore 3
start local 3 9: aload 0
getfield sun.security.pkcs11.P11PSSSignature.mdAlg:Ljava/lang/String;
ifnull 15
aload 3
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mdAlg:Ljava/lang/String;
invokestatic sun.security.pkcs11.P11PSSSignature.isDigestEqual:(Ljava/lang/String;Ljava/lang/String;)Z
ifne 15
10: new java.security.InvalidAlgorithmParameterException
dup
11: new java.lang.StringBuilder
dup
ldc "Digest algorithm in Signature parameters must be "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
12: aload 0
getfield sun.security.pkcs11.P11PSSSignature.mdAlg:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals: java.lang.String
StackMap stack:
getstatic sun.security.pkcs11.P11PSSSignature.DIGEST_LENGTHS:Ljava/util/Hashtable;
aload 3
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 4
start local 4 16: aload 4
ifnonnull 22
17: new java.security.InvalidAlgorithmParameterException
dup
18: new java.lang.StringBuilder
dup
ldc "Unsupported digest algorithm in Signature parameters: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
19: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
20: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
21: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals: java.lang.Integer
StackMap stack:
aload 2
invokevirtual java.security.spec.PSSParameterSpec.getMGFAlgorithm:()Ljava/lang/String;
ldc "MGF1"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 24
23: new java.security.InvalidAlgorithmParameterException
dup
ldc "Only supports MGF1"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
24: StackMap locals:
StackMap stack:
aload 3
astore 5
start local 5 25: aload 2
invokevirtual java.security.spec.PSSParameterSpec.getMGFParameters:()Ljava/security/spec/AlgorithmParameterSpec;
astore 6
start local 6 26: aload 6
ifnull 32
27: aload 6
instanceof java.security.spec.MGF1ParameterSpec
ifne 31
28: new java.security.InvalidAlgorithmParameterException
dup
29: ldc "Only MGF1ParameterSpec is supported"
30: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
31: StackMap locals: java.lang.String java.security.spec.AlgorithmParameterSpec
StackMap stack:
aload 6
checkcast java.security.spec.MGF1ParameterSpec
invokevirtual java.security.spec.MGF1ParameterSpec.getDigestAlgorithm:()Ljava/lang/String;
astore 5
32: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.security.spec.PSSParameterSpec.getTrailerField:()I
iconst_1
if_icmpeq 36
33: new java.security.InvalidAlgorithmParameterException
dup
34: ldc "Only supports TrailerFieldBC(1)"
35: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
36: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.security.spec.PSSParameterSpec.getSaltLength:()I
istore 7
start local 7 37: aload 0
getfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
ifnull 47
38: aload 0
getfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
invokevirtual sun.security.pkcs11.P11Key.length:()I
bipush 7
iadd
iconst_3
ishr
39: aload 4
invokevirtual java.lang.Integer.intValue:()I
40: isub
41: iconst_2
42: isub
istore 8
start local 8 43: iload 8
iflt 44
iload 7
iload 8
if_icmple 47
44: StackMap locals: int int
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
45: ldc "Invalid with current key size"
46: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
end local 8 47: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mechanism:Lsun/security/pkcs11/wrapper/CK_MECHANISM;
48: new sun.security.pkcs11.wrapper.CK_RSA_PKCS_PSS_PARAMS
dup
aload 3
ldc "MGF1"
49: aload 5
iload 7
50: invokespecial sun.security.pkcs11.wrapper.CK_RSA_PKCS_PSS_PARAMS.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
51: invokevirtual sun.security.pkcs11.wrapper.CK_MECHANISM.setParameter:(Lsun/security/pkcs11/wrapper/CK_RSA_PKCS_PSS_PARAMS;)V
52: aload 0
aload 2
putfield sun.security.pkcs11.P11PSSSignature.sigParams:Ljava/security/spec/PSSParameterSpec;
53: goto 56
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
54: astore 8
start local 8 55: new java.security.InvalidAlgorithmParameterException
dup
aload 8
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 8 56: StackMap locals:
StackMap stack:
return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 57 0 this Lsun/security/pkcs11/P11PSSSignature;
0 57 1 p Ljava/security/spec/AlgorithmParameterSpec;
7 57 2 params Ljava/security/spec/PSSParameterSpec;
9 57 3 digestAlgorithm Ljava/lang/String;
16 57 4 digestLen Ljava/lang/Integer;
25 57 5 mgfDigestAlgo Ljava/lang/String;
26 57 6 mgfParams Ljava/security/spec/AlgorithmParameterSpec;
37 57 7 saltLen I
43 47 8 maxSaltLen I
55 56 8 iae Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
47 53 54 Class java.lang.IllegalArgumentException
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
p
protected void engineInitVerify(java.security.PublicKey);
descriptor: (Ljava/security/PublicKey;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.security.InvalidKeyException
dup
ldc "Key must not be null"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
if_acmpeq 4
3: aload 0
aload 1
invokevirtual sun.security.pkcs11.P11PSSSignature.checkKeySize:(Ljava/security/Key;)V
4: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokevirtual sun.security.pkcs11.P11PSSSignature.reset:(Z)V
5: aload 0
iconst_2
putfield sun.security.pkcs11.P11PSSSignature.mode:I
6: aload 0
aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
aload 1
ldc "RSA"
invokestatic sun.security.pkcs11.P11KeyFactory.convertKey:(Lsun/security/pkcs11/Token;Ljava/security/Key;Ljava/lang/String;)Lsun/security/pkcs11/P11Key;
putfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/pkcs11/P11PSSSignature;
0 8 1 publicKey Ljava/security/PublicKey;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
publicKey
protected void engineInitSign(java.security.PrivateKey);
descriptor: (Ljava/security/PrivateKey;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.security.InvalidKeyException
dup
ldc "Key must not be null"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
if_acmpeq 4
3: aload 0
aload 1
invokevirtual sun.security.pkcs11.P11PSSSignature.checkKeySize:(Ljava/security/Key;)V
4: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokevirtual sun.security.pkcs11.P11PSSSignature.reset:(Z)V
5: aload 0
iconst_1
putfield sun.security.pkcs11.P11PSSSignature.mode:I
6: aload 0
aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
aload 1
ldc "RSA"
invokestatic sun.security.pkcs11.P11KeyFactory.convertKey:(Lsun/security/pkcs11/Token;Ljava/security/Key;Ljava/lang/String;)Lsun/security/pkcs11/P11Key;
putfield sun.security.pkcs11.P11PSSSignature.p11Key:Lsun/security/pkcs11/P11Key;
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/pkcs11/P11PSSSignature;
0 8 1 privateKey Ljava/security/PrivateKey;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
privateKey
protected void engineUpdate(byte);
descriptor: (B)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.security.pkcs11.P11PSSSignature.ensureInitialized:()V
1: aload 0
iconst_1
putfield sun.security.pkcs11.P11PSSSignature.isActive:Z
2: aload 0
getfield sun.security.pkcs11.P11PSSSignature.buffer:[B
iconst_0
iload 1
bastore
3: aload 0
aload 0
getfield sun.security.pkcs11.P11PSSSignature.buffer:[B
iconst_0
iconst_1
invokevirtual sun.security.pkcs11.P11PSSSignature.engineUpdate:([BII)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/pkcs11/P11PSSSignature;
0 5 1 b B
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
b
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: aload 0
invokevirtual sun.security.pkcs11.P11PSSSignature.ensureInitialized:()V
1: iload 3
ifne 3
2: return
3: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield sun.security.pkcs11.P11PSSSignature.bytesProcessed:I
iadd
ifge 5
4: new java.security.ProviderException
dup
ldc "Processed bytes limits exceeded."
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.security.pkcs11.P11PSSSignature.isActive:Z
6: aload 0
getfield sun.security.pkcs11.P11PSSSignature.type:I
tableswitch { // 1 - 2
1: 18
2: 7
default: 23
}
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.mode:I
iconst_1
if_icmpne 11
8: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ": Calling C_SignUpdate"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.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_SignUpdate:(JJ[BII)V
10: goto 13
11: StackMap locals:
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ": Calling C_VerfifyUpdate"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
12: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.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_VerifyUpdate:(JJ[BII)V
13: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.security.pkcs11.P11PSSSignature.bytesProcessed:I
iload 3
iadd
putfield sun.security.pkcs11.P11PSSSignature.bytesProcessed:I
14: goto 24
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
15: astore 4
start local 4 16: aload 0
iconst_0
invokevirtual sun.security.pkcs11.P11PSSSignature.reset:(Z)V
17: new java.security.ProviderException
dup
aload 4
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 18: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
ifnonnull 20
19: new java.security.ProviderException
dup
ldc "PSS Parameters required"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
aload 1
iload 2
iload 3
invokevirtual java.security.MessageDigest.update:([BII)V
21: aload 0
dup
getfield sun.security.pkcs11.P11PSSSignature.bytesProcessed:I
iload 3
iadd
putfield sun.security.pkcs11.P11PSSSignature.bytesProcessed:I
22: goto 24
23: StackMap locals:
StackMap stack:
new java.security.ProviderException
dup
ldc "Internal error"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
24: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lsun/security/pkcs11/P11PSSSignature;
0 25 1 b [B
0 25 2 ofs I
0 25 3 len I
16 18 4 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
7 14 15 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
b
ofs
len
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 0
invokevirtual sun.security.pkcs11.P11PSSSignature.ensureInitialized:()V
1: goto 4
StackMap locals:
StackMap stack: java.security.SignatureException
2: astore 2
start local 2 3: new java.security.ProviderException
dup
aload 2
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 2
start local 2 5: iload 2
ifgt 7
6: return
7: StackMap locals: int
StackMap stack:
aload 0
iconst_1
putfield sun.security.pkcs11.P11PSSSignature.isActive:Z
8: aload 0
getfield sun.security.pkcs11.P11PSSSignature.type:I
tableswitch { // 1 - 2
1: 30
2: 9
default: 35
}
9: StackMap locals:
StackMap stack:
aload 1
instanceof sun.nio.ch.DirectBuffer
ifne 12
10: aload 0
aload 1
invokespecial java.security.SignatureSpi.engineUpdate:(Ljava/nio/ByteBuffer;)V
11: return
12: StackMap locals:
StackMap stack:
aload 1
checkcast sun.nio.ch.DirectBuffer
invokeinterface sun.nio.ch.DirectBuffer.address:()J
lstore 3
start local 3 13: aload 1
invokevirtual java.nio.ByteBuffer.position:()I
istore 5
start local 5 14: aload 0
getfield sun.security.pkcs11.P11PSSSignature.mode:I
iconst_1
if_icmpne 20
15: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ": Calling C_SignUpdate"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
16: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
17: aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
lload 3
iload 5
i2l
ladd
aconst_null
iconst_0
iload 2
18: invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignUpdate:(JJ[BII)V
19: goto 24
20: StackMap locals: long int
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ": Calling C_VerifyUpdate"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
21: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
22: aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
lload 3
iload 5
i2l
ladd
aconst_null
iconst_0
iload 2
23: invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_VerifyUpdate:(JJ[BII)V
24: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.security.pkcs11.P11PSSSignature.bytesProcessed:I
iload 2
iadd
putfield sun.security.pkcs11.P11PSSSignature.bytesProcessed:I
25: aload 1
iload 5
iload 2
iadd
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
26: goto 37
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
27: astore 6
start local 6 28: aload 0
iconst_0
invokevirtual sun.security.pkcs11.P11PSSSignature.reset:(Z)V
29: 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 end local 5 end local 3 30: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
ifnonnull 32
31: new java.security.ProviderException
dup
ldc "PSS Parameters required"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
32: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
aload 1
invokevirtual java.security.MessageDigest.update:(Ljava/nio/ByteBuffer;)V
33: aload 0
dup
getfield sun.security.pkcs11.P11PSSSignature.bytesProcessed:I
iload 2
iadd
putfield sun.security.pkcs11.P11PSSSignature.bytesProcessed:I
34: goto 37
35: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual sun.security.pkcs11.P11PSSSignature.reset:(Z)V
36: new java.security.ProviderException
dup
ldc "Internal error"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
37: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lsun/security/pkcs11/P11PSSSignature;
0 38 1 byteBuffer Ljava/nio/ByteBuffer;
3 4 2 se Ljava/security/SignatureException;
5 38 2 len I
13 30 3 addr J
14 30 5 ofs I
28 30 6 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
0 1 2 Class java.security.SignatureException
14 26 27 Class sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
byteBuffer
protected byte[] engineSign();
descriptor: ()[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.pkcs11.P11PSSSignature.ensureInitialized:()V
1: iconst_1
istore 1
start local 1 2: aload 0
getfield sun.security.pkcs11.P11PSSSignature.type:I
iconst_2
if_icmpne 5
3: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
iconst_0
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignFinal:(JI)[B
astore 2
start local 2 4: goto 9
end local 2 5: StackMap locals: int
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
ifnonnull 7
6: new java.security.ProviderException
dup
ldc "PSS Parameters required"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.digest:()[B
astore 3
start local 3 8: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 3
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_Sign:(J[B)[B
astore 2
end local 3 start local 2 9: StackMap locals: byte[]
StackMap stack:
iconst_0
istore 1
10: aload 2
astore 5
11: aload 0
iload 1
invokevirtual sun.security.pkcs11.P11PSSSignature.reset:(Z)V
12: aload 5
areturn
end local 2 13: StackMap locals: sun.security.pkcs11.P11PSSSignature int
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 14: iconst_0
istore 1
15: new java.security.ProviderException
dup
aload 2
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 16: StackMap locals:
StackMap stack: java.security.ProviderException
astore 2
start local 2 17: aload 2
athrow
end local 2 18: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
19: aload 0
iload 1
invokevirtual sun.security.pkcs11.P11PSSSignature.reset:(Z)V
20: aload 4
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/security/pkcs11/P11PSSSignature;
2 21 1 doCancel Z
4 5 2 signature [B
9 13 2 signature [B
8 9 3 digest [B
14 16 2 pe Lsun/security/pkcs11/wrapper/PKCS11Exception;
17 18 2 e Ljava/security/ProviderException;
Exception table:
from to target type
2 11 13 Class sun.security.pkcs11.wrapper.PKCS11Exception
2 11 16 Class java.security.ProviderException
2 11 18 any
13 18 18 any
Exceptions:
throws java.security.SignatureException
protected boolean engineVerify(byte[]);
descriptor: ([B)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.security.pkcs11.P11PSSSignature.ensureInitialized:()V
1: iconst_1
istore 2
start local 2 2: aload 0
getfield sun.security.pkcs11.P11PSSSignature.type:I
iconst_2
if_icmpne 5
3: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 1
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_VerifyFinal:(J[B)V
4: goto 9
5: StackMap locals: int
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
ifnonnull 7
6: new java.security.ProviderException
dup
ldc "PSS Parameters required"
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.digest:()[B
astore 3
start local 3 8: aload 0
getfield sun.security.pkcs11.P11PSSSignature.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.P11PSSSignature.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.id:()J
aload 3
aload 1
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_Verify:(J[B[B)V
end local 3 9: StackMap locals:
StackMap stack:
iconst_0
istore 2
10: aload 0
iload 2
invokevirtual sun.security.pkcs11.P11PSSSignature.reset:(Z)V
11: iconst_1
ireturn
12: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 3
start local 3 13: iconst_0
istore 2
14: aload 3
invokevirtual sun.security.pkcs11.wrapper.PKCS11Exception.getErrorCode:()J
lstore 4
start local 4 15: lload 4
ldc 192
lcmp
ifne 18
16: aload 0
iload 2
invokevirtual sun.security.pkcs11.P11PSSSignature.reset:(Z)V
17: iconst_0
ireturn
18: StackMap locals: sun.security.pkcs11.wrapper.PKCS11Exception long
StackMap stack:
lload 4
ldc 193
lcmp
ifne 21
19: aload 0
iload 2
invokevirtual sun.security.pkcs11.P11PSSSignature.reset:(Z)V
20: iconst_0
ireturn
21: StackMap locals:
StackMap stack:
lload 4
ldc 33
lcmp
ifne 24
22: aload 0
iload 2
invokevirtual sun.security.pkcs11.P11PSSSignature.reset:(Z)V
23: iconst_0
ireturn
24: StackMap locals:
StackMap stack:
new java.security.ProviderException
dup
aload 3
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 25: StackMap locals: sun.security.pkcs11.P11PSSSignature byte[] int
StackMap stack: java.security.ProviderException
astore 3
start local 3 26: aload 3
athrow
end local 3 27: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
28: aload 0
iload 2
invokevirtual sun.security.pkcs11.P11PSSSignature.reset:(Z)V
29: aload 6
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lsun/security/pkcs11/P11PSSSignature;
0 30 1 signature [B
2 30 2 doCancel Z
8 9 3 digest [B
13 25 3 pe Lsun/security/pkcs11/wrapper/PKCS11Exception;
15 25 4 errorCode J
26 27 3 e Ljava/security/ProviderException;
Exception table:
from to target type
2 10 12 Class sun.security.pkcs11.wrapper.PKCS11Exception
2 10 25 Class java.security.ProviderException
2 10 27 any
12 16 27 any
18 19 27 any
21 22 27 any
24 27 27 any
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
signature
protected void engineSetParameter(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.UnsupportedOperationException
dup
ldc "setParameter() not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/P11PSSSignature;
0 1 1 param Ljava/lang/String;
0 1 2 value Ljava/lang/Object;
Exceptions:
throws java.security.InvalidParameterException
MethodParameters:
Name Flags
param
value
protected void engineSetParameter(java.security.spec.AlgorithmParameterSpec);
descriptor: (Ljava/security/spec/AlgorithmParameterSpec;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs11.P11PSSSignature.isActive:Z
ifeq 4
1: new java.security.ProviderException
dup
2: ldc "Cannot set parameters during operations"
3: invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.security.pkcs11.P11PSSSignature.setSigParams:(Ljava/security/spec/AlgorithmParameterSpec;)V
5: aload 0
getfield sun.security.pkcs11.P11PSSSignature.type:I
iconst_1
if_icmpne 10
6: aload 0
aload 0
getfield sun.security.pkcs11.P11PSSSignature.sigParams:Ljava/security/spec/PSSParameterSpec;
invokevirtual java.security.spec.PSSParameterSpec.getDigestAlgorithm:()Ljava/lang/String;
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
putfield sun.security.pkcs11.P11PSSSignature.md:Ljava/security/MessageDigest;
7: goto 10
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
8: astore 2
start local 2 9: new java.security.InvalidAlgorithmParameterException
dup
aload 2
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/pkcs11/P11PSSSignature;
0 11 1 params Ljava/security/spec/AlgorithmParameterSpec;
9 10 2 nsae Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
6 7 8 Class java.security.NoSuchAlgorithmException
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
params
protected java.lang.Object engineGetParameter(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
ldc "getParameter() not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/P11PSSSignature;
0 1 1 param Ljava/lang/String;
Exceptions:
throws java.security.InvalidParameterException
MethodParameters:
Name Flags
param
protected java.security.AlgorithmParameters engineGetParameters();
descriptor: ()Ljava/security/AlgorithmParameters;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11PSSSignature.sigParams:Ljava/security/spec/PSSParameterSpec;
ifnull 7
1: ldc "RSASSA-PSS"
invokestatic java.security.AlgorithmParameters.getInstance:(Ljava/lang/String;)Ljava/security/AlgorithmParameters;
astore 1
start local 1 2: aload 1
aload 0
getfield sun.security.pkcs11.P11PSSSignature.sigParams:Ljava/security/spec/PSSParameterSpec;
invokevirtual java.security.AlgorithmParameters.init:(Ljava/security/spec/AlgorithmParameterSpec;)V
3: aload 1
4: areturn
end local 1 5: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
astore 1
start local 1 6: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 7: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/pkcs11/P11PSSSignature;
2 5 1 ap Ljava/security/AlgorithmParameters;
6 7 1 e Ljava/security/GeneralSecurityException;
Exception table:
from to target type
1 4 5 Class java.security.GeneralSecurityException
}
SourceFile: "P11PSSSignature.java"