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/crypto/zinc/curve25519/curve25519-fiat32.c | |
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/crypto/zinc/curve25519/curve25519-fiat32.c')
-rw-r--r-- | src/crypto/zinc/curve25519/curve25519-fiat32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/zinc/curve25519/curve25519-fiat32.c b/src/crypto/zinc/curve25519/curve25519-fiat32.c index 60a04e4..7f4f01c 100644 --- a/src/crypto/zinc/curve25519/curve25519-fiat32.c +++ b/src/crypto/zinc/curve25519/curve25519-fiat32.c @@ -760,7 +760,7 @@ static void curve25519_generic(u8 out[CURVE25519_KEY_SIZE], u8 e[32]; memcpy(e, scalar, 32); - normalize_secret(e); + clamp_secret(e); /* The following implementation was transcribed to Coq and proven to * correspond to unary scalar multiplication in affine coordinates given |