Re: Pls some basic c code to generate key pair using openssl

2010-12-20 Thread Mounir IDRASSI

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 Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


Pls some basic c code to generate key pair using openssl

2010-12-19 Thread akdin

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
-- 
View this message in context: 
http://old.nabble.com/Pls-some-basic-c-code-to-generate-key-pair-using-openssl-tp30491416p30491416.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org