AES-KW: fix in-place encryption

Authored by smueller_chronox.de on Mar 12 2018, 10:24 PM.

Description

AES-KW: fix in-place encryption

* cipher/cipher-aeswrap.c: move memmove call before KW IV setting

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.

  • Signed-off-by: Stephan Mueller <smueller@chronox.de>

Details

Committed
jukiviliMar 22 2018, 9:15 PM
Parents
rC617f5e746f82: bench-slope: add CPU frequency auto-detection
Branches
Unknown
Tags
Unknown