mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-09 21:44:28 +00:00
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
@ -8154,6 +8154,9 @@ void ecjpake_setup( int alg_arg, int primitive_arg, int hash_arg, int role_arg,
|
|||||||
else
|
else
|
||||||
PSA_ASSERT( status );
|
PSA_ASSERT( status );
|
||||||
|
|
||||||
|
TEST_EQUAL( psa_pake_setup( &operation, &cipher_suite ),
|
||||||
|
PSA_ERROR_BAD_STATE );
|
||||||
|
|
||||||
status = psa_pake_set_role( &operation, role );
|
status = psa_pake_set_role( &operation, role );
|
||||||
if( status != PSA_SUCCESS )
|
if( status != PSA_SUCCESS )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user