Add test for ecdsa_read_signature_restartable()
Test values taken from a random signature as generated in ecdsa_write_read_random() test function
This commit is contained in:
parent
32aa4375cc
commit
722e5156fd
4 changed files with 68 additions and 3 deletions
|
@ -476,7 +476,7 @@ void mbedtls_ecdsa_free( mbedtls_ecdsa_context *ctx )
|
|||
*/
|
||||
void mbedtls_ecdsa_restart_init( mbedtls_ecdsa_restart_ctx *ctx )
|
||||
{
|
||||
mbedtls_ecp_restart_init( &ctx->rs_ecp );
|
||||
mbedtls_ecp_restart_init( &ctx->ecp );
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -484,7 +484,7 @@ void mbedtls_ecdsa_restart_init( mbedtls_ecdsa_restart_ctx *ctx )
|
|||
*/
|
||||
void mbedtls_ecdsa_restart_free( mbedtls_ecdsa_restart_ctx *ctx )
|
||||
{
|
||||
mbedtls_ecp_restart_free( &ctx->rs_ecp );
|
||||
mbedtls_ecp_restart_free( &ctx->ecp );
|
||||
}
|
||||
#endif /* MBEDTLS_ECP_RESTARTABLE */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue