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
2026-07-16 21:44:35 -06:00
parent a9d2574039
commit 874f0c9ff8
7 changed files with 15 additions and 15 deletions
+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);