From 0368d365522d5f9808b4720a7f392ab0f6758779 Mon Sep 17 00:00:00 2001 From: Przemek Stekiel Date: Thu, 13 Oct 2022 08:02:53 +0200 Subject: [PATCH] Add MBEDTLS_PSA_BUILTIN_AEAD definition Signed-off-by: Przemek Stekiel --- include/psa/crypto_builtin_composites.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/psa/crypto_builtin_composites.h b/include/psa/crypto_builtin_composites.h index a875b2370..711c43df7 100644 --- a/include/psa/crypto_builtin_composites.h +++ b/include/psa/crypto_builtin_composites.h @@ -43,6 +43,12 @@ #define MBEDTLS_PSA_BUILTIN_MAC #endif +#if defined(MBEDTLS_PSA_BUILTIN_ALG_GCM) || \ + defined(MBEDTLS_PSA_BUILTIN_ALG_CCM) || \ + defined(MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305) +#define MBEDTLS_PSA_BUILTIN_AEAD 1 +#endif + #if defined(MBEDTLS_PSA_BUILTIN_ALG_HMAC) || defined(PSA_CRYPTO_DRIVER_TEST) typedef struct {