1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-06-13 19:21:32 +03:00

Make ECP error codes more specific

This commit is contained in:
Manuel Pégourié-Gonnard
2013-09-16 18:04:38 +02:00
committed by Paul Bakker
parent 568c9cf878
commit 456d3b9b0b
7 changed files with 36 additions and 30 deletions

View File

@ -77,7 +77,7 @@ int ecdsa_sign( const ecp_group *grp, mpi *r, mpi *s,
if( key_tries++ > 10 )
{
ret = POLARSSL_ERR_ECP_GENERIC;
ret = POLARSSL_ERR_ECP_RANDOM_FAILED;
goto cleanup;
}
}
@ -99,7 +99,7 @@ int ecdsa_sign( const ecp_group *grp, mpi *r, mpi *s,
if( sign_tries++ > 10 )
{
ret = POLARSSL_ERR_ECP_GENERIC;
ret = POLARSSL_ERR_ECP_RANDOM_FAILED;
goto cleanup;
}
}