2020-05-09 23:15:01 +00:00
|
|
|
#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
|
|
|
|
*/
|
2020-05-10 00:51:20 +00:00
|
|
|
void CryptoEngine::encrypt(uint32_t fromNode, uint64_t packetNum, size_t numBytes, uint8_t *bytes)
|
|
|
|
{
|
|
|
|
DEBUG_MSG("WARNING: noop encryption!\n");
|
|
|
|
}
|
2020-05-09 23:15:01 +00:00
|
|
|
|
2020-05-10 00:51:20 +00:00
|
|
|
void CryptoEngine::decrypt(uint32_t fromNode, uint64_t packetNum, size_t numBytes, uint8_t *bytes)
|
|
|
|
{
|
|
|
|
DEBUG_MSG("WARNING: noop decryption!\n");
|
|
|
|
}
|