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:
parent
13ce40323f
commit
da8535b74e
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue