fishlim: Fix MEMZERO macro using element number not bytes

Closes #1837
This commit is contained in:
Igor 2016-10-11 12:59:34 +03:00 committed by Patrick Griffis
parent f38261f666
commit c0aa47c7a1
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@
#define DH1080_PRIME_BYTES 135 #define DH1080_PRIME_BYTES 135
#define SHA256_DIGEST_LENGTH 32 #define SHA256_DIGEST_LENGTH 32
#define B64ABC "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" #define B64ABC "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
#define MEMZERO(x) memset(x, 0x00, (sizeof(x)/sizeof(*x)) ) #define MEMZERO(x) memset(x, 0x00, sizeof(x))
/* All clients must use the same prime number to be able to keyx */ /* All clients must use the same prime number to be able to keyx */
static const guchar prime1080[DH1080_PRIME_BYTES] = static const guchar prime1080[DH1080_PRIME_BYTES] =