Browse Source
Fix CONTACT_FLAG_AEAD bit collision with telemetry permissions
pull/1677/head
Wessel Nieboer
2 months ago
No known key found for this signature in database
GPG Key ID: 929C8E45E33B5FD2
1 changed files with
1 additions and
1 deletions
-
src/MeshCore.h
|
|
|
@ -21,7 +21,7 @@ |
|
|
|
// AEAD-4 (ChaChaPoly) encryption
|
|
|
|
#define AEAD_TAG_SIZE 4 |
|
|
|
#define AEAD_NONCE_SIZE 2 |
|
|
|
#define CONTACT_FLAG_AEAD 0x02 // bit 1 of ContactInfo.flags (bit 0 = favourite)
|
|
|
|
#define CONTACT_FLAG_AEAD 0x80 // bit 7 of ContactInfo.flags (bit 0 = favourite, bits 1-3 = telemetry perms)
|
|
|
|
#define FEAT1_AEAD_SUPPORT 0x0001 // bit 0 of feat1 uint16_t
|
|
|
|
|
|
|
|
// AEAD nonce persistence
|
|
|
|
|