begin work on crypto

This commit is contained in:
geeksville
2020-05-09 16:15:01 -07:00
parent 8bfe9fa8fc
commit 28d21ecdcc
5 changed files with 86 additions and 2 deletions

16
src/mesh/CryptoEngine.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include "CryptoEngine.h"
#include "configuration.h"
void CryptoEngine::setKey(size_t numBytes, const uint8_t *bytes)
{
DEBUG_MSG("WARNING: Using stub crypto - all crypto is sent in plaintext!\n");
}
/**
* Encrypt a packet
*
* @param bytes is updated in place
*/
void CryptoEngine::encrypt(uint32_t fromNode, uint64_t packetNum, size_t numBytes, uint8_t *bytes) {}
void CryptoEngine::decrypt(uint32_t fromNode, uint64_t packetNum, size_t numBytes, uint8_t *bytes) {}