2022-01-27 19:36:36 +00:00
|
|
|
#ifndef LAIKA_RSA_H
|
|
|
|
#define LAIKA_RSA_H
|
|
|
|
|
2022-10-06 01:36:49 +00:00
|
|
|
#include "lconfig.h"
|
2022-01-27 19:36:36 +00:00
|
|
|
#include "sodium.h"
|
|
|
|
|
2022-03-21 20:24:05 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2022-01-29 06:26:15 +00:00
|
|
|
#define LAIKAENC_SIZE(sz) (sz + crypto_box_SEALBYTES)
|
|
|
|
|
2022-03-21 20:24:05 +00:00
|
|
|
bool laikaK_loadKeys(uint8_t *outPub, uint8_t *outPriv, const char *inPub, const char *inPriv);
|
|
|
|
bool laikaK_genKeys(uint8_t *outPub, uint8_t *outPriv);
|
|
|
|
|
2022-04-06 04:57:37 +00:00
|
|
|
bool laikaK_checkAuth(uint8_t *pubKey, uint8_t **authKeys, int keys);
|
|
|
|
|
2022-01-27 19:36:36 +00:00
|
|
|
#endif
|