ecdh: simplify guards for the newly created PSA_HAVE_FULL_ECDH symbol

Signed-off-by: Valerio Setti <[email protected]>
This commit is contained in:
Valerio Setti
2023-03-22 10:40:05 +01:00
parent 13ce40323f
commit da8535b74e
+3 -2
View File
@@ -887,8 +887,9 @@ extern "C" {
#define PSA_HAVE_FULL_JPAKE 1
#endif
#if defined(PSA_WANT_ALG_ECDH) && defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR) && \
defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY)
/* Having suppor for ECDH implicitly includes support for private and
* public keys, so we don't specify that requirement here. */
#if defined(PSA_WANT_ALG_ECDH)
#define PSA_HAVE_FULL_ECDH 1
#endif