Code example for ECGenParameterSpec

0
            ecParameters.put(Integers.valueOf(192), new ECGenParameterSpec("prime192v1")); // a.k.a P-192
            ecParameters.put(Integers.valueOf(239), new ECGenParameterSpec("prime239v1"));
            ecParameters.put(Integers.valueOf(256), new ECGenParameterSpec("prime256v1")); // a.k.a P-256
 
            ecParameters.put(Integers.valueOf(224), new ECGenParameterSpec("P-224"));
            ecParameters.put(Integers.valueOf(384), new ECGenParameterSpec("P-384"));
            ecParameters.put(Integers.valueOf(521), new ECGenParameterSpec("P-521"));
        } 
 
        public EC() 
        { 
            super("EC"); 
            this.algorithm = "EC";
            this.configuration = BouncyCastleProvider.CONFIGURATION;
        } 
 
        public EC( 
            String  algorithm,
            ProviderConfiguration configuration)
        { 
            super(algorithm);