Creating an EC Public Key using Named Curves
Michael StJohns
mstjohns at comcast.net
Tue Oct 8 20:14:45 UTC 2013
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);
More information about the security-dev
mailing list