Add keystore_put_key interface function for storing keys permanently

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2021-09-27 17:45:07 +02:00
committed by Beat Küng
parent fc2668cba1
commit 4c6779812d
2 changed files with 14 additions and 0 deletions
@@ -71,6 +71,15 @@ void keystore_close(keystore_session_handle_t *handle);
*/
size_t keystore_get_key(keystore_session_handle_t handle, uint8_t idx, uint8_t *key_buf, size_t key_buf_size);
/*
* Store a key persistently into the keystore
* idx: key index in keystore
* key: pointer to the key
* key_size: size of the key
*/
bool keystore_put_key(keystore_session_handle_t handle, uint8_t idx, uint8_t *key, size_t key_size);
/*
* Architecture specific PX4 Crypto API functions
*/