class sun.security.mscapi.CSignature$RSA extends sun.security.mscapi.CSignature
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.security.mscapi.CSignature$RSA
super_class: sun.security.mscapi.CSignature
{
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "RSA"
aload 1
invokespecial sun.security.mscapi.CSignature.<init>:(Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/mscapi/CSignature$RSA;
0 2 1 digestAlgorithm Ljava/lang/String;
MethodParameters:
Name Flags
digestAlgorithm
protected void engineInitSign(java.security.PrivateKey);
descriptor: (Ljava/security/PrivateKey;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.security.InvalidKeyException
dup
ldc "Key cannot be null"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
instanceof sun.security.mscapi.CPrivateKey
ifeq 4
3: aload 1
invokeinterface java.security.PrivateKey.getAlgorithm:()Ljava/lang/String;
ldc "RSA"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 7
4: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "Key type not supported: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokeinterface java.security.PrivateKey.getAlgorithm:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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:
StackMap stack:
aload 0
aload 1
checkcast sun.security.mscapi.CPrivateKey
putfield sun.security.mscapi.CSignature$RSA.privateKey:Lsun/security/mscapi/CPrivateKey;
8: aload 0
getfield sun.security.mscapi.CSignature$RSA.privateKey:Lsun/security/mscapi/CPrivateKey;
invokevirtual sun.security.mscapi.CPrivateKey.length:()I
bipush 7
iadd
bipush -8
iand
9: aconst_null
sipush 512
10: sipush 16384
11: invokestatic sun.security.rsa.RSAKeyFactory.checkKeyLengths:(ILjava/math/BigInteger;II)V
12: aload 0
aconst_null
putfield sun.security.mscapi.CSignature$RSA.publicKey:Lsun/security/mscapi/CPublicKey;
13: aload 0
invokevirtual sun.security.mscapi.CSignature$RSA.resetDigest:()V
14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/security/mscapi/CSignature$RSA;
0 15 1 key Ljava/security/PrivateKey;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected void engineInitVerify(java.security.PublicKey);
descriptor: (Ljava/security/PublicKey;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=10, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.security.InvalidKeyException
dup
ldc "Key cannot be null"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.interfaces.RSAPublicKey
ifne 6
3: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "Key type not supported: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 1
instanceof sun.security.mscapi.CPublicKey
ifne 26
7: aload 1
checkcast java.security.interfaces.RSAPublicKey
8: astore 2
start local 2 9: aload 2
invokeinterface java.security.interfaces.RSAPublicKey.getModulus:()Ljava/math/BigInteger;
astore 3
start local 3 10: aload 2
invokeinterface java.security.interfaces.RSAPublicKey.getPublicExponent:()Ljava/math/BigInteger;
astore 4
start local 4 11: aload 3
invokevirtual java.math.BigInteger.bitLength:()I
bipush 7
iadd
bipush -8
iand
12: aload 4
iconst_m1
sipush 16384
13: invokestatic sun.security.rsa.RSAKeyFactory.checkKeyLengths:(ILjava/math/BigInteger;II)V
14: aload 3
invokevirtual java.math.BigInteger.toByteArray:()[B
astore 5
start local 5 15: aload 4
invokevirtual java.math.BigInteger.toByteArray:()[B
astore 6
start local 6 16: aload 5
iconst_0
baload
ifne 18
17: aload 5
arraylength
iconst_1
isub
bipush 8
imul
goto 19
18: StackMap locals: sun.security.mscapi.CSignature$RSA java.security.PublicKey java.security.interfaces.RSAPublicKey java.math.BigInteger java.math.BigInteger byte[] byte[]
StackMap stack:
aload 5
arraylength
bipush 8
imul
19: StackMap locals:
StackMap stack: int
istore 7
start local 7 20: iload 7
aload 5
aload 6
21: invokestatic sun.security.mscapi.CSignature$RSA.generatePublicKeyBlob:(I[B[B)[B
astore 8
start local 8 22: aload 0
ldc "RSA"
aload 8
iload 7
invokestatic sun.security.mscapi.CSignature$RSA.importPublicKey:(Ljava/lang/String;[BI)Lsun/security/mscapi/CPublicKey;
putfield sun.security.mscapi.CSignature$RSA.publicKey:Lsun/security/mscapi/CPublicKey;
23: goto 27
StackMap locals: sun.security.mscapi.CSignature$RSA java.security.PublicKey java.security.interfaces.RSAPublicKey java.math.BigInteger java.math.BigInteger byte[] byte[] int byte[]
StackMap stack: java.security.KeyStoreException
24: astore 9
start local 9 25: new java.security.InvalidKeyException
dup
aload 9
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 26: StackMap locals: sun.security.mscapi.CSignature$RSA java.security.PublicKey
StackMap stack:
aload 0
aload 1
checkcast sun.security.mscapi.CPublicKey
putfield sun.security.mscapi.CSignature$RSA.publicKey:Lsun/security/mscapi/CPublicKey;
27: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield sun.security.mscapi.CSignature$RSA.privateKey:Lsun/security/mscapi/CPrivateKey;
28: aload 0
invokevirtual sun.security.mscapi.CSignature$RSA.resetDigest:()V
29: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lsun/security/mscapi/CSignature$RSA;
0 30 1 key Ljava/security/PublicKey;
9 26 2 rsaKey Ljava/security/interfaces/RSAPublicKey;
10 26 3 modulus Ljava/math/BigInteger;
11 26 4 exponent Ljava/math/BigInteger;
15 26 5 modulusBytes [B
16 26 6 exponentBytes [B
20 26 7 keyBitLength I
22 26 8 keyBlob [B
25 26 9 e Ljava/security/KeyStoreException;
Exception table:
from to target type
22 23 24 Class java.security.KeyStoreException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected byte[] engineSign();
descriptor: ()[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=9, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.mscapi.CSignature$RSA.getDigestValue:()[B
astore 1
start local 1 1: aload 0
getfield sun.security.mscapi.CSignature$RSA.privateKey:Lsun/security/mscapi/CPrivateKey;
invokevirtual sun.security.mscapi.CPrivateKey.getHCryptKey:()J
lconst_0
lcmp
ifne 8
2: iconst_1
aload 1
aload 1
arraylength
3: iconst_0
4: aload 0
instanceof sun.security.mscapi.CSignature$NONEwithRSA
ifeq 5
aconst_null
goto 6
StackMap locals: sun.security.mscapi.CSignature$RSA byte[]
StackMap stack: int byte[] int int
5: aload 0
getfield sun.security.mscapi.CSignature$RSA.messageDigestAlgorithm:Ljava/lang/String;
6: StackMap locals: sun.security.mscapi.CSignature$RSA byte[]
StackMap stack: int byte[] int int java.lang.String
aload 0
getfield sun.security.mscapi.CSignature$RSA.privateKey:Lsun/security/mscapi/CPrivateKey;
invokevirtual sun.security.mscapi.CPrivateKey.getHCryptProvider:()J
lconst_0
7: invokestatic sun.security.mscapi.CSignature$RSA.signCngHash:(I[BIILjava/lang/String;JJ)[B
areturn
8: StackMap locals:
StackMap stack:
aload 0
instanceof sun.security.mscapi.CSignature$NONEwithRSA
istore 2
start local 2 9: iload 2
aload 1
aload 1
arraylength
10: aload 0
getfield sun.security.mscapi.CSignature$RSA.messageDigestAlgorithm:Ljava/lang/String;
aload 0
getfield sun.security.mscapi.CSignature$RSA.privateKey:Lsun/security/mscapi/CPrivateKey;
invokevirtual sun.security.mscapi.CPrivateKey.getHCryptProvider:()J
11: aload 0
getfield sun.security.mscapi.CSignature$RSA.privateKey:Lsun/security/mscapi/CPrivateKey;
invokevirtual sun.security.mscapi.CPrivateKey.getHCryptKey:()J
12: invokestatic sun.security.mscapi.CSignature.signHash:(Z[BILjava/lang/String;JJ)[B
astore 3
start local 3 13: aload 3
invokestatic sun.security.mscapi.CSignature.convertEndianArray:([B)[B
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/security/mscapi/CSignature$RSA;
1 14 1 hash [B
9 14 2 noHashOID Z
13 14 3 result [B
Exceptions:
throws java.security.SignatureException
protected boolean engineVerify(byte[]);
descriptor: ([B)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=11, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.security.mscapi.CSignature$RSA.getDigestValue:()[B
astore 2
start local 2 1: aload 0
getfield sun.security.mscapi.CSignature$RSA.publicKey:Lsun/security/mscapi/CPublicKey;
invokevirtual sun.security.mscapi.CPublicKey.getHCryptKey:()J
lconst_0
lcmp
ifne 9
2: iconst_1
aload 2
aload 2
arraylength
3: aload 1
aload 1
arraylength
4: iconst_0
5: aload 0
getfield sun.security.mscapi.CSignature$RSA.messageDigestAlgorithm:Ljava/lang/String;
6: aload 0
getfield sun.security.mscapi.CSignature$RSA.publicKey:Lsun/security/mscapi/CPublicKey;
invokevirtual sun.security.mscapi.CPublicKey.getHCryptProvider:()J
7: lconst_0
8: invokestatic sun.security.mscapi.CSignature.verifyCngSignedHash:(I[BI[BIILjava/lang/String;JJ)Z
ireturn
9: StackMap locals: byte[]
StackMap stack:
aload 2
aload 2
arraylength
10: aload 0
getfield sun.security.mscapi.CSignature$RSA.messageDigestAlgorithm:Ljava/lang/String;
aload 1
invokestatic sun.security.mscapi.CSignature.convertEndianArray:([B)[B
11: aload 1
arraylength
aload 0
getfield sun.security.mscapi.CSignature$RSA.publicKey:Lsun/security/mscapi/CPublicKey;
invokevirtual sun.security.mscapi.CPublicKey.getHCryptProvider:()J
12: aload 0
getfield sun.security.mscapi.CSignature$RSA.publicKey:Lsun/security/mscapi/CPublicKey;
invokevirtual sun.security.mscapi.CPublicKey.getHCryptKey:()J
13: invokestatic sun.security.mscapi.CSignature.verifySignedHash:([BILjava/lang/String;[BIJJ)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/security/mscapi/CSignature$RSA;
0 14 1 sigBytes [B
1 14 2 hash [B
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
sigBytes
static native byte[] generatePublicKeyBlob(int, byte[], byte[]);
descriptor: (I[B[B)[B
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
keyBitLength
modulus
publicExponent
}
SourceFile: "CSignature.java"
NestHost: sun.security.mscapi.CSignature
InnerClasses:
public final NONEwithRSA = sun.security.mscapi.CSignature$NONEwithRSA of sun.security.mscapi.CSignature
RSA = sun.security.mscapi.CSignature$RSA of sun.security.mscapi.CSignature