From ecaa7ca507c7498ccc8b1966ff5e8d7d0f671a87 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 15 Dec 2022 22:16:00 +0100 Subject: [PATCH] Add missing supported algorithm to psa/crypto_config.h The following shell command lists features that seem to be supported, but are missing from include/psa/crypto_config.h: ``` for x in $(grep -ho -Ew '(PSA_WANT|MBEDTLS_PSA_BUILTIN)_\w+_\w+' library/psa_crypto*.c | sed 's/^MBEDTLS_PSA_BUILTIN/PSA_WANT/' | sort -u); do grep -qw $x include/psa/crypto_config.h || echo $x; done ``` This looks for PSA_WANT__ macros that gate a part of the library, as well as their MBEDTLS_PSA_BUILTIN__ counterparts. This is not necessarily a complete list of identifiers that must appear in the config file, since a few features are not gated. Signed-off-by: Gilles Peskine --- ChangeLog.d/crypto_config_ccm_star.txt | 3 +++ include/psa/crypto_config.h | 1 + 2 files changed, 4 insertions(+) create mode 100644 ChangeLog.d/crypto_config_ccm_star.txt diff --git a/ChangeLog.d/crypto_config_ccm_star.txt b/ChangeLog.d/crypto_config_ccm_star.txt new file mode 100644 index 0000000000..947014ae38 --- /dev/null +++ b/ChangeLog.d/crypto_config_ccm_star.txt @@ -0,0 +1,3 @@ +Bugfix + * List PSA_WANT_ALG_CCM_STAR_NO_TAG in psa/crypto_config.h so that it can + be toggled with config.py. diff --git a/include/psa/crypto_config.h b/include/psa/crypto_config.h index 5ab4fdef3a..7399a62200 100644 --- a/include/psa/crypto_config.h +++ b/include/psa/crypto_config.h @@ -57,6 +57,7 @@ #define PSA_WANT_ALG_CBC_NO_PADDING 1 #define PSA_WANT_ALG_CBC_PKCS7 1 #define PSA_WANT_ALG_CCM 1 +#define PSA_WANT_ALG_CCM_STAR_NO_TAG 1 #define PSA_WANT_ALG_CMAC 1 #define PSA_WANT_ALG_CFB 1 #define PSA_WANT_ALG_CHACHA20_POLY1305 1