abstract class sun.security.mscapi.RSASignature extends java.security.SignatureSpi
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: sun.security.mscapi.RSASignature
super_class: java.security.SignatureSpi
{
private final java.security.MessageDigest messageDigest;
descriptor: Ljava/security/MessageDigest;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String messageDigestAlgorithm;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean needsReset;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private sun.security.mscapi.Key privateKey;
descriptor: Lsun/security/mscapi/Key;
flags: (0x0002) ACC_PRIVATE
private sun.security.mscapi.Key publicKey;
descriptor: Lsun/security/mscapi/Key;
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.security.SignatureSpi.<init>:()V
1: aload 0
aconst_null
putfield sun.security.mscapi.RSASignature.privateKey:Lsun/security/mscapi/Key;
2: aload 0
aconst_null
putfield sun.security.mscapi.RSASignature.publicKey:Lsun/security/mscapi/Key;
3: aload 0
aconst_null
putfield sun.security.mscapi.RSASignature.messageDigest:Ljava/security/MessageDigest;
4: aload 0
aconst_null
putfield sun.security.mscapi.RSASignature.messageDigestAlgorithm:Ljava/lang/String;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/mscapi/RSASignature;
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.security.SignatureSpi.<init>:()V
1: aload 0
aconst_null
putfield sun.security.mscapi.RSASignature.privateKey:Lsun/security/mscapi/Key;
2: aload 0
aconst_null
putfield sun.security.mscapi.RSASignature.publicKey:Lsun/security/mscapi/Key;
3: aload 0
aload 1
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
putfield sun.security.mscapi.RSASignature.messageDigest:Ljava/security/MessageDigest;
4: aload 0
aload 0
getfield sun.security.mscapi.RSASignature.messageDigest:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.getAlgorithm:()Ljava/lang/String;
putfield sun.security.mscapi.RSASignature.messageDigestAlgorithm:Ljava/lang/String;
5: goto 8
StackMap locals: sun.security.mscapi.RSASignature java.lang.String
StackMap stack: java.security.NoSuchAlgorithmException
6: astore 2
start local 2 7: new java.security.ProviderException
dup
aload 2
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 8: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.security.mscapi.RSASignature.needsReset:Z
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/security/mscapi/RSASignature;
0 10 1 digestName Ljava/lang/String;
7 8 2 e Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
3 5 6 Class java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
digestName
protected void engineInitVerify(java.security.PublicKey);
descriptor: (Ljava/security/PublicKey;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=10, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.security.interfaces.RSAPublicKey
ifne 2
1: new java.security.InvalidKeyException
dup
ldc "Key type not supported"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
checkcast java.security.interfaces.RSAPublicKey
3: astore 2
start local 2 4: aload 1
instanceof sun.security.mscapi.RSAPublicKey
ifne 22
5: aload 2
invokeinterface java.security.interfaces.RSAPublicKey.getModulus:()Ljava/math/BigInteger;
astore 3
start local 3 6: aload 2
invokeinterface java.security.interfaces.RSAPublicKey.getPublicExponent:()Ljava/math/BigInteger;
astore 4
start local 4 7: aload 3
invokevirtual java.math.BigInteger.bitLength:()I
bipush 7
iadd
bipush -8
iand
8: aload 4
iconst_m1
sipush 16384
9: invokestatic sun.security.rsa.RSAKeyFactory.checkKeyLengths:(ILjava/math/BigInteger;II)V
10: aload 3
invokevirtual java.math.BigInteger.toByteArray:()[B
astore 5
start local 5 11: aload 4
invokevirtual java.math.BigInteger.toByteArray:()[B
astore 6
start local 6 12: aload 5
iconst_0
baload
ifne 14
13: aload 5
arraylength
iconst_1
isub
bipush 8
imul
goto 15
14: StackMap locals: sun.security.mscapi.RSASignature java.security.PublicKey java.security.interfaces.RSAPublicKey java.math.BigInteger java.math.BigInteger byte[] byte[]
StackMap stack:
aload 5
arraylength
bipush 8
imul
15: StackMap locals:
StackMap stack: int
istore 7
start local 7 16: iload 7
aload 5
aload 6
17: invokestatic sun.security.mscapi.RSASignature.generatePublicKeyBlob:(I[B[B)[B
astore 8
start local 8 18: aload 0
aload 8
iload 7
invokestatic sun.security.mscapi.RSASignature.importPublicKey:([BI)Lsun/security/mscapi/RSAPublicKey;
putfield sun.security.mscapi.RSASignature.publicKey:Lsun/security/mscapi/Key;
19: goto 23
StackMap locals: sun.security.mscapi.RSASignature java.security.PublicKey java.security.interfaces.RSAPublicKey java.math.BigInteger java.math.BigInteger byte[] byte[] int byte[]
StackMap stack: java.security.KeyStoreException
20: astore 9
start local 9 21: 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 22: StackMap locals: sun.security.mscapi.RSASignature java.security.PublicKey java.security.interfaces.RSAPublicKey
StackMap stack:
aload 0
aload 1
checkcast sun.security.mscapi.RSAPublicKey
putfield sun.security.mscapi.RSASignature.publicKey:Lsun/security/mscapi/Key;
23: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield sun.security.mscapi.RSASignature.privateKey:Lsun/security/mscapi/Key;
24: aload 0
invokevirtual sun.security.mscapi.RSASignature.resetDigest:()V
25: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lsun/security/mscapi/RSASignature;
0 26 1 key Ljava/security/PublicKey;
4 26 2 rsaKey Ljava/security/interfaces/RSAPublicKey;
6 22 3 modulus Ljava/math/BigInteger;
7 22 4 exponent Ljava/math/BigInteger;
11 22 5 modulusBytes [B
12 22 6 exponentBytes [B
16 22 7 keyBitLength I
18 22 8 keyBlob [B
21 22 9 e Ljava/security/KeyStoreException;
Exception table:
from to target type
18 19 20 Class java.security.KeyStoreException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
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
instanceof sun.security.mscapi.RSAPrivateKey
ifne 2
1: new java.security.InvalidKeyException
dup
ldc "Key type not supported"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast sun.security.mscapi.RSAPrivateKey
putfield sun.security.mscapi.RSASignature.privateKey:Lsun/security/mscapi/Key;
3: aload 0
getfield sun.security.mscapi.RSASignature.privateKey:Lsun/security/mscapi/Key;
invokevirtual sun.security.mscapi.Key.length:()I
bipush 7
iadd
bipush -8
iand
4: aconst_null
sipush 512
5: sipush 16384
6: invokestatic sun.security.rsa.RSAKeyFactory.checkKeyLengths:(ILjava/math/BigInteger;II)V
7: aload 0
aconst_null
putfield sun.security.mscapi.RSASignature.publicKey:Lsun/security/mscapi/Key;
8: aload 0
invokevirtual sun.security.mscapi.RSASignature.resetDigest:()V
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/security/mscapi/RSASignature;
0 10 1 key Ljava/security/PrivateKey;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected void resetDigest();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.mscapi.RSASignature.needsReset:Z
ifeq 3
1: aload 0
getfield sun.security.mscapi.RSASignature.messageDigest:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.reset:()V
2: aload 0
iconst_0
putfield sun.security.mscapi.RSASignature.needsReset:Z
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/mscapi/RSASignature;
protected byte[] getDigestValue();
descriptor: ()[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield sun.security.mscapi.RSASignature.needsReset:Z
1: aload 0
getfield sun.security.mscapi.RSASignature.messageDigest:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.digest:()[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/mscapi/RSASignature;
Exceptions:
throws java.security.SignatureException
protected void setDigestName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield sun.security.mscapi.RSASignature.messageDigestAlgorithm:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/mscapi/RSASignature;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
protected void engineUpdate(byte);
descriptor: (B)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.mscapi.RSASignature.messageDigest:Ljava/security/MessageDigest;
iload 1
invokevirtual java.security.MessageDigest.update:(B)V
1: aload 0
iconst_1
putfield sun.security.mscapi.RSASignature.needsReset:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/mscapi/RSASignature;
0 3 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=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield sun.security.mscapi.RSASignature.messageDigest:Ljava/security/MessageDigest;
aload 1
iload 2
iload 3
invokevirtual java.security.MessageDigest.update:([BII)V
1: aload 0
iconst_1
putfield sun.security.mscapi.RSASignature.needsReset:Z
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/mscapi/RSASignature;
0 3 1 b [B
0 3 2 off I
0 3 3 len I
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
b
off
len
protected void engineUpdate(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.mscapi.RSASignature.messageDigest:Ljava/security/MessageDigest;
aload 1
invokevirtual java.security.MessageDigest.update:(Ljava/nio/ByteBuffer;)V
1: aload 0
iconst_1
putfield sun.security.mscapi.RSASignature.needsReset:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/mscapi/RSASignature;
0 3 1 input Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
input
protected byte[] engineSign();
descriptor: ()[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.mscapi.RSASignature.getDigestValue:()[B
astore 1
start local 1 1: aload 0
instanceof sun.security.mscapi.RSASignature$Raw
istore 2
start local 2 2: iload 2
aload 1
aload 1
arraylength
3: aload 0
getfield sun.security.mscapi.RSASignature.messageDigestAlgorithm:Ljava/lang/String;
aload 0
getfield sun.security.mscapi.RSASignature.privateKey:Lsun/security/mscapi/Key;
invokevirtual sun.security.mscapi.Key.getHCryptProvider:()J
4: aload 0
getfield sun.security.mscapi.RSASignature.privateKey:Lsun/security/mscapi/Key;
invokevirtual sun.security.mscapi.Key.getHCryptKey:()J
5: invokestatic sun.security.mscapi.RSASignature.signHash:(Z[BILjava/lang/String;JJ)[B
astore 3
start local 3 6: aload 0
aload 3
invokevirtual sun.security.mscapi.RSASignature.convertEndianArray:([B)[B
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/mscapi/RSASignature;
1 7 1 hash [B
2 7 2 noHashOID Z
6 7 3 result [B
Exceptions:
throws java.security.SignatureException
private byte[] convertEndianArray(byte[]);
descriptor: ([B)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
arraylength
ifne 2
1: StackMap locals:
StackMap stack:
aload 1
areturn
2: StackMap locals:
StackMap stack:
aload 1
arraylength
newarray 8
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 7
5: StackMap locals: byte[] int
StackMap stack:
aload 2
iload 3
aload 1
aload 1
arraylength
iload 3
isub
iconst_1
isub
baload
bastore
6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
aload 1
arraylength
if_icmplt 5
end local 3 8: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/mscapi/RSASignature;
0 9 1 byteArray [B
3 9 2 retval [B
4 8 3 i I
MethodParameters:
Name Flags
byteArray
private static native byte[] signHash(boolean, byte[], int, java.lang.String, long, long);
descriptor: (Z[BILjava/lang/String;JJ)[B
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
noHashOID
hash
hashSize
hashAlgorithm
hCryptProv
hCryptKey
private static native boolean verifySignedHash(byte[], int, java.lang.String, byte[], int, long, long);
descriptor: ([BILjava/lang/String;[BIJJ)Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
hash
hashSize
hashAlgorithm
signature
signatureSize
hCryptProv
hCryptKey
protected boolean engineVerify(byte[]);
descriptor: ([B)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=9, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.security.mscapi.RSASignature.getDigestValue:()[B
astore 2
start local 2 1: aload 2
aload 2
arraylength
2: aload 0
getfield sun.security.mscapi.RSASignature.messageDigestAlgorithm:Ljava/lang/String;
aload 0
aload 1
invokevirtual sun.security.mscapi.RSASignature.convertEndianArray:([B)[B
3: aload 1
arraylength
aload 0
getfield sun.security.mscapi.RSASignature.publicKey:Lsun/security/mscapi/Key;
invokevirtual sun.security.mscapi.Key.getHCryptProvider:()J
4: aload 0
getfield sun.security.mscapi.RSASignature.publicKey:Lsun/security/mscapi/Key;
invokevirtual sun.security.mscapi.Key.getHCryptKey:()J
5: invokestatic sun.security.mscapi.RSASignature.verifySignedHash:([BILjava/lang/String;[BIJJ)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/mscapi/RSASignature;
0 6 1 sigBytes [B
1 6 2 hash [B
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
sigBytes
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.security.InvalidParameterException
dup
ldc "Parameter not supported"
invokespecial java.security.InvalidParameterException.<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/mscapi/RSASignature;
0 1 1 param Ljava/lang/String;
0 1 2 value Ljava/lang/Object;
Exceptions:
throws java.security.InvalidParameterException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
param
value
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.security.InvalidParameterException
dup
ldc "Parameter not supported"
invokespecial java.security.InvalidParameterException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/mscapi/RSASignature;
0 1 1 param Ljava/lang/String;
Exceptions:
throws java.security.InvalidParameterException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
param
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
static native sun.security.mscapi.RSAPublicKey importPublicKey(byte[], int);
descriptor: ([BI)Lsun/security/mscapi/RSAPublicKey;
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.security.KeyStoreException
MethodParameters:
Name Flags
keyBlob
keySize
}
SourceFile: "RSASignature.java"
NestMembers:
sun.security.mscapi.RSASignature$MD2 sun.security.mscapi.RSASignature$MD5 sun.security.mscapi.RSASignature$Raw sun.security.mscapi.RSASignature$SHA1 sun.security.mscapi.RSASignature$SHA256 sun.security.mscapi.RSASignature$SHA384 sun.security.mscapi.RSASignature$SHA512
InnerClasses:
public final MD2 = sun.security.mscapi.RSASignature$MD2 of sun.security.mscapi.RSASignature
public final MD5 = sun.security.mscapi.RSASignature$MD5 of sun.security.mscapi.RSASignature
public final Raw = sun.security.mscapi.RSASignature$Raw of sun.security.mscapi.RSASignature
public final SHA1 = sun.security.mscapi.RSASignature$SHA1 of sun.security.mscapi.RSASignature
public final SHA256 = sun.security.mscapi.RSASignature$SHA256 of sun.security.mscapi.RSASignature
public final SHA384 = sun.security.mscapi.RSASignature$SHA384 of sun.security.mscapi.RSASignature
public final SHA512 = sun.security.mscapi.RSASignature$SHA512 of sun.security.mscapi.RSASignature