2024-07-27 14:15:35 +00:00
|
|
|
/**
|
|
|
|
* Cryptographic functions
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Generate device private key, if required
|
2024-07-27 14:34:41 +00:00
|
|
|
*
|
|
|
|
* @returns true if a key was generated, false otherwise
|
2024-07-27 14:15:35 +00:00
|
|
|
*/
|
|
|
|
bool crypto_gen_priv_key();
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|