public class org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA extends org.bouncycastle.jce.provider.JDKKeyPairGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA
super_class: org.bouncycastle.jce.provider.JDKKeyPairGenerator
{
static final java.math.BigInteger defaultPublicExponent;
descriptor: Ljava/math/BigInteger;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int defaultTests;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 12
org.bouncycastle.crypto.params.RSAKeyGenerationParameters param;
descriptor: Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
flags: (0x0000)
org.bouncycastle.crypto.generators.RSAKeyPairGenerator engine;
descriptor: Lorg/bouncycastle/crypto/generators/RSAKeyPairGenerator;
flags: (0x0000)
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc 65537
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
putstatic org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.defaultPublicExponent:Ljava/math/BigInteger;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
ldc "RSA"
invokespecial org.bouncycastle.jce.provider.JDKKeyPairGenerator.<init>:(Ljava/lang/String;)V
1: aload 0
new org.bouncycastle.crypto.generators.RSAKeyPairGenerator
dup
invokespecial org.bouncycastle.crypto.generators.RSAKeyPairGenerator.<init>:()V
putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.engine:Lorg/bouncycastle/crypto/generators/RSAKeyPairGenerator;
2: aload 0
new org.bouncycastle.crypto.params.RSAKeyGenerationParameters
dup
getstatic org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.defaultPublicExponent:Ljava/math/BigInteger;
3: new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
sipush 2048
bipush 12
invokespecial org.bouncycastle.crypto.params.RSAKeyGenerationParameters.<init>:(Ljava/math/BigInteger;Ljava/security/SecureRandom;II)V
4: putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
5: aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.engine:Lorg/bouncycastle/crypto/generators/RSAKeyPairGenerator;
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.generators.RSAKeyPairGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$RSA;
public void initialize(int, java.security.SecureRandom);
descriptor: (ILjava/security/SecureRandom;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new org.bouncycastle.crypto.params.RSAKeyGenerationParameters
dup
getstatic org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.defaultPublicExponent:Ljava/math/BigInteger;
1: aload 2
iload 1
bipush 12
invokespecial org.bouncycastle.crypto.params.RSAKeyGenerationParameters.<init>:(Ljava/math/BigInteger;Ljava/security/SecureRandom;II)V
2: putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
3: aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.engine:Lorg/bouncycastle/crypto/generators/RSAKeyPairGenerator;
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.generators.RSAKeyPairGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$RSA;
0 5 1 strength I
0 5 2 random Ljava/security/SecureRandom;
MethodParameters:
Name Flags
strength
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=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof java.security.spec.RSAKeyGenParameterSpec
ifne 2
1: new java.security.InvalidAlgorithmParameterException
dup
ldc "parameter object not a RSAKeyGenParameterSpec"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
checkcast java.security.spec.RSAKeyGenParameterSpec
astore 3
start local 3 3: aload 0
new org.bouncycastle.crypto.params.RSAKeyGenerationParameters
dup
4: aload 3
invokevirtual java.security.spec.RSAKeyGenParameterSpec.getPublicExponent:()Ljava/math/BigInteger;
5: aload 2
aload 3
invokevirtual java.security.spec.RSAKeyGenParameterSpec.getKeysize:()I
bipush 12
invokespecial org.bouncycastle.crypto.params.RSAKeyGenerationParameters.<init>:(Ljava/math/BigInteger;Ljava/security/SecureRandom;II)V
6: putfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
7: aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.engine:Lorg/bouncycastle/crypto/generators/RSAKeyPairGenerator;
aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.param:Lorg/bouncycastle/crypto/params/RSAKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.generators.RSAKeyPairGenerator.init:(Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$RSA;
0 9 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 9 2 random Ljava/security/SecureRandom;
3 9 3 rsaParams Ljava/security/spec/RSAKeyGenParameterSpec;
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=6, locals=4, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA.engine:Lorg/bouncycastle/crypto/generators/RSAKeyPairGenerator;
invokevirtual org.bouncycastle.crypto.generators.RSAKeyPairGenerator.generateKeyPair:()Lorg/bouncycastle/crypto/AsymmetricCipherKeyPair;
astore 1
start local 1 1: aload 1
invokevirtual org.bouncycastle.crypto.AsymmetricCipherKeyPair.getPublic:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.RSAKeyParameters
astore 2
start local 2 2: aload 1
invokevirtual org.bouncycastle.crypto.AsymmetricCipherKeyPair.getPrivate:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters
astore 3
start local 3 3: new java.security.KeyPair
dup
new org.bouncycastle.jce.provider.JCERSAPublicKey
dup
aload 2
invokespecial org.bouncycastle.jce.provider.JCERSAPublicKey.<init>:(Lorg/bouncycastle/crypto/params/RSAKeyParameters;)V
4: new org.bouncycastle.jce.provider.JCERSAPrivateCrtKey
dup
aload 3
invokespecial org.bouncycastle.jce.provider.JCERSAPrivateCrtKey.<init>:(Lorg/bouncycastle/crypto/params/RSAPrivateCrtKeyParameters;)V
5: invokespecial java.security.KeyPair.<init>:(Ljava/security/PublicKey;Ljava/security/PrivateKey;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/jce/provider/JDKKeyPairGenerator$RSA;
1 6 1 pair Lorg/bouncycastle/crypto/AsymmetricCipherKeyPair;
2 6 2 pub Lorg/bouncycastle/crypto/params/RSAKeyParameters;
3 6 3 priv Lorg/bouncycastle/crypto/params/RSAPrivateCrtKeyParameters;
}
SourceFile: "JDKKeyPairGenerator.java"
NestHost: org.bouncycastle.jce.provider.JDKKeyPairGenerator
InnerClasses:
public RSA = org.bouncycastle.jce.provider.JDKKeyPairGenerator$RSA of org.bouncycastle.jce.provider.JDKKeyPairGenerator