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 Rename x86-32 assembly files from .s to .S. 2022-05-24 13:16:06 +10:00
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 make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_afalg.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
e_afalg.txt Add af_alg errors to the error queue 2022-10-21 12:59:14 +02:00
e_capi_err.c Add {lib}_R_{lib}_LIB, for our engines and other "external" modules 2022-10-05 14:02:03 +02:00
e_capi_err.h Add {lib}_R_{lib}_LIB, for our engines and other "external" modules 2022-10-05 14:02:03 +02:00
e_capi.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
e_capi.ec make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_capi.txt Update copyright year 2021-02-18 15:05:17 +00:00
e_dasync_err.c ERR: Rebuild generated engine error files 2021-05-28 14:22:45 +02:00
e_dasync_err.h Update copyright year 2021-02-18 15:05:17 +00:00
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 make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_dasync.txt Update copyright year 2021-02-18 15:05:17 +00:00
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 ERR: Rebuild generated engine error files 2021-05-28 14:22:45 +02:00
e_loader_attic_err.h Update copyright year 2021-02-18 15:05:17 +00:00
e_loader_attic.c apps & al : Fix various typos, repeated words, align some spelling to LDP. 2022-10-12 16:55:28 +11:00
e_loader_attic.ec STORE: Move the built-in 'file:' loader to become an engine module 2020-09-03 17:48:32 +02:00
e_loader_attic.txt Update copyright year 2021-02-18 15:05:17 +00:00
e_ossltest_err.c ERR: Rebuild generated engine error files 2021-05-28 14:22:45 +02:00
e_ossltest_err.h Update copyright year 2021-02-18 15:05:17 +00:00
e_ossltest.c Move more general parts of internal/cryptlib.h to new internal/common.h 2021-11-17 15:48:37 +01:00
e_ossltest.ec make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_ossltest.txt Update copyright year 2021-02-18 15:05:17 +00:00
e_padlock.c Update copyright year 2021-06-17 13:24:59 +01:00