ecdh: simplify guards for the newly created PSA_HAVE_FULL_ECDH symbol

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti 2023-03-20 14:33:14 +01:00
parent 13ce40323f
commit da8535b74e

View file

@ -887,8 +887,9 @@ extern "C" {
#define PSA_HAVE_FULL_JPAKE 1 #define PSA_HAVE_FULL_JPAKE 1
#endif #endif
#if defined(PSA_WANT_ALG_ECDH) && defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR) && \ /* Having suppor for ECDH implicitly includes support for private and
defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY) * public keys, so we don't specify that requirement here. */
#if defined(PSA_WANT_ALG_ECDH)
#define PSA_HAVE_FULL_ECDH 1 #define PSA_HAVE_FULL_ECDH 1
#endif #endif