1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Add key management functions

Define psa_key_type_t and a first stab at a few values.

New functions psa_import_key, psa_export_key, psa_destroy_key,
psa_get_key_information. Implement them for raw data and RSA.

Under the hood, create an in-memory, fixed-size keystore with room
for MBEDTLS_PSA_KEY_SLOT_COUNT - 1 keys.
This commit is contained in:
Gilles Peskine
2018-01-28 13:16:24 +01:00
committed by itayzafrir
parent 1d26709dbd
commit 2f9c4dc5ad
5 changed files with 488 additions and 5 deletions

View File

@@ -36,4 +36,7 @@
/* PSA requires several types which C99 provides in stdint.h. */
#include <stdint.h>
/* Integral type representing a key slot number. */
typedef uint16_t psa_key_slot_t;
#endif /* PSA_CRYPTO_PLATFORM_H */