Thanks yes of course all return codes are checked as well as the x509 is
known to be
obtained in a secure manner.
so I really do not have to set the curve, this simple excerpt is enough.
The reason I ask is I might eventually replace the x509 and use a different
curve
in the future and with this basic abstracted code below the process can be
done without any knowledge of
the curve that was used.
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);
int rc = ECDSA_verify(***);
Again this is an abstraction, all return codes are checked as well as
knowledge that the
x509 has been obtained in a secure manner.
--
View this message in context:
http://openssl.6102.n7.nabble.com/ECDSA-public-key-already-know-the-curve-type-tp43390p43392.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]