Skip to content

Commit

Permalink
sshcrypto_kex_curve25519.c: fix crypto_int16_nonzero_mask -> crypto_i…
Browse files Browse the repository at this point in the history
…nt16_zero_mask
  • Loading branch information
janmojzis committed Dec 1, 2024
1 parent b958a7e commit 3f7c39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sshcrypto_kex_curve25519.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3f7c39b

Please sign in to comment.