Add checks for INVALID_ARGUMENT for psa_pake_output/psa_pake_input in ecjpake_setup() test

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
Neil Armstrong 2022-06-08 17:43:20 +02:00
parent 0d001ef3da
commit 98506ab677

View file

@ -8198,6 +8198,9 @@ void ecjpake_setup( int alg_arg, int primitive_arg, int hash_arg, int role_arg,
else
PSA_ASSERT( status );
TEST_EQUAL( psa_pake_output( &operation, step, NULL, 0, NULL),
PSA_ERROR_INVALID_ARGUMENT );
TEST_ASSERT( output_len > 0 );
exit: