openssl/engines
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
..
asm
build.info
e_afalg_err.c
e_afalg_err.h
e_afalg.c
e_afalg.ec
e_afalg.h
e_afalg.txt
e_capi_err.c
e_capi_err.h
e_capi.c
e_capi.ec
e_capi.txt
e_dasync_err.c
e_dasync_err.h
e_dasync.c
e_dasync.ec
e_dasync.txt
e_devcrypto.c
e_loader_attic_err.c
e_loader_attic_err.h
e_loader_attic.c
e_loader_attic.ec
e_loader_attic.txt
e_ossltest_err.c
e_ossltest_err.h
e_ossltest.c
e_ossltest.ec
e_ossltest.txt
e_padlock.c