Thanks for your reply :) 2012/3/20 Ken Goldman <kgold...@us.ibm.com>
> It depends on the padding scheme. > > E.g., PKCS#7 / RFC2630 pads with k bytes, all with value k. So you > decrypt the 32 bytes and look at the pad bytes. If the pad values are 16, > the actual size is 16. If they're 15, the actual size is 17. > > > On 3/20/2012 12:04 AM, Nicle wrote: > >> >> And I have more question. For example, the actual file size is 16B, and >> it will be encrypted to 32B. >> >> Then, how does decrypt side know its actual size is 16B or 17B? >> >> > > > ______________________________**______________________________**__________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org >