mbedtls/tests/suites/test_suite_psa_crypto_memory.data
David Horstmann 63a73588cf Add testcase for psa_crypto_output_copy_free()
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2023-11-08 18:13:23 +00:00

57 lines
1.4 KiB
Plaintext

PSA input buffer copy: straightforward copy
copy_input:20:20:PSA_SUCCESS
PSA input buffer copy: copy buffer larger than required
copy_input:10:20:PSA_SUCCESS
PSA input buffer copy: copy buffer too small
copy_input:20:10:PSA_ERROR_CORRUPTION_DETECTED
PSA input buffer copy: zero-length source buffer
copy_input:0:10:PSA_SUCCESS
PSA input buffer copy: zero-length both buffers
copy_input:0:0:PSA_SUCCESS
PSA output buffer copy: straightforward copy
copy_output:20:20:PSA_SUCCESS
PSA output buffer copy: output buffer larger than required
copy_output:10:20:PSA_SUCCESS
PSA output buffer copy: output buffer too small
copy_output:20:10:PSA_ERROR_CORRUPTION_DETECTED
PSA output buffer copy: zero-length source buffer
copy_output:0:10:PSA_SUCCESS
PSA output buffer copy: zero-length both buffers
copy_output:0:0:PSA_SUCCESS
PSA crypto input copy alloc
input_copy_alloc:200:PSA_SUCCESS
PSA crypto input copy alloc, NULL buffer
input_copy_alloc:0:PSA_SUCCESS
PSA crypto input copy free
input_copy_free:200
PSA crypto input copy free, NULL buffer
input_copy_free:0
PSA crypto output copy alloc
output_copy_alloc:200:PSA_SUCCESS
PSA crypto output copy alloc, NULL buffer
output_copy_alloc:0:PSA_SUCCESS
PSA crypto output copy free
output_copy_free:200:0:PSA_SUCCESS
PSA crypto output copy free, NULL buffer
output_copy_free:0:0:PSA_SUCCESS
PSA crypto output copy free, NULL original buffer
output_copy_free:200:1:PSA_ERROR_CORRUPTION_DETECTED