Re: Help: DecryptFinal error

2014-03-09 Thread Larry Bugbee
Sent from iTouch > On Mar 7, 2014, at 11:42 AM, "Li, David" wrote: > > Hi, > > I am new to openssl C APIs. So I wrote a simple test to encrypt and decrypt a > 15 byte ASCII string using AES128. The encryption seems OK and the encrypted > length is 16. But the decryption always failed at

Re: Help: DecryptFinal error

2014-03-08 Thread Larry Bugbee
On Mar 8, 2014, at 11:23 AM, Larry Bugbee wrote: > On Mar 7, 2014, at 11:42 AM, "Li, David" wrote: > >> Hi, >> >> I am new to openssl C APIs. So I wrote a simple test to encrypt and decrypt >> a 15 byte ASCII string using AES128. The encryption seems OK and the >> encrypted length is 16. B