Add comment in raw key agreement test function

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard
2026-03-03 10:26:03 +01:00
parent 7a4e2c67b4
commit 5cce3c8a75

View File

@@ -9873,6 +9873,8 @@ void key_agreement(int alg_arg,
TEST_LE_U(PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE(our_key_type, key_bits),
PSA_RAW_KEY_AGREEMENT_OUTPUT_MAX_SIZE);
/* Note: the case where we expect PSA_ERROR_BUFFER_TOO_SMALL is not covered
* by separate test data, but by additional code below in this function. */
const size_t output_alloc_size = expected_status == PSA_SUCCESS ?
expected_output->len :
PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE(our_key_type, key_bits);