1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2026-01-06 11:41:12 +03:00

Make mbedtls_ecdsa_can_do definition unconditional

Signed-off-by: JonathanWitthoeft <jonw@gridconnect.com>
This commit is contained in:
JonathanWitthoeft
2023-04-26 16:06:42 -05:00
parent 405ec94ea2
commit 9b265180cc
2 changed files with 4 additions and 5 deletions

View File

@@ -234,9 +234,6 @@ cleanup:
}
#endif /* ECDSA_DETERMINISTIC || !ECDSA_SIGN_ALT || !ECDSA_VERIFY_ALT */
#if !defined(MBEDTLS_ECDSA_SIGN_ALT) || \
!defined(MBEDTLS_ECDSA_VERIFY_ALT)
int mbedtls_ecdsa_can_do(mbedtls_ecp_group_id gid)
{
switch (gid) {
@@ -250,8 +247,6 @@ int mbedtls_ecdsa_can_do(mbedtls_ecp_group_id gid)
}
}
#endif /* !ECDSA_SIGN_ALT || !ECDSA_VERIFY_ALT */
#if !defined(MBEDTLS_ECDSA_SIGN_ALT)
/*
* Compute ECDSA signature of a hashed message (SEC1 4.1.3)