Re: EVP API for symetric encryption - problem

2005-03-22 Thread Richard Levitte - VMS Whacker
In message <[EMAIL PROTECTED]> on Mon, 21 Mar 2005 21:06:05 -0300, Rafael Cividanes <[EMAIL PROTECTED]> said: rafacividanes> I'm doing a little program to encrypt and decrypt rafacividanes> a string using the EVP API. I couldn't understand if I rafacividanes> have to use EVP_DecryptFinal_ex

Re: EVP API for symetric encryption - problem

2005-03-22 Thread Dr. Stephen Henson
On Tue, Mar 22, 2005, Rafael Cividanes wrote: >But the problem is that the plaintext below has 37 characters! "The > problem will be solved until" = 32. > I see, I was mislead by the comment at the end. > char intext[] = "The problem will be solved until12345"; = 37 !! > > It's very st

Re: EVP API for symetric encryption - problem

2005-03-22 Thread Rafael Cividanes
But the problem is that the plaintext below has 37 characters! "The problem will be solved until" = 32. char intext[] = "The problem will be solved until12345"; = 37 !! It's very strange for me! Thanks, Rafael Dr. Stephen Henson wrote: On Mon, Mar 21, 2005, Rafael Cividanes wrote:

Re: EVP API for symetric encryption - problem

2005-03-21 Thread Dr. Stephen Henson
On Mon, Mar 21, 2005, Rafael Cividanes wrote: > I'm doing a little program to encrypt and decrypt a string using > the EVP API. I couldn't understand if I have to use EVP_DecryptFinal_ex( > ) or just EVP_DecryptUpdate( ) in the decryption operation. The second > function return the entire

EVP API for symetric encryption - problem

2005-03-21 Thread Rafael Cividanes
I'm doing a little program to encrypt and decrypt a string using the EVP API. I couldn't understand if I have to use EVP_DecryptFinal_ex( ) or just EVP_DecryptUpdate( ) in the decryption operation. The second function return the entire recovered plaintext, then I can't understand why EVP_D