From: Jonathan Groll Date: 2010-07-06T19:25:47+09:00 Subject: Re: AES block cipher artifacts On Tue, Jul 06, 2010 at 07:04:58PM +0900, Waldemar Dick wrote: > You use encrypt_BUFFER to encrypt, but decrypt_BLOCK to decrypt. They > are not symmetric. Aes.decrypt_block is a lower level method than > decrypt_buffer. I don't know the API, but I guess there should be a > decrypt_buffer, which removes the padding. Thank you. Changing to descrypt_buffer fixed things, and saved me from writing my own padding routine. Can't explain why I did things that way earlier either, it was a few months ago ;-) Cheers, Jonathan