Re: ECDSA - Signature verify

2014-06-12 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of Anant Rao Sent: Wednesday, June 11, 2014 09:45 The signature is generated by a client program (also a 'c' program). What is the format of a signature? How do I find out? The format for an ECDSA or DSA signature is an ASN.1 SEQUENCE of two

Re: ECDSA - Signature verify

2014-06-11 Thread Anant Rao
Hi Matt, Thanks very much! I'm glad I'm on the right track in regards to EVP vs EC. The signature is generated by a client program (also a 'c' program). What is the format of a signature? How do I find out? Just to confirm - whether it's ECDSA or RSA, for verification, we just get the EVP_PKEY

Re: ECDSA - Signature verify

2014-06-10 Thread Swair Mehta
remember doing something along the lines of : ecPublicKey = X509_get_pubkey(readCertificate); EC_KEY *ecKey; ecKey = EVP_PKEY_get1_EC_KEY(ecPublicKey); EC_KEY_set_asn1_flag(ecKey, Put in the curve name); ecGroup = EC_GROUP_new_by_curve_name(Put in the curve name); EC_KEY_set_group(ecKey,

Re: ECDSA - Signature verify

2014-06-10 Thread Matt Caswell
On 10 June 2014 15:24, Anant Rao a...@noknok.com wrote: Hi, Objective in one-line: = Verify a signature, given an ECDSA public key in X509 format. Details: == I read an X509 cert stored on disk. The following are some of its contents: Public Key Algorithm: