Skip to content

Commit

Permalink
oberon: Fix re-define of PSA_VENDOR_ECC_MAX_CURVE_BITS
Browse files Browse the repository at this point in the history
PSA_VENDOR_ECC_MAX_CURVE_BITS gets in already defined in the
autogenerated nrf-config-user.h and if these defines don't match
it results in a redefined warning

Ref: NCSDK-21666

Signed-off-by: Markus Swarowsky <markus.swarowsky@nordicsemi.no>
  • Loading branch information
mswarowsky committed Aug 24, 2023
1 parent 1224b44 commit d950b86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/oberon/psa/core/include/psa/crypto_sizes.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@

/* The maximum size of an ECC key on this implementation, in bits.
* This is a vendor-specific macro. */
#ifndef PSA_VENDOR_ECC_MAX_CURVE_BITS
#if defined(PSA_WANT_ECC_SECP_R1_521) /*!!OM*/
#define PSA_VENDOR_ECC_MAX_CURVE_BITS 521
#elif defined(PSA_WANT_ECC_BRAINPOOL_P_R1_512)
Expand Down Expand Up @@ -229,6 +230,7 @@
#else
#define PSA_VENDOR_ECC_MAX_CURVE_BITS 0
#endif
#endif

/** This macro returns the maximum supported length of the PSK for the
* TLS-1.2 PSK-to-MS key derivation
Expand Down

0 comments on commit d950b86

Please sign in to comment.