From 1a54352f5a2abccf86f52108398fbc3f9126760b Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Fri, 26 Jan 2024 09:35:18 +0100 Subject: [PATCH] psa_crypto_ffdh: move dhm.h inclusion to c file Signed-off-by: Valerio Setti --- library/psa_crypto_ffdh.c | 6 ++++++ library/psa_crypto_ffdh.h | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/library/psa_crypto_ffdh.c b/library/psa_crypto_ffdh.c index 6cc086ef6..95b2a1eab 100644 --- a/library/psa_crypto_ffdh.c +++ b/library/psa_crypto_ffdh.c @@ -10,6 +10,12 @@ #if defined(MBEDTLS_PSA_CRYPTO_C) +/* This header is only needed because it defines + * MBEDTLS_DHM_RFC7919_FFDHExxxx_[P|G]_BIN symbols that are used in + * mbedtls_psa_ffdh_set_prime_generator(). A part from that, this module + * only uses bignum functions for arithmetic. */ +#include + #include #include "psa_crypto_core.h" #include "psa_crypto_ffdh.h" diff --git a/library/psa_crypto_ffdh.h b/library/psa_crypto_ffdh.h index baeb9286c..79accd15a 100644 --- a/library/psa_crypto_ffdh.h +++ b/library/psa_crypto_ffdh.h @@ -10,7 +10,6 @@ #define PSA_CRYPTO_FFDH_H #include -#include /** Perform a key agreement and return the FFDH shared secret. *