1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-11 21:41:47 +03:00
Files
mbedtls/library
Gilles Peskine b8006a66f2 PSA global data: move fields around to save code size
Move fields around to have fewer accesses outside the 128-element Thumb
direct access window.

In psa_crypto.c's global_data, put the state fields first (-20).

In psa_crypto_slot_management.c's global_data, keep the key slots first
(otherwise it's +24).

In mbedtls_psa_random_context_t, swapping entropy and drbg makes no
difference (at least when the DRBG is mbedtls_ctr_drbg_context).

Results (arm-none-eabi-gcc 7.3.1, build_arm_none_eabi_gcc_m0plus build):
library/psa_crypto.o: 16166 -> 16146 (diff: 20)

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-11-16 15:00:45 +01:00
..
2021-10-25 21:24:23 +02:00
2021-08-03 14:01:51 +01:00
2021-09-30 15:51:05 +02:00
2021-06-07 21:42:15 +02:00
2021-06-25 14:59:15 +01:00
2021-08-03 13:39:57 +01:00
2021-08-03 13:39:57 +01:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-04-07 12:45:35 +01:00
2021-08-03 13:39:57 +01:00
2021-04-15 11:19:47 +01:00
2021-04-15 11:19:47 +01:00
2021-10-08 18:28:15 +02:00
2020-11-25 13:10:50 +01:00
2021-10-28 10:07:37 +02:00
2020-11-25 13:10:50 +01:00
2021-08-03 13:39:57 +01:00
2021-08-03 13:39:57 +01:00
2021-08-03 13:39:57 +01:00
2021-08-03 14:08:26 +01:00
2021-08-20 15:56:22 +01:00
2021-08-23 12:49:14 +01:00
2021-08-23 11:45:36 +01:00
2021-04-15 11:19:47 +01:00
2021-04-15 11:19:47 +01:00
2021-04-15 11:19:47 +01:00