Re: Why does openssl still pad data for aes-128-cbc encrypting when the file-size%16==0?

2012-03-21 Thread Nicle
Thanks for your reply :) 2012/3/20 Ken Goldman > 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.

RE: How to use AES_wrap_key() in openssl

2012-03-21 Thread pkumarn
One more thanks from side for replying to this query.,.. my comments inline... So are you saying that their is no way to extract IV and check back if the decrypted key matches the encrypted key? I feel this would give space for more vulnerabilities as one needs to make sure before using the decr