Code example for ECParameterSpec

0
        this.ecSpec = null;
    } 
 
    private ECParameterSpec createSpec(EllipticCurve ellipticCurve, ECDomainParameters dp)
    { 
        return new ECParameterSpec(
                ellipticCurve,
                new ECPoint(
                        dp.getG().getX().toBigInteger(),
                        dp.getG().getY().toBigInteger()),
                        dp.getN(),
                        dp.getH().intValue());
    } 
     
    public JCEECPublicKey( 
        ECPublicKey     key)
    { 
        this.algorithm = key.getAlgorithm();
        this.ecSpec = key.getParams();
        this.q = EC5Util.convertPoint(this.ecSpec, key.getW(), false);
Stop searching for code, let great code find you!  Add Codota to your java IDE