Example usage for org.bouncycastle.crypto.params ElGamalPublicKeyParameters getParameters

List of usage examples for org.bouncycastle.crypto.params ElGamalPublicKeyParameters getParameters

Introduction

In this page you can find the example usage for org.bouncycastle.crypto.params ElGamalPublicKeyParameters getParameters.

Prototype

public ElGamalParameters getParameters() 

Source Link

Usage

From source file:ElGamalPublicPGKey.java

License:Open Source License

public ElGamalPublicPGKey(ElGamalPublicKeyParameters params) {
    this.y = params.getY();
    this.elSpec = new ElGamalParameterSpec(params.getParameters().getP(), params.getParameters().getG());
}