From ac12d2dc69451dda421586cc9f4fead37b2ef582 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Fri, 3 Nov 2023 19:23:49 +0000 Subject: [PATCH] Remove psa_crypto_ prefix from test functions This ensures they have a different name to the functions they test. Signed-off-by: David Horstmann --- tests/suites/test_suite_psa_crypto.data | 20 ++++++++++---------- tests/suites/test_suite_psa_crypto.function | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/suites/test_suite_psa_crypto.data b/tests/suites/test_suite_psa_crypto.data index d197023394..6b112462b4 100644 --- a/tests/suites/test_suite_psa_crypto.data +++ b/tests/suites/test_suite_psa_crypto.data @@ -7408,34 +7408,34 @@ PSA derive persistent key: HKDF SHA-256, exportable persistent_key_load_key_from_storage:"0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b":PSA_KEY_TYPE_RAW_DATA:1024:PSA_KEY_USAGE_EXPORT:0:DERIVE_KEY PSA input buffer copy: straightforward copy -psa_crypto_copy_input:20:20:PSA_SUCCESS +copy_input:20:20:PSA_SUCCESS PSA input buffer copy: copy buffer larger than required -psa_crypto_copy_input:10:20:PSA_SUCCESS +copy_input:10:20:PSA_SUCCESS PSA input buffer copy: copy buffer too small -psa_crypto_copy_input:20:10:PSA_ERROR_BUFFER_TOO_SMALL +copy_input:20:10:PSA_ERROR_BUFFER_TOO_SMALL PSA input buffer copy: zero-length source buffer -psa_crypto_copy_input:0:10:PSA_SUCCESS +copy_input:0:10:PSA_SUCCESS PSA input buffer copy: zero-length both buffers -psa_crypto_copy_input:0:0:PSA_SUCCESS +copy_input:0:0:PSA_SUCCESS PSA output buffer copy: straightforward copy -psa_crypto_copy_output:20:20:PSA_SUCCESS +copy_output:20:20:PSA_SUCCESS PSA output buffer copy: output buffer larger than required -psa_crypto_copy_output:10:20:PSA_SUCCESS +copy_output:10:20:PSA_SUCCESS PSA output buffer copy: output buffer too small -psa_crypto_copy_output:20:10:PSA_ERROR_BUFFER_TOO_SMALL +copy_output:20:10:PSA_ERROR_BUFFER_TOO_SMALL PSA output buffer copy: zero-length source buffer -psa_crypto_copy_output:0:10:PSA_SUCCESS +copy_output:0:10:PSA_SUCCESS PSA output buffer copy: zero-length both buffers -psa_crypto_copy_output:0:0:PSA_SUCCESS +copy_output:0:0:PSA_SUCCESS PSA buffers alloc and copy psa_crypto_alloc_and_copy:0:20:0:20:PSA_SUCCESS diff --git a/tests/suites/test_suite_psa_crypto.function b/tests/suites/test_suite_psa_crypto.function index 890a0448a8..4f57e05229 100644 --- a/tests/suites/test_suite_psa_crypto.function +++ b/tests/suites/test_suite_psa_crypto.function @@ -10375,7 +10375,7 @@ void ecjpake_size_macros() /* END_CASE */ /* BEGIN_CASE */ -void psa_crypto_copy_input(int src_len, int dst_len, int exp_ret) +void copy_input(int src_len, int dst_len, int exp_ret) { uint8_t *src_buffer = NULL; uint8_t *dst_buffer = NULL; @@ -10405,7 +10405,7 @@ exit: /* END_CASE */ /* BEGIN_CASE */ -void psa_crypto_copy_output(int src_len, int dst_len, int exp_ret) +void copy_output(int src_len, int dst_len, int exp_ret) { uint8_t *src_buffer = NULL; uint8_t *dst_buffer = NULL;