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

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

Introduction

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

Prototype

public ElGamalParameterSpec getParams() 

Source Link

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());
}