public class org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator
super_class: java.lang.Object
{
private org.bouncycastle.crypto.params.DHKeyGenerationParameters param;
descriptor: Lorg/bouncycastle/crypto/params/DHKeyGenerationParameters;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator this
0: .line 19
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/generators/DHBasicKeyPairGenerator;
public void init(org.bouncycastle.crypto.KeyGenerationParameters);
descriptor: (Lorg/bouncycastle/crypto/KeyGenerationParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 // org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator this
start local 1 // org.bouncycastle.crypto.KeyGenerationParameters param
0: .line 27
aload 0 /* this */
aload 1 /* param */
checkcast org.bouncycastle.crypto.params.DHKeyGenerationParameters
putfield org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/DHKeyGenerationParameters;
1: .line 28
return
end local 1 // org.bouncycastle.crypto.KeyGenerationParameters param
end local 0 // org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/generators/DHBasicKeyPairGenerator;
0 2 1 param Lorg/bouncycastle/crypto/KeyGenerationParameters;
MethodParameters:
Name Flags
param
public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair();
descriptor: ()Lorg/bouncycastle/crypto/AsymmetricCipherKeyPair;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=1
start local 0 // org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator this
0: .line 32
getstatic org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.INSTANCE:Lorg/bouncycastle/crypto/generators/DHKeyGeneratorHelper;
astore 1 /* helper */
start local 1 // org.bouncycastle.crypto.generators.DHKeyGeneratorHelper helper
1: .line 33
aload 0 /* this */
getfield org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/DHKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.DHKeyGenerationParameters.getParameters:()Lorg/bouncycastle/crypto/params/DHParameters;
astore 2 /* dhp */
start local 2 // org.bouncycastle.crypto.params.DHParameters dhp
2: .line 35
aload 1 /* helper */
aload 2 /* dhp */
aload 0 /* this */
getfield org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator.param:Lorg/bouncycastle/crypto/params/DHKeyGenerationParameters;
invokevirtual org.bouncycastle.crypto.params.DHKeyGenerationParameters.getRandom:()Ljava/security/SecureRandom;
invokevirtual org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.calculatePrivate:(Lorg/bouncycastle/crypto/params/DHParameters;Ljava/security/SecureRandom;)Ljava/math/BigInteger;
astore 3 /* x */
start local 3 // java.math.BigInteger x
3: .line 36
aload 1 /* helper */
aload 2 /* dhp */
aload 3 /* x */
invokevirtual org.bouncycastle.crypto.generators.DHKeyGeneratorHelper.calculatePublic:(Lorg/bouncycastle/crypto/params/DHParameters;Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 4 /* y */
start local 4 // java.math.BigInteger y
4: .line 38
new org.bouncycastle.crypto.AsymmetricCipherKeyPair
dup
5: .line 39
new org.bouncycastle.crypto.params.DHPublicKeyParameters
dup
aload 4 /* y */
aload 2 /* dhp */
invokespecial org.bouncycastle.crypto.params.DHPublicKeyParameters.<init>:(Ljava/math/BigInteger;Lorg/bouncycastle/crypto/params/DHParameters;)V
6: .line 40
new org.bouncycastle.crypto.params.DHPrivateKeyParameters
dup
aload 3 /* x */
aload 2 /* dhp */
invokespecial org.bouncycastle.crypto.params.DHPrivateKeyParameters.<init>:(Ljava/math/BigInteger;Lorg/bouncycastle/crypto/params/DHParameters;)V
7: .line 38
invokespecial org.bouncycastle.crypto.AsymmetricCipherKeyPair.<init>:(Lorg/bouncycastle/crypto/CipherParameters;Lorg/bouncycastle/crypto/CipherParameters;)V
areturn
end local 4 // java.math.BigInteger y
end local 3 // java.math.BigInteger x
end local 2 // org.bouncycastle.crypto.params.DHParameters dhp
end local 1 // org.bouncycastle.crypto.generators.DHKeyGeneratorHelper helper
end local 0 // org.bouncycastle.crypto.generators.DHBasicKeyPairGenerator this
LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/bouncycastle/crypto/generators/DHBasicKeyPairGenerator;
1 8 1 helper Lorg/bouncycastle/crypto/generators/DHKeyGeneratorHelper;
2 8 2 dhp Lorg/bouncycastle/crypto/params/DHParameters;
3 8 3 x Ljava/math/BigInteger;
4 8 4 y Ljava/math/BigInteger;
}
SourceFile: "DHBasicKeyPairGenerator.java"