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 
9 #pragma once
10 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include "psa/crypto.h"
28 
38  uint8_t* input,
39  size_t input_len);
40 
51  uint8_t *output,
52  size_t output_size,
53  size_t *output_data_len);
54 
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
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:36
int32_t psa_status_t
Status code type used for all PSA Certified APIs.
Definition: error.h:40