Add check calling psa_pake_setup() on an already initialized operation in ecjpake_setup() test

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
Neil Armstrong 2022-06-08 17:46:24 +02:00
parent 98506ab677
commit 50de0ae0c4

View file

@ -8154,6 +8154,9 @@ void ecjpake_setup( int alg_arg, int primitive_arg, int hash_arg, int role_arg,
else
PSA_ASSERT( status );
TEST_EQUAL( psa_pake_setup( &operation, &cipher_suite ),
PSA_ERROR_BAD_STATE );
status = psa_pake_set_role( &operation, role );
if( status != PSA_SUCCESS )
{