mbedtls/include/psa
Gilles Peskine e3d9c9d99b PSA operation structures: move less-used fields to the end
Move fields around to have fewer accesses outside the 128-element Thumb
direct access window.

In psa_hkdf_key_derivation_t, move the large fields (output_block, prk,
hmac) after the state bit-fields. Experimentally, it's slightly better
to put hmac last.

Other operations structures don't go outside the window, at least when not
considering nested structures.

Results (arm-none-eabi-gcc 7.3.1, build_arm_none_eabi_gcc_m0plus build):
library/psa_crypto.o: 16510 -> 16434 (diff: 76)

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-11-26 12:44:08 +01:00
..
crypto.h Add missing PSA_ALG_IS_SIGN_HASH macro. 2021-11-03 15:47:03 +01:00
crypto_builtin_composites.h Add MBEDTLS_PRIVATE to new structs 2021-09-24 11:20:04 +01:00
crypto_builtin_primitives.h Give a better name for struct member 2021-06-30 10:45:58 +02:00
crypto_compat.h Fix typos in C header files 2021-05-10 19:54:11 +02:00
crypto_config.h Implement PSA_WANT_KEY_TYPE_ARIA 2021-10-08 15:48:16 +02:00
crypto_driver_common.h Make PSA headers more self-contained 2021-11-25 20:49:09 +01:00
crypto_driver_contexts_composites.h Move AEAD contexts from primitives to composites 2021-05-20 18:39:58 +01:00
crypto_driver_contexts_primitives.h Move AEAD contexts from primitives to composites 2021-05-20 18:39:58 +01:00
crypto_extra.h Make PSA headers more self-contained 2021-11-25 20:49:09 +01:00
crypto_platform.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
crypto_se_driver.h Run MBEDTLS_PRIVATE wrapping script on the library. 2021-05-21 18:10:44 +02:00
crypto_sizes.h Merge pull request #5076 from mstarzyk-mobica/psa_ccm_no_tag 2021-11-10 10:18:55 +01:00
crypto_struct.h PSA operation structures: move less-used fields to the end 2021-11-26 12:44:08 +01:00
crypto_types.h PSA PAKE: move the API to crypto_extra.h 2021-06-08 14:48:34 +01:00
crypto_values.h Merge pull request #5076 from mstarzyk-mobica/psa_ccm_no_tag 2021-11-10 10:18:55 +01:00