Hi Steve, Thanks. I will try out this.
Can you point me to some documents or reading materials which explains the working Encryption and decryption functions (including padding), apart from the man pages available? Regards, Rakesh -----Original Message----- From: Dr. Stephen Henson [mailto:[email protected]] Sent: Wednesday, June 01, 2011 7:15 PM To: [email protected] Subject: Re: EVP_DecryptFinal On Wed, Jun 01, 2011, Chenchu, Rakesh R wrote: > Hi Stephen, > > I want to understand a bit more on this padding. > > Why should we have to leave padding intact here? > It depends on whether the ciphertext uses padding or not, you have to be consistent. > Should the call EVP_CIPHER_CTX_init modified to EVP_CipherInit_ex() ? > No, that's a different function. > > Should we then call EVP_DecryptUpdate_ex(),EVP_DecryptFinal_ex() > equivalent? > There is no EVP_DecryptUpdate_ex but you should call EVP_DecryptFinal_ex(), after you've finished with the context you then must call EVP_CIPHER_CTX_cleanup(). Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected] ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
