mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-06-05 21:15:09 +00:00
Add test for incorrect key type in iop agreement
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
@@ -811,6 +811,11 @@ psa_status_t mbedtls_test_psa_raw_key_agreement_with_self(
|
||||
|
||||
PSA_ASSERT(status);
|
||||
}
|
||||
} else {
|
||||
TEST_EQUAL(psa_key_agreement_iop_setup(&iop_operation, key, public_key,
|
||||
public_key_length, alg,
|
||||
&shared_secret_attributes),
|
||||
PSA_ERROR_INVALID_ARGUMENT);
|
||||
}
|
||||
|
||||
#endif // defined(MBEDTLS_ECP_RESTARTABLE) && defined(MBEDTLS_PSA_BUILTIN_ALG_ECDH)
|
||||
|
||||
Reference in New Issue
Block a user