Hi Steve,
Also, EVP_DecryptInit_ex() expects a ENGINE *impl
271 int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER
*cipher, ENGINE *impl,
272 const unsigned char *key, const unsigned char *iv)
273 {
Should this be set to NULL, irrespective of the engine ID created during
snmpuser creation?
Regards,
Rakesh
-----Original Message-----
From: Chenchu, Rakesh R
Sent: Wednesday, June 01, 2011 7:41 PM
To: [email protected]
Subject: RE: EVP_DecryptFinal
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]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [email protected]