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

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

Introduction

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

Prototype

public ElGamalParameterSpec getParams() 

Source Link

Usage

From source file:ElGamalPublicPGKey.java

License:Open Source License

public ElGamalPublicPGKey(ElGamalPublicKeySpec spec) {
    this.y = spec.getY();
    this.elSpec = new ElGamalParameterSpec(spec.getParams().getP(), spec.getParams().getG());
}