diff options
Diffstat (limited to 'src/crypto/zinc/curve25519/curve25519-x86_64.c')
-rw-r--r-- | src/crypto/zinc/curve25519/curve25519-x86_64.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/crypto/zinc/curve25519/curve25519-x86_64.c b/src/crypto/zinc/curve25519/curve25519-x86_64.c index 81ef575..3d1806f 100644 --- a/src/crypto/zinc/curve25519/curve25519-x86_64.c +++ b/src/crypto/zinc/curve25519/curve25519-x86_64.c @@ -1975,7 +1975,7 @@ static void curve25519_adx(u8 shared[CURVE25519_KEY_SIZE], memcpy(m.private, private_key, sizeof(m.private)); memcpy(m.session, session_key, sizeof(m.session)); - clamp_secret(m.private); + curve25519_clamp_secret(m.private); /* As in the draft: * When receiving such an array, implementations of curve25519 @@ -2072,7 +2072,7 @@ static void curve25519_adx_base(u8 session_key[CURVE25519_KEY_SIZE], memcpy(m.private, private_key, sizeof(m.private)); - clamp_secret(m.private); + curve25519_clamp_secret(m.private); setzero_eltfp25519_1w(Ur1); setzero_eltfp25519_1w(Zr1); @@ -2170,7 +2170,7 @@ static void curve25519_bmi2(u8 shared[CURVE25519_KEY_SIZE], memcpy(m.private, private_key, sizeof(m.private)); memcpy(m.session, session_key, sizeof(m.session)); - clamp_secret(m.private); + curve25519_clamp_secret(m.private); /* As in the draft: * When receiving such an array, implementations of curve25519 @@ -2267,7 +2267,7 @@ static void curve25519_bmi2_base(u8 session_key[CURVE25519_KEY_SIZE], memcpy(m.private, private_key, sizeof(m.private)); - clamp_secret(m.private); + curve25519_clamp_secret(m.private); setzero_eltfp25519_1w(Ur1); setzero_eltfp25519_1w(Zr1); |