Re: Encrypt/Decrypt in place ?

2012-11-06 Thread Dr. Stephen Henson
On Tue, Nov 06, 2012, Andy Polyakov wrote: > >Can the same pointer safely be used for the input and output buffers in > >encrypt and decrypt operations ? > >i.e. is something like AES_encrypt(out,out,key) guaranteed not to rewrite > >the input before it's been processed ? > > > >The following IMPL

Re: Encrypt/Decrypt in place ?

2012-11-06 Thread Andy Polyakov
Can the same pointer safely be used for the input and output buffers in encrypt and decrypt operations ? i.e. is something like AES_encrypt(out,out,key) guaranteed not to rewrite the input before it's been processed ? The following IMPLIES this is safe but lingering doubts remain. ... Note: I'm

Encrypt/Decrypt in place ?

2012-11-05 Thread Peter Waltenberg
Can the same pointer safely be used for the input and output buffers in encrypt and decrypt operations ? i.e. is something like AES_encrypt(out,out,key) guaranteed not to rewrite the input before it's been processed ? The following IMPLIES this is safe but lingering doubts remain. (from crypto/ae