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 | f43eabd5616d5dd114b1818867e4c51d3c24dbd3 (patch) | |
tree | 001a46f2f2f53b9c997812e5275419a4313779c0 /src/crypto/zinc/curve25519/curve25519-fiat32.c | |
parent | a2fad76b15bf650942f373263cbfab43d12a3939 (diff) |
global: normalize -> clamp
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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 |