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:
committed by
Paul Bakker
parent
568c9cf878
commit
456d3b9b0b
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user