Flipper Zero Firmware
Loading...
Searching...
No Matches
subghz_keystore.h
1#pragma once
2
3#include <furi.h>
4#include <m-array.h>
5#include <stdint.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct {
12 FuriString* name;
13 uint64_t key;
14 uint16_t type;
15} SubGhzKey;
16
17ARRAY_DEF(SubGhzKeyArray, SubGhzKey, M_POD_OPLIST)
18
19#define M_OPL_SubGhzKeyArray_t() ARRAY_OPLIST(SubGhzKeyArray, M_POD_OPLIST)
20
21typedef struct SubGhzKeystore SubGhzKeystore;
22
27SubGhzKeystore* subghz_keystore_alloc(void);
28
33void subghz_keystore_free(SubGhzKeystore* instance);
34
40bool subghz_keystore_load(SubGhzKeystore* instance, const char* filename);
41
48bool subghz_keystore_save(SubGhzKeystore* instance, const char* filename, uint8_t* iv);
49
55SubGhzKeyArray_t* subghz_keystore_get_data(SubGhzKeystore* instance);
56
63bool subghz_keystore_raw_encrypted_save(
64 const char* input_file_name,
65 const char* output_file_name,
66 uint8_t* iv);
67
76bool subghz_keystore_raw_get_data(const char* file_name, size_t offset, uint8_t* data, size_t len);
77
78#ifdef __cplusplus
79}
80#endif
Definition string.c:4
Definition subghz_keystore.h:11
Definition subghz_keystore.c:29