Example usage for org.bouncycastle.crypto.params ElGamalPrivateKeyParameters getX

List of usage examples for org.bouncycastle.crypto.params ElGamalPrivateKeyParameters getX

Introduction

In this page you can find the example usage for org.bouncycastle.crypto.params ElGamalPrivateKeyParameters getX.

Prototype

public BigInteger getX() 

Source Link

Usage

From source file:ElGamalPrivatePGKey.java

License:Open Source License

public ElGamalPrivatePGKey(ElGamalPrivateKeyParameters params) {
    this.x = params.getX();
    this.elSpec = new ElGamalParameterSpec(params.getParameters().getP(), params.getParameters().getG());
}