Build: Fix warning for accelerator enabled build
Fix the following build warning when crypto accelerator
is present: warning: implicit declaration of function
'crypto_hw_accelerator_huk_derive_key' is invalid in C99,
introduced by commit f41c642.
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: I3d9e1cbdd94cf19b2080dea90ab717d0648dc706
diff --git a/platform/ext/common/template/crypto_keys.c b/platform/ext/common/template/crypto_keys.c
index 04b6009..d4a48cb 100644
--- a/platform/ext/common/template/crypto_keys.c
+++ b/platform/ext/common/template/crypto_keys.c
@@ -22,6 +22,10 @@
#include "tfm_plat_otp.h"
#include "mbedtls/hkdf.h"
+#ifdef CRYPTO_HW_ACCELERATOR
+#include "crypto_hw.h"
+#endif /* CRYPTO_HW_ACCELERATOR */
+
enum tfm_plat_err_t tfm_plat_get_huk_derived_key(const uint8_t *label,
size_t label_size,
const uint8_t *context,