Code example for ECFieldFp

     * Valid EC parameters 
    static final ECParameterSpec ecParam = new ECParameterSpec(
            new EllipticCurve(
                    new ECFieldFp(BigInteger.valueOf(23)),
                    BigInteger.valueOf(5), BigInteger.valueOf(3)), 
            new ECPoint(BigInteger.valueOf(1), BigInteger.valueOf(3)),
            BigInteger.valueOf(23), 1);
    private Util() { 
 * Utility class to provide "random" data. 
 * Returned value is always constant 10 if converted to BigInteger 
class MySecureRandomSpi extends SecureRandomSpi {
Stop searching for code, let great code find you!  Add Codota to your java IDE