From 3f7c39bde983aedc9e954cbe8d1eab7fe792ab5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Moj=C5=BE=C3=AD=C5=A1?= Date: Sun, 1 Dec 2024 10:47:06 +0100 Subject: [PATCH] sshcrypto_kex_curve25519.c: fix crypto_int16_nonzero_mask -> crypto_int16_zero_mask --- sshcrypto_kex_curve25519.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshcrypto_kex_curve25519.c b/sshcrypto_kex_curve25519.c index e6ad299..fd333ca 100644 --- a/sshcrypto_kex_curve25519.c +++ b/sshcrypto_kex_curve25519.c @@ -22,7 +22,7 @@ int curve25519_enc(unsigned char *c, unsigned char *k, const unsigned char *pk) purge(onetimesk, sizeof onetimesk); for (i = 0; i < crypto_dh_x25519_BYTES; ++i) d |= k[i]; - return crypto_int16_nonzero_mask(d); + return crypto_int16_zero_mask(d); } void curve25519_putkemkey(struct buf *b, const unsigned char *x) {