Re: EVP Signing and Verifying

2020-04-28 Thread Matt Caswell
On 27/04/2020 20:51, Thomas Dwyer III wrote: > The first signing example at > https://wiki.openssl.org/index.php/EVP_Signing_and_Verifying explicitly > calls both EVP_DigestInit_ex() and EVP_DigestSignInit(). Is the former > really necessary? It appears that the implementation of > EVP_DigestSig

EVP Signing and Verifying

2020-04-27 Thread Thomas Dwyer III
The first signing example at https://wiki.openssl.org/index.php/EVP_Signing_and_Verifying explicitly calls both EVP_DigestInit_ex() and EVP_DigestSignInit(). Is the former really necessary? It appears that the implementation of EVP_DigestSignInit() in all versions of OpenSSL internally invokes EVP_

Re: [openssl-users] Question w.r.t EVP Signing and Verifying

2018-08-31 Thread Viktor Dukhovni
> On Aug 31, 2018, at 1:52 AM, Kumar Venkatarao > wrote: > > Why does EVP_DigestVerifyFinal fail for ECDSA keys? Because you're not using it correctly. > Is it a known problem ? Yes, incorrect use will lead to unexpected results. No, there is no known problem in correct use of EC signatur

[openssl-users] Question w.r.t EVP Signing and Verifying

2018-08-30 Thread Kumar Venkatarao
Hi, I am writing a program to do pairwise consistency checks using EVP API's for RSA and ECDSA keys. The private and public keys are obtained from a PKCS12 file. I've based my program on the sample code provided at - https://wiki.openssl.org/index.php/EVP_Signing_and_Verifying Version of openssl