25 lines
759 B
C
25 lines
759 B
C
#ifndef ENCRYPTED_HEADER
|
|
#define ENCRYPTED_HEADER
|
|
|
|
#include "lib/config.h"
|
|
#include "meshcore/meshframing.h"
|
|
#include "meshcore/packetstructs.h"
|
|
#include "util/log.h"
|
|
#include <string.h>
|
|
|
|
|
|
void sendEncryptedFrame (NodeEntry *targetNode, uint8_t payloadType, const uint8_t *plain, size_t plainLen);
|
|
|
|
void sendEncryptedTextMessage (NodeEntry *targetNode, const PlainTextMessagePayload *msg);
|
|
|
|
void sendEncryptedResponse (NodeEntry *targetNode, const Response *resp);
|
|
|
|
void sendEncryptedRequest (NodeEntry *targetNode, const Request *req);
|
|
|
|
void sendEncryptedPathPayload (NodeEntry *targetNode, const ReturnedPathPayload *path);
|
|
|
|
EncryptedPayloadStruct decodeEncryptedPayload (FrameStruct frame);
|
|
|
|
void parseEncryptedPayload (EncryptedPayloadStruct enc);
|
|
|
|
#endif |