test_driver_key_management: keep mbedtls_test_opaque_wrap_key() private

Only mbedtls_test_opaque_unwrap_key() is actually needed by other
test drivers to deal with opaque keys. mbedtls_test_opaque_wrap_key()
can be kept private to test_driver_key_management.c.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti 2024-01-18 08:44:13 +01:00
parent 43ff242a8b
commit 4f34b155f5
2 changed files with 1 additions and 5 deletions

View file

@ -67,10 +67,6 @@ void mbedtls_test_transparent_free(void);
psa_status_t mbedtls_test_opaque_init(void); psa_status_t mbedtls_test_opaque_init(void);
void mbedtls_test_opaque_free(void); void mbedtls_test_opaque_free(void);
psa_status_t mbedtls_test_opaque_wrap_key(
const uint8_t *key, size_t key_length, uint8_t *wrapped_key_buffer,
size_t wrapped_key_buffer_size, size_t *wrapped_key_buffer_length);
psa_status_t mbedtls_test_opaque_unwrap_key( psa_status_t mbedtls_test_opaque_unwrap_key(
const uint8_t *wrapped_key, size_t wrapped_key_length, uint8_t *key_buffer, const uint8_t *wrapped_key, size_t wrapped_key_length, uint8_t *key_buffer,
size_t key_buffer_size, size_t *key_buffer_length); size_t key_buffer_size, size_t *key_buffer_length);

View file

@ -125,7 +125,7 @@ static size_t mbedtls_test_opaque_get_base_size()
* The argument wrapped_key_buffer_length is filled with the wrapped * The argument wrapped_key_buffer_length is filled with the wrapped
* key_size on success. * key_size on success.
* */ * */
psa_status_t mbedtls_test_opaque_wrap_key( static psa_status_t mbedtls_test_opaque_wrap_key(
const uint8_t *key, const uint8_t *key,
size_t key_length, size_t key_length,
uint8_t *wrapped_key_buffer, uint8_t *wrapped_key_buffer,