Example usage for org.bouncycastle.jce.spec ElGamalPrivateKeySpec getX

List of usage examples for org.bouncycastle.jce.spec ElGamalPrivateKeySpec getX

Introduction

In this page you can find the example usage for org.bouncycastle.jce.spec ElGamalPrivateKeySpec getX.

Prototype

public BigInteger getX() 

Source Link

Document

Returns the private value x.

Usage

From source file:ElGamalPrivatePGKey.java

License:Open Source License

public ElGamalPrivatePGKey(ElGamalPrivateKeySpec spec) {
    this.x = spec.getX();
    this.elSpec = new ElGamalParameterSpec(spec.getParams().getP(), spec.getParams().getG());
}