/** * Storage management */ #pragma once #include #include #ifdef __cplusplus extern "C" { #endif /** * Initialize storage */ bool storage_init(); /** * Write device name */ void storage_set_dev_name(const char *name); /** * Get current device name */ size_t storage_get_dev_name(char *dest); /** * Write private key */ void storage_set_priv_key(unsigned char *key, size_t len); /** * Get current private key */ size_t storage_get_priv_key(unsigned char *key); /** * Write secure origin */ void storage_set_secure_origin(const char *name); /** * Get current secure origin */ size_t storage_get_secure_origin(char *dest); #ifdef __cplusplus } #endif