You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
newLeftmostBits = ((uint64_t)RANDOM_REG32 | (1 << 31)) << 32; // We never want newLeftmostBits == 0 since that would indicate an unencrypted transmission.
145
+
newLeftmostBits = ((uint64_t)ESP.random() | (1 << 31)) << 32; // We never want newLeftmostBits == 0 since that would indicate an unencrypted transmission.
if(hmac.length() == 2*CryptoInterface::SHA256_NATURAL_LENGTH// We know that each HMAC byte should become 2 String characters due to uint8ArrayToHexString.
468
+
if(hmac.length() == 2*experimental::crypto::SHA256::NATURAL_LENGTH// We know that each HMAC byte should become 2 String characters due to uint8ArrayToHexString.
Copy file name to clipboardExpand all lines: libraries/ESP8266WiFiMesh/src/EspnowMeshBackend.h
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,6 @@
92
92
#include<map>
93
93
#include<list>
94
94
#include"EspnowNetworkInfo.h"
95
-
#include"CryptoInterface.h"
96
95
97
96
/**
98
97
* An alternative to standard delay(). Will continuously call performEspnowMaintenance() during the waiting time, so that the ESP-NOW node remains responsive.
@@ -483,9 +482,9 @@ class EspnowMeshBackend : public MeshBackendBase {
483
482
*
484
483
* This changes the message encryption key for all EspnowMeshBackend instances on this ESP8266.
485
484
*
486
-
* @param espnowMessageEncryptionKey An array containing the CryptoInterface::ENCRYPTION_KEY_LENGTH bytes that will be used as the message encryption key.
485
+
* @param espnowMessageEncryptionKey An array containing the experimental::crypto::ENCRYPTION_KEY_LENGTH bytes that will be used as the message encryption key.
constexpruint8_t maxEncryptedConnections = 6; // This is limited by the ESP-NOW API. Max 6 in AP or AP+STA mode. Max 10 in STA mode. See "ESP-NOW User Guide" for more info.
constexpruint8_t maxEncryptedConnections = 6; // This is limited by the ESP-NOW API. Max 6 in AP or AP+STA mode. Max 10 in STA mode. See "ESP-NOW User Guide" for more info.
constexpruint8_t encryptedConnectionKeyLength = 16; // This is restricted to exactly 16 bytes by the ESP-NOW API. It should not be changed unless the ESP-NOW API is changed.
69
69
constexpruint8_t hashKeyLength = 16; // This can be changed to any value up to 255. Common values are 16 and 32.
0 commit comments