mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-04 11:49:58 +00:00
22 lines
571 B
C++
22 lines
571 B
C++
#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)
|
|
{
|
|
DEBUG_MSG("WARNING: noop encryption!\n");
|
|
}
|
|
|
|
void CryptoEngine::decrypt(uint32_t fromNode, uint64_t packetNum, size_t numBytes, uint8_t *bytes)
|
|
{
|
|
DEBUG_MSG("WARNING: noop decryption!\n");
|
|
} |