Perfect, thanks.
On 12/30/2016 8:27 PM, Viktor Dukhovni wrote:
On Dec 30, 2016, at 8:20 PM, Ken Goldman wrote:
- EC_KEY ecKey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)
- convert x and y from bin to bignum
- EC_KEY_set_public_key_affine_coordinates(ecKey, x, y)
- EVP_PUBKEY evpPubkey =
> On Dec 30, 2016, at 8:20 PM, Ken Goldman wrote:
>
> - EC_KEY ecKey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)
> - convert x and y from bin to bignum
> - EC_KEY_set_public_key_affine_coordinates(ecKey, x, y)
> - EVP_PUBKEY evpPubkey = EVP_PKEY_new()
> - EVP_PKEY_set1_EC_KEY(evpPubkey, ecK
My overall goal is to create an X509 certificate for an ECC public key.
I am starting with the X and Y points. The curve is NIST_P256.
Here's the basic code. Am I close?
- EC_KEY ecKey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)
- convert x and y from bin to bignum
- EC_KEY_set_public_ke