mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-10 08:10:04 +00:00
CPunch
e228c98c80
- CNC can accept multiple different auth keys now - laikaK_checkAuth() added - shell defaults to using shell.ini config file - CNC doesn't require a config file however it's highly recommended
16 lines
370 B
C
16 lines
370 B
C
#ifndef LAIKA_RSA_H
|
|
#define LAIKA_RSA_H
|
|
|
|
#include "sodium.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
#define LAIKAENC_SIZE(sz) (sz + crypto_box_SEALBYTES)
|
|
|
|
bool laikaK_loadKeys(uint8_t *outPub, uint8_t *outPriv, const char *inPub, const char *inPriv);
|
|
bool laikaK_genKeys(uint8_t *outPub, uint8_t *outPriv);
|
|
|
|
bool laikaK_checkAuth(uint8_t *pubKey, uint8_t **authKeys, int keys);
|
|
|
|
#endif
|