diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-01-11 01:13:35 -0800 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-01-23 14:29:44 +0100 |
commit | 6f0fc6cb3e453b2082678cf6f59f4cc349f49b0e (patch) | |
tree | 91e160308241ade8cc55efc0d1295f5e438dfa89 /src/tools/curve25519.h | |
parent | keygen-html: bring back pure javascript implementation (diff) | |
download | wireguard-monolithic-historical-6f0fc6cb3e453b2082678cf6f59f4cc349f49b0e.tar.xz wireguard-monolithic-historical-6f0fc6cb3e453b2082678cf6f59f4cc349f49b0e.zip |
global: normalize -> clamp
Diffstat (limited to 'src/tools/curve25519.h')
-rw-r--r-- | src/tools/curve25519.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/curve25519.h b/src/tools/curve25519.h index a5c3066..badcda0 100644 --- a/src/tools/curve25519.h +++ b/src/tools/curve25519.h @@ -15,7 +15,7 @@ enum curve25519_lengths { void curve25519(uint8_t mypublic[static CURVE25519_KEY_SIZE], const uint8_t secret[static CURVE25519_KEY_SIZE], const uint8_t basepoint[static CURVE25519_KEY_SIZE]); void curve25519_generate_public(uint8_t pub[static CURVE25519_KEY_SIZE], const uint8_t secret[static CURVE25519_KEY_SIZE]); -static inline void curve25519_normalize_secret(uint8_t secret[static CURVE25519_KEY_SIZE]) +static inline void curve25519_clamp_secret(uint8_t secret[static CURVE25519_KEY_SIZE]) { secret[0] &= 248; secret[31] &= 127; |