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:
parent
98506ab677
commit
50de0ae0c4
1 changed files with 3 additions and 0 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue