mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 03:13:44 +08:00
Add keystore_put_key interface function for storing keys permanently
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Beat Küng
parent
fc2668cba1
commit
4c6779812d
@@ -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
|
||||
*/
|
||||
|
||||
@@ -77,3 +77,8 @@ size_t keystore_get_key(keystore_session_handle_t handle, uint8_t idx, uint8_t *
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool keystore_put_key(keystore_session_handle_t handle, uint8_t idx, uint8_t *key, size_t key_size)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user