public class org.bouncycastle.crypto.agreement.ECDHBasicAgreement implements org.bouncycastle.crypto.BasicAgreement
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.agreement.ECDHBasicAgreement
super_class: java.lang.Object
{
private org.bouncycastle.crypto.params.ECPrivateKeyParameters key;
descriptor: Lorg/bouncycastle/crypto/params/ECPrivateKeyParameters;
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.agreement.ECDHBasicAgreement this
0: .line 26
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // org.bouncycastle.crypto.agreement.ECDHBasicAgreement this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/agreement/ECDHBasicAgreement;
public void init(org.bouncycastle.crypto.CipherParameters);
descriptor: (Lorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 // org.bouncycastle.crypto.agreement.ECDHBasicAgreement this
start local 1 // org.bouncycastle.crypto.CipherParameters key
0: .line 34
aload 0 /* this */
aload 1 /* key */
checkcast org.bouncycastle.crypto.params.ECPrivateKeyParameters
putfield org.bouncycastle.crypto.agreement.ECDHBasicAgreement.key:Lorg/bouncycastle/crypto/params/ECPrivateKeyParameters;
1: .line 35
return
end local 1 // org.bouncycastle.crypto.CipherParameters key
end local 0 // org.bouncycastle.crypto.agreement.ECDHBasicAgreement this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/agreement/ECDHBasicAgreement;
0 2 1 key Lorg/bouncycastle/crypto/CipherParameters;
MethodParameters:
Name Flags
key
public java.math.BigInteger calculateAgreement(org.bouncycastle.crypto.CipherParameters);
descriptor: (Lorg/bouncycastle/crypto/CipherParameters;)Ljava/math/BigInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 // org.bouncycastle.crypto.agreement.ECDHBasicAgreement this
start local 1 // org.bouncycastle.crypto.CipherParameters pubKey
0: .line 40
aload 1 /* pubKey */
checkcast org.bouncycastle.crypto.params.ECPublicKeyParameters
astore 2 /* pub */
start local 2 // org.bouncycastle.crypto.params.ECPublicKeyParameters pub
1: .line 41
aload 2 /* pub */
invokevirtual org.bouncycastle.crypto.params.ECPublicKeyParameters.getQ:()Lorg/bouncycastle/math/ec/ECPoint;
aload 0 /* this */
getfield org.bouncycastle.crypto.agreement.ECDHBasicAgreement.key:Lorg/bouncycastle/crypto/params/ECPrivateKeyParameters;
invokevirtual org.bouncycastle.crypto.params.ECPrivateKeyParameters.getD:()Ljava/math/BigInteger;
invokevirtual org.bouncycastle.math.ec.ECPoint.multiply:(Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECPoint;
astore 3 /* P */
start local 3 // org.bouncycastle.math.ec.ECPoint P
2: .line 45
aload 3 /* P */
invokevirtual org.bouncycastle.math.ec.ECPoint.getX:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
areturn
end local 3 // org.bouncycastle.math.ec.ECPoint P
end local 2 // org.bouncycastle.crypto.params.ECPublicKeyParameters pub
end local 1 // org.bouncycastle.crypto.CipherParameters pubKey
end local 0 // org.bouncycastle.crypto.agreement.ECDHBasicAgreement this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/crypto/agreement/ECDHBasicAgreement;
0 3 1 pubKey Lorg/bouncycastle/crypto/CipherParameters;
1 3 2 pub Lorg/bouncycastle/crypto/params/ECPublicKeyParameters;
2 3 3 P Lorg/bouncycastle/math/ec/ECPoint;
MethodParameters:
Name Flags
pubKey
}
SourceFile: "ECDHBasicAgreement.java"