Add 4 bytes of random nonce to PKI (#4493)

This commit is contained in:
Jonathan Bennett
2024-08-18 07:23:56 -05:00
committed by GitHub
parent c7c620ac69
commit 23e3e6db92
3 changed files with 21 additions and 12 deletions

View File

@@ -88,7 +88,7 @@ class CryptoEngine
* a 32 bit sending node number (stored in little endian order)
* a 32 bit block counter (starts at zero)
*/
void initNonce(uint32_t fromNode, uint64_t packetId);
void initNonce(uint32_t fromNode, uint64_t packetId, uint32_t extraNonce = 0);
};
extern CryptoEngine *crypto;