Merge pull request #5981 from mprse/hkdf_config_fix

Add comment to config_psa.h about enabling PSA_HKDF/-EXTRACT/-EXPAND
This commit is contained in:
Manuel Pégourié-Gonnard 2022-06-30 11:27:16 +02:00 committed by GitHub
commit 31fcfd5632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -606,6 +606,10 @@ extern "C" {
#define PSA_WANT_ALG_GCM 1
#endif /* MBEDTLS_GCM_C */
/* Enable PSA HKDF algorithm if mbedtls HKDF is supported.
* PSA HKDF EXTRACT and PSA HKDF EXPAND have minimal cost when
* PSA HKDF is enabled, so enable both algorithms together
* with PSA HKDF. */
#if defined(MBEDTLS_HKDF_C)
#define MBEDTLS_PSA_BUILTIN_ALG_HMAC 1
#define PSA_WANT_ALG_HMAC 1