openssl/engines/asm
ValdikSS 7331e7ef79 Padlock: fix byte swapping assembly for AES-192 and 256
Byte swapping code incorrectly uses the number of AES rounds to swap expanded
AES key, while swapping only a single dword in a loop, resulting in swapped
key and partially swapped expanded keys, breaking AES encryption and
decryption on VIA Padlock hardware.

This commit correctly sets the number of swapping loops to be done.

Fixes #20073

CLA: trivial

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20077)
2023-01-20 07:31:33 +00:00
..
e_padlock-x86_64.pl Padlock: fix byte swapping assembly for AES-192 and 256 2023-01-20 07:31:33 +00:00
e_padlock-x86.pl Padlock: fix byte swapping assembly for AES-192 and 256 2023-01-20 07:31:33 +00:00