Stop checking for argument change

This was intended to detect aborted operations, but now that case is handled
by the caller freeing the restart context.

Also, as the internal sub-context is managed by the callee, no need for the
caller to free/reset the restart context between successful calls.
This commit is contained in:
Manuel Pégourié-Gonnard 2017-04-20 09:47:06 +02:00
parent 3cade22f96
commit 8467e6848d
3 changed files with 6 additions and 29 deletions

View file

@ -116,9 +116,6 @@ void ecp_test_vect_restart( int id,
TEST_ASSERT( cnt_restarts >= min_restarts );
TEST_ASSERT( cnt_restarts <= max_restarts );
/* Prepare context for new operation */
mbedtls_ecp_restart_free( &ctx );
/* Non-base point case */
cnt_restarts = 0;
do {