mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +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);
|
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
|
* 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;
|
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