keycard-pro/app/storage/keys.h

20 lines
368 B
C
Raw Normal View History

2023-07-31 09:22:05 +00:00
#ifndef __KEYS__
#define __KEYS__
#include <stdint.h>
#include "error.h"
typedef enum {
DEV_AUTH_PRIV_KEY,
DEV_AUTH_SERVER_KEY,
FW_VERIFICATION_KEY,
2023-11-09 09:59:30 +00:00
DB_VERIFICATION_KEY,
KEYCARD_CA_KEY,
2024-02-13 09:31:06 +00:00
PAIRING_ENC_PRIV_KEY
2023-07-31 09:22:05 +00:00
} key_type_t;
2024-02-09 13:20:16 +00:00
app_err_t key_read_private(key_type_t type, uint8_t* out);
app_err_t key_read_public(key_type_t type, const uint8_t** out);
2023-07-31 09:22:05 +00:00
#endif