public final class sun.security.mscapi.RSAKeyPairGenerator extends java.security.KeyPairGeneratorSpi
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.security.mscapi.RSAKeyPairGenerator
super_class: java.security.KeyPairGeneratorSpi
{
static final int KEY_SIZE_MIN;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 512
static final int KEY_SIZE_MAX;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 16384
private int keySize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.security.KeyPairGeneratorSpi.<init>:()V
1: aload 0
getstatic sun.security.util.SecurityProviderConstants.DEF_RSA_KEY_SIZE:I
aconst_null
invokevirtual sun.security.mscapi.RSAKeyPairGenerator.initialize:(ILjava/security/SecureRandom;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/mscapi/RSAKeyPairGenerator;
public void initialize(int, java.security.SecureRandom);
descriptor: (ILjava/security/SecureRandom;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 1
aconst_null
1: sipush 512
sipush 16384
2: invokestatic sun.security.rsa.RSAKeyFactory.checkKeyLengths:(ILjava/math/BigInteger;II)V
3: goto 6
StackMap locals:
StackMap stack: java.security.InvalidKeyException
4: astore 3
start local 3 5: new java.security.InvalidParameterException
dup
aload 3
invokevirtual java.security.InvalidKeyException.getMessage:()Ljava/lang/String;
invokespecial java.security.InvalidParameterException.<init>:(Ljava/lang/String;)V
athrow
end local 3 6: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield sun.security.mscapi.RSAKeyPairGenerator.keySize:I
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/mscapi/RSAKeyPairGenerator;
0 8 1 keySize I
0 8 2 random Ljava/security/SecureRandom;
5 6 3 e Ljava/security/InvalidKeyException;
Exception table:
from to target type
0 3 4 Class java.security.InvalidKeyException
MethodParameters:
Name Flags
keySize
random
public void initialize(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
descriptor: (Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 3
1: getstatic sun.security.util.SecurityProviderConstants.DEF_RSA_KEY_SIZE:I
istore 3
start local 3 2: goto 13
end local 3 StackMap locals:
StackMap stack:
3: aload 1
instanceof java.security.spec.RSAKeyGenParameterSpec
ifeq 10
4: aload 1
checkcast java.security.spec.RSAKeyGenParameterSpec
invokevirtual java.security.spec.RSAKeyGenParameterSpec.getPublicExponent:()Ljava/math/BigInteger;
ifnull 8
5: new java.security.InvalidAlgorithmParameterException
dup
6: ldc "Exponent parameter is not supported"
7: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 1
checkcast java.security.spec.RSAKeyGenParameterSpec
invokevirtual java.security.spec.RSAKeyGenParameterSpec.getKeysize:()I
istore 3
start local 3 9: goto 13
end local 3 10: StackMap locals:
StackMap stack:
new java.security.InvalidAlgorithmParameterException
dup
11: ldc "Params must be an instance of RSAKeyGenParameterSpec"
12: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
start local 3 13: StackMap locals: int
StackMap stack:
iload 3
aconst_null
14: sipush 512
sipush 16384
15: invokestatic sun.security.rsa.RSAKeyFactory.checkKeyLengths:(ILjava/math/BigInteger;II)V
16: goto 21
StackMap locals:
StackMap stack: java.security.InvalidKeyException
17: astore 4
start local 4 18: new java.security.InvalidAlgorithmParameterException
dup
19: ldc "Invalid Key sizes"
aload 4
20: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 21: StackMap locals:
StackMap stack:
aload 0
iload 3
putfield sun.security.mscapi.RSAKeyPairGenerator.keySize:I
22: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/security/mscapi/RSAKeyPairGenerator;
0 23 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 23 2 random Ljava/security/SecureRandom;
2 3 3 tmpSize I
9 10 3 tmpSize I
13 23 3 tmpSize I
18 21 4 e Ljava/security/InvalidKeyException;
Exception table:
from to target type
13 16 17 Class java.security.InvalidKeyException
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
params
random
public java.security.KeyPair generateKeyPair();
descriptor: ()Ljava/security/KeyPair;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.mscapi.RSAKeyPairGenerator.keySize:I
1: new java.lang.StringBuilder
dup
ldc "{"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.util.UUID.randomUUID:()Ljava/util/UUID;
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "}"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokestatic sun.security.mscapi.RSAKeyPairGenerator.generateRSAKeyPair:(ILjava/lang/String;)Lsun/security/mscapi/RSAKeyPair;
3: astore 1
start local 1 4: new java.security.KeyPair
dup
aload 1
invokevirtual sun.security.mscapi.RSAKeyPair.getPublic:()Lsun/security/mscapi/RSAPublicKey;
aload 1
invokevirtual sun.security.mscapi.RSAKeyPair.getPrivate:()Lsun/security/mscapi/RSAPrivateKey;
invokespecial java.security.KeyPair.<init>:(Ljava/security/PublicKey;Ljava/security/PrivateKey;)V
5: areturn
end local 1 6: StackMap locals:
StackMap stack: java.security.KeyException
astore 1
start local 1 7: new java.security.ProviderException
dup
aload 1
invokespecial java.security.ProviderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/mscapi/RSAKeyPairGenerator;
4 6 1 keys Lsun/security/mscapi/RSAKeyPair;
7 8 1 e Ljava/security/KeyException;
Exception table:
from to target type
0 5 6 Class java.security.KeyException
private static native sun.security.mscapi.RSAKeyPair generateRSAKeyPair(int, java.lang.String);
descriptor: (ILjava/lang/String;)Lsun/security/mscapi/RSAKeyPair;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.security.KeyException
MethodParameters:
Name Flags
keySize
keyContainerName
}
SourceFile: "RSAKeyPairGenerator.java"