Skip to content

Commit b1a97ac

Browse files
Remove unused macros
1 parent 2b492d6 commit b1a97ac

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

include/mbedtls/psa_util.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -378,24 +378,6 @@ static inline psa_ecc_curve_t mbedtls_psa_translate_ecc_group( mbedtls_ecp_group
378378
}
379379
}
380380

381-
382-
#define MBEDTLS_PSA_ECC_KEY_BITS_OF_CURVE( curve ) \
383-
( curve == PSA_ECC_CURVE_SECP192R1 ? 192 : \
384-
curve == PSA_ECC_CURVE_SECP224R1 ? 224 : \
385-
curve == PSA_ECC_CURVE_SECP256R1 ? 256 : \
386-
curve == PSA_ECC_CURVE_SECP384R1 ? 384 : \
387-
curve == PSA_ECC_CURVE_SECP521R1 ? 521 : \
388-
curve == PSA_ECC_CURVE_SECP192K1 ? 192 : \
389-
curve == PSA_ECC_CURVE_SECP224K1 ? 224 : \
390-
curve == PSA_ECC_CURVE_SECP256K1 ? 256 : \
391-
curve == PSA_ECC_CURVE_BRAINPOOL_P256R1 ? 256 : \
392-
curve == PSA_ECC_CURVE_BRAINPOOL_P384R1 ? 384 : \
393-
curve == PSA_ECC_CURVE_BRAINPOOL_P512R1 ? 512 : \
394-
0 )
395-
396-
#define MBEDTLS_PSA_ECC_KEY_BYTES_OF_CURVE( curve ) \
397-
( ( MBEDTLS_PSA_ECC_KEY_BITS_OF_CURVE( curve ) + 7 ) / 8 )
398-
399381
/* Translations for PK layer */
400382

401383
static inline int mbedtls_psa_err_translate_pk( psa_status_t status )

0 commit comments

Comments
 (0)