Code example for ECGenParameterSpec

0
            ecParameters.put(Integer.valueOf(239), new ECGenParameterSpec("prime239v1"));
            ecParameters.put(Integer.valueOf(256), new ECGenParameterSpec("prime256v1")); // a.k.a P-256
 
            ecParameters.put(Integer.valueOf(224), new ECGenParameterSpec("P-224"));
            ecParameters.put(Integer.valueOf(384), new ECGenParameterSpec("P-384"));
            ecParameters.put(Integer.valueOf(521), new ECGenParameterSpec("P-521"));
            // END android-changed 
        } 
 
        public EC() 
        { 
            super("EC"); 
            this.algorithm = "EC";
        } 
 
        public EC( 
            String  algorithm)
        { 
            super(algorithm);
            this.algorithm = algorithm;
        }