pkwrite: minor code reshape
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
ad6d016b8f
commit
8aec84f3a7
1 changed files with 1 additions and 3 deletions
|
@ -44,15 +44,13 @@
|
|||
#if defined(MBEDTLS_PK_USE_PSA_EC_DATA)
|
||||
#define PK_MAX_EC_PUBLIC_KEY_SIZE PSA_EXPORT_PUBLIC_KEY_MAX_SIZE
|
||||
#define PK_MAX_EC_KEY_PAIR_SIZE MBEDTLS_PSA_MAX_EC_KEY_PAIR_LENGTH
|
||||
#else
|
||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
#elif defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
#define PK_MAX_EC_PUBLIC_KEY_SIZE PSA_EXPORT_PUBLIC_KEY_MAX_SIZE
|
||||
#define PK_MAX_EC_KEY_PAIR_SIZE MBEDTLS_PSA_MAX_EC_KEY_PAIR_LENGTH
|
||||
#else
|
||||
#define PK_MAX_EC_PUBLIC_KEY_SIZE MBEDTLS_ECP_MAX_PT_LEN
|
||||
#define PK_MAX_EC_KEY_PAIR_SIZE MBEDTLS_ECP_MAX_BYTES
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/******************************************************************************
|
||||
* Internal functions for RSA keys.
|
||||
|
|
Loading…
Reference in a new issue