From f43eabd5616d5dd114b1818867e4c51d3c24dbd3 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 11 Jan 2019 01:13:35 -0800 Subject: global: normalize -> clamp Signed-off-by: Jason A. Donenfeld --- src/crypto/zinc/curve25519/curve25519-fiat32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crypto/zinc/curve25519/curve25519-fiat32.c') 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 -- cgit v1.2.3