| 1fa538fa | 14-Apr-2020 |
Pablo de Lara <[email protected]> |
crypto/openssl: fix out-of-place encryption
When authenticating after encrypting, if the operation is out-of-place, the destination buffer is the one that will get authenticated. If the cipher offse
crypto/openssl: fix out-of-place encryption
When authenticating after encrypting, if the operation is out-of-place, the destination buffer is the one that will get authenticated. If the cipher offset is higher than the authentication offset, it means that part of the text to authenticate will be plaintext, so this needs to get copied to the destination buffer, or the result will be incorrect.
Fixes: d61f70b4c918 ("crypto/libcrypto: add driver for OpenSSL library") Cc: [email protected]
Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|