On 2013-10-08 17:41, Vincent Ryan wrote:
> Currently, there is no public API for named curves.
Since I wanted a source-compatible BC, JDK 6-7, and Android solution, I
ended-up using
public key samples instead:
ECParameterSpec spec = ((ECPublicKey) KeyFactory.getInstance
("EC").generatePublic (n
Pardon me. It was actually BC 1.45 which screw-up, not JDK 7.
Anyway, the bottom line (for me as developer...) is that BC and JDK 7 are
incompatible at the src level.
thanx
Anders
On 2013-10-08 17:41, Vincent Ryan wrote:
> Currently, there is no public API for named curves.
>
> However you can
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 c
On 2013-10-08 17:41, Vincent Ryan wrote:
> Currently, there is no public API for named curves.
>
> However you can generate named curves using the SunEC provider and the
> ECParameterSpec class.
> For example,
>
> AlgorithmParameters parameters =
> AlgorithmParameters.getInstance("EC",
*sigh* I need to read emails a lot more closely.
Ignore this - for some reason I was reading this as the key pair generation
stuff rather than the parameter generation stuff.
I'm going to try out this construct on BouncyCastle and see if it works for
their curve tables.
Mike
At 03:14 PM 1
At 01:38 PM 10/8/2013, Vincent Ryan wrote:
>On 8 Oct 2013, at 17:56, Michael StJohns wrote:
>
>> I use this construct a lot, but there are a number of cases (e.g. where I'm
>> trying to take an EC key and turn it into a structure to send to a smart
>> card) where what I really need is to be able
On 8 Oct 2013, at 17:56, Michael StJohns wrote:
> I use this construct a lot, but there are a number of cases (e.g. where I'm
> trying to take an EC key and turn it into a structure to send to a smart
> card) where what I really need is to be able to produce an EllipticCurve
> (actually ECPara
I use this construct a lot, but there are a number of cases (e.g. where I'm
trying to take an EC key and turn it into a structure to send to a smart card)
where what I really need is to be able to produce an EllipticCurve (actually
ECParamaterSpec) from a name.
I started looking at why ECGenP
Currently, there is no public API for named curves.
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(
If you have the X and Y points and the name of a public key you can create a
ECPublicKey using BouncyCastle.
I cannot find any counterpart in JDK 7. What am I missing?
BC:
return KeyFactory.getInstance ("EC").generatePublic (new ECPublicKeySpec (new
ECPoint (x, y), new ECNamedCurveSpec (name,.
10 matches
Mail list logo