mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-15 23:42:41 +00:00
Update buffer start and length in multipart test
This fixes a test failure in which the buffer was not properly filled. Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
30a61f2ec8
commit
b8dc2453f1
@ -4615,7 +4615,8 @@ void cipher_verify_output_multipart(int alg_arg,
|
||||
PSA_ASSERT(psa_cipher_update(&operation1,
|
||||
input->x + first_part_size,
|
||||
input->len - first_part_size,
|
||||
output1, output1_buffer_size,
|
||||
output1 + output1_length,
|
||||
output1_buffer_size - output1_length,
|
||||
&function_output_length));
|
||||
TEST_LE_U(function_output_length,
|
||||
PSA_CIPHER_UPDATE_OUTPUT_SIZE(key_type,
|
||||
@ -4661,7 +4662,8 @@ void cipher_verify_output_multipart(int alg_arg,
|
||||
PSA_ASSERT(psa_cipher_update(&operation2,
|
||||
output1 + first_part_size,
|
||||
output1_length - first_part_size,
|
||||
output2, output2_buffer_size,
|
||||
output2 + output2_length,
|
||||
output2_buffer_size - output2_length,
|
||||
&function_output_length));
|
||||
TEST_LE_U(function_output_length,
|
||||
PSA_CIPHER_UPDATE_OUTPUT_SIZE(key_type,
|
||||
|
Loading…
x
Reference in New Issue
Block a user