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:
Manuel Pégourié-Gonnard 2017-04-21 11:04:47 +02:00
parent 32aa4375cc
commit 722e5156fd
4 changed files with 68 additions and 3 deletions

View file

@ -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 */