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]
