psa_crypto_persistent_storage.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
21 #ifndef PSA_CRYPTO_PERSISTENT_STORAGE_H
22 #define PSA_CRYPTO_PERSISTENT_STORAGE_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #include "psa/crypto.h"
29 
39  uint8_t* input,
40  size_t input_len);
41 
52  uint8_t *output,
53  size_t output_size,
54  size_t *output_data_len);
55 
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* PSA_CRYPTO_PERSISTENT_STORAGE_H */
Function declarations for PSA Crypto.
psa_status_t psa_destroy_persistent_key(psa_key_id_t key_id)
Destroy a key in persistent storage.
psa_status_t psa_read_encoded_key_slot_from_file(psa_key_id_t id, uint8_t *output, size_t output_size, size_t *output_data_len)
Reads a CBOR encoded key slot from a file.
psa_status_t psa_write_encoded_key_slot_to_file(psa_key_id_t id, uint8_t *input, size_t input_len)
Writes a CBOR encoded key slot to a file.
uint32_t psa_key_id_t
Key identifier.
Definition: id.h:37
int32_t psa_status_t
Status code type used for all PSA Certified APIs.
Definition: error.h:41