aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/keygen-html
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-24 22:02:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-25 03:01:21 +0200
commit646d7a5c78f98b61feae6c39594de29c3bfc078f (patch)
tree43b0e50fb66c4ecc0995c3aa645b9412b14ea986 /contrib/keygen-html
parentglobal: put SPDX identifier on its own line (diff)
downloadwireguard-tools-646d7a5c78f98b61feae6c39594de29c3bfc078f.tar.xz
wireguard-tools-646d7a5c78f98b61feae6c39594de29c3bfc078f.zip
crypto: make constant naming scheme consistent
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'contrib/keygen-html')
-rw-r--r--contrib/keygen-html/src/curve25519_generate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/keygen-html/src/curve25519_generate.c b/contrib/keygen-html/src/curve25519_generate.c
index c280b89..50d35de 100644
--- a/contrib/keygen-html/src/curve25519_generate.c
+++ b/contrib/keygen-html/src/curve25519_generate.c
@@ -10,7 +10,7 @@ typedef unsigned int u32;
typedef unsigned char u8;
typedef u32 __le32;
-enum { CURVE25519_POINT_SIZE = 32 };
+enum { CURVE25519_KEY_SIZE = 32 };
#ifndef __always_inline
#define __always_inline __inline __attribute__((__always_inline__))
@@ -37,7 +37,7 @@ enum { CURVE25519_POINT_SIZE = 32 };
/* We don't even attempt to deal with this in javascript. */
#define memzero_explicit(a, b)
-static __always_inline void normalize_secret(u8 secret[CURVE25519_POINT_SIZE])
+static __always_inline void normalize_secret(u8 secret[CURVE25519_KEY_SIZE])
{
secret[0] &= 248;
secret[31] &= 127;