Example usage for org.bouncycastle.crypto.params ECDomainParameters getSeed

List of usage examples for org.bouncycastle.crypto.params ECDomainParameters getSeed

Introduction

In this page you can find the example usage for org.bouncycastle.crypto.params ECDomainParameters getSeed.

Prototype

public byte[] getSeed() 

Source Link

Usage

From source file:org.cryptacular.adapter.AbstractWrappedECKey.java

License:Open Source License

/** @return  EC domain parameters. */
public ECParameterSpec getParams() {
    final ECDomainParameters params = delegate.getParameters();
    return new ECParameterSpec(EC5Util.convertCurve(params.getCurve(), params.getSeed()),
            new ECPoint(params.getG().normalize().getXCoord().toBigInteger(),
                    params.getG().normalize().getYCoord().toBigInteger()),
            params.getN(), params.getH().intValue());
}