Example usage for org.bouncycastle.jcajce.provider.asymmetric.util EC5Util convertCurve

List of usage examples for org.bouncycastle.jcajce.provider.asymmetric.util EC5Util convertCurve

Introduction

In this page you can find the example usage for org.bouncycastle.jcajce.provider.asymmetric.util EC5Util convertCurve.

Prototype

public static EllipticCurve convertCurve(ECCurve curve, byte[] seed) 

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