mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-17 02:43:26 +00:00
pkwrite: fix wrong guard position for pk_get_opaque_ec_family()
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
a9aab1a85b
commit
e1651360c0
@ -76,7 +76,6 @@ static inline int mbedtls_pk_is_rfc8410(const mbedtls_pk_context *pk)
|
|||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* MBEDTLS_PK_HAVE_RFC8410_CURVES */
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
/* It is assumed that the input key is opaque */
|
/* It is assumed that the input key is opaque */
|
||||||
@ -93,7 +92,11 @@ static psa_ecc_family_t pk_get_opaque_ec_family(const mbedtls_pk_context *pk)
|
|||||||
|
|
||||||
return ec_family;
|
return ec_family;
|
||||||
}
|
}
|
||||||
|
#endif /* MBETLS_USE_PSA_CRYPTO */
|
||||||
|
#endif /* MBEDTLS_PK_HAVE_RFC8410_CURVES */
|
||||||
|
#endif /* MBEDTLS_PK_HAVE_ECC_KEYS */
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
/* It is assumed that the input key is opaque */
|
/* It is assumed that the input key is opaque */
|
||||||
static psa_key_type_t pk_get_opaque_key_type(const mbedtls_pk_context *pk)
|
static psa_key_type_t pk_get_opaque_key_type(const mbedtls_pk_context *pk)
|
||||||
{
|
{
|
||||||
@ -109,7 +112,6 @@ static psa_key_type_t pk_get_opaque_key_type(const mbedtls_pk_context *pk)
|
|||||||
return opaque_key_type;
|
return opaque_key_type;
|
||||||
}
|
}
|
||||||
#endif /* MBETLS_USE_PSA_CRYPTO */
|
#endif /* MBETLS_USE_PSA_CRYPTO */
|
||||||
#endif /* MBEDTLS_PK_HAVE_ECC_KEYS */
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_RSA_C)
|
#if defined(MBEDTLS_RSA_C)
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user