Loading...
Searching...
No Matches
bt_keys_storage.h
1#pragma once
2
3#include <stdint.h>
4#include <stdbool.h>
5
6#include <gap.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct BtKeysStorage BtKeysStorage;
13
14BtKeysStorage* bt_keys_storage_alloc(const char* keys_storage_path);
15
16void bt_keys_storage_free(BtKeysStorage* instance);
17
18void bt_keys_storage_set_file_path(BtKeysStorage* instance, const char* path);
19
20void bt_keys_storage_set_ram_params(BtKeysStorage* instance, uint8_t* buff, uint16_t size);
21
22bool bt_keys_storage_is_changed(BtKeysStorage* instance);
23
24const GapRootSecurityKeys* bt_keys_storage_get_root_keys(BtKeysStorage* instance);
25
26bool bt_keys_storage_load(BtKeysStorage* instance);
27
28bool bt_keys_storage_update(BtKeysStorage* instance, uint8_t* start_addr, uint32_t size);
29
30bool bt_keys_storage_delete(BtKeysStorage* instance);
31
32#ifdef __cplusplus
33}
34#endif
Definition bt_keys_storage.c:25
Definition gap.h:87