diff options
author | vnugent <public@vaughnnugent.com> | 2024-07-27 00:05:07 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-07-27 00:05:07 -0400 |
commit | 1640f79776c6b291b49a39a6128c05888fc4153e (patch) | |
tree | be2e2b3dbf3e38f10c914ce5d017129d8b66566b /include/noscrypt.h | |
parent | 07de078a3b5b7b0043d9f81bb5a9e750a3a0c7c1 (diff) |
fix: Potential overflow in nip44 padding calculation
Diffstat (limited to 'include/noscrypt.h')
-rw-r--r-- | include/noscrypt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/noscrypt.h b/include/noscrypt.h index b91bc2b..de5d2ac 100644 --- a/include/noscrypt.h +++ b/include/noscrypt.h @@ -85,7 +85,7 @@ extern "C" { * https://github.com/nostr-protocol/nips/blob/master/44.md#decryption */ #define NIP44_MIN_ENC_MESSAGE_SIZE 0x01 -#define NIP44_MAX_ENC_MESSAGE_SIZE 0xffff +#define NIP44_MAX_ENC_MESSAGE_SIZE UINT16_MAX #define NC_ENC_VERSION_NIP04 0x04 #define NC_ENC_VERSION_NIP44 0x2c |