Make ECP error codes more specific
This commit is contained in:
parent
568c9cf878
commit
456d3b9b0b
7 changed files with 36 additions and 30 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue