At 03:44 PM 10/8/2013, Michael StJohns wrote:
This fails using bouncy castle. There is no "EC" factory for AlgorithmParameters for BC 1.49. Mike >I'm going to try out this construct on BouncyCastle and see if it works for >their curve tables. > >>>>> >>>>> However you can generate named curves using the SunEC provider and the >>>>> ECParameterSpec class. >>>>> For example, >>>>> >>>>> AlgorithmParameters parameters = >>>>> AlgorithmParameters.getInstance("EC", "SunEC"); >>>>> parameters.init(new ECGenParameterSpec("secp256r1")); >>>>> ECParameterSpec ecParameters = >>>>> parameters.getParameterSpec(ECParameterSpec.class);