SolarEnergy/esp32_device/main/crypto.h

24 lines
305 B
C
Raw Normal View History

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