I am currently trying to compute an ECDSA signature with SHA256. I am using
ECC keys with a field size of 233 bits (specifically the sect233r1 curve).
Despite my efforts, Openssl insists on using SHA1 instead of SHA256. The
call I am using is:

X509_sign(cert, *issuer_privkey, EVP_get_digestbyname("ecdsa-with-SHA256"))

(*** I should note that this function call returns without complaint every
time)

>From what I understand, because my field size is smaller than 256 bits, the
ECDSA algorithm is going to truncate the last 23 bits of my hash. Will this
cause problems in validation? Will this cause Openssl to use SHA1 instead,
despite my passing a correct method digest? Have I overlooked something
obvious? I would appreciate some help in this matter.

Thanks,
DH
-- 
View this message in context: 
http://old.nabble.com/Sertificate-Signatures-using-ECDSA-with-sha256-...--tp31153077p31153077.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

Reply via email to