Add psa_get_and_lock_key_slot_with_policy to header file

Signed-off-by: Przemyslaw Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
Przemyslaw Stekiel 2022-11-16 12:00:26 +01:00 committed by Przemek Stekiel
parent 7c7954842b
commit 1def5becc2
2 changed files with 8 additions and 5 deletions

View File

@ -183,6 +183,14 @@ static inline psa_key_slot_number_t psa_key_slot_get_slot_number(
}
#endif
/** Get the description of a key given its identifier and policy constraints
* and lock it.
*/
psa_status_t psa_get_and_lock_key_slot_with_policy( mbedtls_svc_key_id_t key,
psa_key_slot_t **p_slot,
psa_key_usage_t usage,
psa_algorithm_t alg );
/** Completely wipe a slot in memory, including its policy.
*
* Persistent storage is not affected.

View File

@ -33,11 +33,6 @@
#include <mbedtls/error.h>
#include <string.h>
extern psa_status_t psa_get_and_lock_key_slot_with_policy(
mbedtls_svc_key_id_t key,
psa_key_slot_t **p_slot,
psa_key_usage_t usage,
psa_algorithm_t alg );
/*
* State sequence:
*