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 Padlock: fix byte swapping assembly for AES-192 and 256 2023-01-20 07:31:33 +00:00
build.info
e_afalg_err.c Add af_alg errors to the error queue 2022-10-21 12:59:14 +02:00
e_afalg_err.h Add af_alg errors to the error queue 2022-10-21 12:59:14 +02:00
e_afalg.c Add af_alg errors to the error queue 2022-10-21 12:59:14 +02:00
e_afalg.ec
e_afalg.h
e_afalg.txt Add af_alg errors to the error queue 2022-10-21 12:59:14 +02:00
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 Add a test case for the engine crash with AES-256-CTR 2022-11-02 11:01:06 +01:00
e_dasync.ec
e_dasync.txt
e_devcrypto.c Cleanup : directly include of internal/nelem.h when required. 2022-11-23 18:08:25 +01:00
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