Hi,

Here are the basic calls needed to generate an ECC key (this example uses NSA Suite B curve P-256) :

int curveId = OBJ_sn2nid("prime256v1");
EC_GROUP* pGroup = EC_GROUP_new_by_curve_name(curveId);
EC_KEY* pKey = EC_KEY_new();
EC_KEY_set_group(pKey, pGroup);
EC_KEY_generate_key(pKey));

Cheers,
--
Mounir IDRASSI
IDRIX
http://www.idrix.fr

On 12/19/2010 8:47 AM, akdin wrote:
I am a new user of openssl. If anybody post basic C code to generate ecc key
pairsusing openssl it will give me an insight to produce further .

Ur help will be highly appreciable.,

regards
akdin

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to