[PATCH] AES-KW: fix in-place encryption

Jussi Kivilinna jussi.kivilinna at iki.fi
Thu Mar 22 21:29:15 CET 2018


On 12.03.2018 23:24, Stephan Mueller wrote:
> In case AES-KW in-place encryption is performed, the plaintext must be
> moved to the correct destination location before the first semiblock of
> the destination buffer is modified. Without the patch, the first
> semiblock of the plaintext is overwritten with a6a6a6a6a6a6a6a6.
> 
> * cipher/cipher-aeswrap.c: move memove call before KW IV setting
> 

Thanks, applied and pushed.

-Jussi



More information about the Gcrypt-devel mailing list