Make mbedtls_ecdsa_can_do definition unconditional

Signed-off-by: JonathanWitthoeft <[email protected]>
This commit is contained in:
JonathanWitthoeft
2023-09-29 13:31:48 +02:00
committed by Gilles Peskine
parent bfb0b39460
commit 930679a1d7
2 changed files with 4 additions and 5 deletions
@@ -0,0 +1,4 @@
Bugfix
* Removes !ECDSA_SIGN_ALT condition around mbedtls_ecdsa_can_do
definition, so that mbedtls_ecdsa_verify_restartable will not
automatically fail.
-5
View File
@@ -240,9 +240,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) {
@@ -256,8 +253,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)