I read the public ECKEY in shown below from the x509 x509= PEM_read_bio_X509(bio,NULL, 0, NULL); //its public there is no password EVP_PKEY *evpkey = X509_get_pubkey(x509); pubeckey= EVP_PKEY_get1_EC_KEY(evpkey); BIO_free(bio);
//But do I need this setting the curvetype??? //Will it know the curve type EC_GROUP *curve= EC_GROUP_new_by_curve_name(curvetype); int ret= EC_KEY_set_group(pubeckey,curve); //I use this to verify the signature int rc = ECDSA_verify(0, result, SHA256_DIGEST_LENGTH, signature.bytes, signature.length, pubeckey); -- View this message in context: http://openssl.6102.n7.nabble.com/ECDSA-public-key-already-know-the-curve-type-tp43390.html Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org