Skip to content

Commit

Permalink
ext: oberon: Remove redefinition ECC_MAX_CURVE_BITS
Browse files Browse the repository at this point in the history
This removes the redefinition of the define
PSA_VENDOR_ECC_MAX_CURVE_BITS which we will set in our configuration
file.

Ref: NCSDK-12898

This matches commit "[nrf noup] Remove redefinition ECC_MAX_CURVE_BITS"
applied to the sdk-mbedtls repository.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
  • Loading branch information
joerchan committed Oct 5, 2023
1 parent bce1d1a commit 01765f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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,8 @@

/* 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 @@ -230,6 +232,8 @@
#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
* (#PSA_ALG_TLS12_PSK_TO_MS(\c hash_alg)).
Expand Down

0 comments on commit 01765f0

Please sign in to comment.