Minor ifdef rename as it now covers more than just Ed25519

for hardware encryption. Now `USE_CC310_HW_CRYPTO`
This commit is contained in:
Nick Dunklee committed 2026-07-16 21:44:35 -06:00
1 parent 5efbc3d29c
commit 06ec571ec1
7 files changed
+15 -15

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
#include <Mesh.h>
#include <RadioLib.h>
#ifdef USE_CC310_ED25519
#ifdef USE_CC310_HW_CRYPTO
#include <Adafruit_nRFCrypto.h>
#endif
@@ -84,7 +84,7 @@ public:
RadioNoiseListener(PhysicalLayer& radio): _radio(&radio) { }
void random(uint8_t* dest, size_t sz) override {
#ifdef USE_CC310_ED25519
#ifdef USE_CC310_HW_CRYPTO
// CC310 TRNG is higher quality and environment-independent vs radio RSSI noise.
nRFCrypto.begin();
nRFCrypto.Random.generate(dest, (uint16_t)sz);