com.google.bitcoin.bouncycastle.crypto.params.MQVPublicParameters

Here are the examples of the java api class com.google.bitcoin.bouncycastle.crypto.params.MQVPublicParameters taken from open source projects.

1. ECMQVBasicAgreement#calculateAgreement()

Project: bitcoin-android
File: ECMQVBasicAgreement.java
public BigInteger calculateAgreement(CipherParameters pubKey) {
    MQVPublicParameters pubParams = (MQVPublicParameters) pubKey;
    ECPrivateKeyParameters staticPrivateKey = privParams.getStaticPrivateKey();
    ECPoint agreement = calculateMqvAgreement(staticPrivateKey.getParameters(), staticPrivateKey, privParams.getEphemeralPrivateKey(), privParams.getEphemeralPublicKey(), pubParams.getStaticPublicKey(), pubParams.getEphemeralPublicKey());
    return agreement.getX().toBigInteger();
}