mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Add special return code for ecdsa length mismatch
This commit is contained in:
committed by
Paul Bakker
parent
1cfc45835f
commit
35e95ddca4
@ -175,7 +175,9 @@ int ecdsa_write_signature_det( ecdsa_context *ctx,
|
||||
* \param slen Size of sig
|
||||
*
|
||||
* \return 0 if successful,
|
||||
* POLARSSL_ERR_ECP_BAD_INPUT_DATA if signature is invalid
|
||||
* POLARSSL_ERR_ECP_BAD_INPUT_DATA if signature is invalid,
|
||||
* POLARSSL_ERR_ECP_SIG_LEN_MISTMATCH if the signature is
|
||||
* valid but its actual length is less than siglen,
|
||||
* or a POLARSSL_ERR_ECP or POLARSSL_ERR_MPI error code
|
||||
*/
|
||||
int ecdsa_read_signature( ecdsa_context *ctx,
|
||||
|
Reference in New Issue
Block a user