Implement mbedtls_cipher_setkey() for PSA-based cipher contexts
This commit implements the internal key slot management performed by PSA-based cipher contexts. Specifically, `mbedtls_cipher_setkey()` wraps the provided raw key material into a key slot, and `mbedtls_cipher_free()` destroys that key slot.
This commit is contained in:
parent
6118e43d15
commit
edda8b8830
2 changed files with 75 additions and 7 deletions
|
@ -121,6 +121,7 @@ typedef struct
|
|||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
typedef struct
|
||||
{
|
||||
psa_algorithm_t alg;
|
||||
psa_key_slot_t slot;
|
||||
unsigned char slot_state; /*!< 0: The slot is unset.
|
||||
* 1: The slot is set and we own it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue