I'm trying to determine the most efficient way to sign data and verify the signature using openssl. I want to use SHA1 and DSS. I have this working now, something Dr Henson gave me before. Just tring to fid and ways to make it more effient at this operation as I'm signing and verify all messages. I using the following functions:

EVP_SignInit()
EVP_SignUpdate()
EVP_SignFinal()

To sign And

EVP_VerifyInit()
EVP_VerifyUpdate()
EVP_VerifyFinal()

to verify the signatures.

Now I have a couple of questions.
1. Since I will have some person signing different data each time is it suggested to still call EVP_MD_CTX_cleanup() between signing the different msgs or don't bother to clean it up as it will be reused? I'm think I do since it's a product of the data you are signing.
2. Any need to call EVP_cleanup() after each signing?
3. Same goes when verify the data, do I need to call these functions to cleanup after wards? I think I do but want to make sure.


Thanks,

Frank





______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to