~apreiml/hare-ssh

e9c35628cfe1a154c78bd8a57f0cec200646c7d1 — Armin Preiml 2 years ago c6e462a
fix: rename cmpslice to eqslice
1 files changed, 1 insertions(+), 1 deletions(-)

M net/ssh/kex.ha
M net/ssh/kex.ha => net/ssh/kex.ha +1 -1
@@ 125,7 125,7 @@ fn curve25519_sha256_getkey(
		x25519::derive(&shared, &kex.cskey, &q_s);

		let zerokey: [32]u8 = [0...];
		if (math::cmpslice(shared, zerokey) == 1) {
		if (math::eqslice(shared, zerokey) == 1) {
			abort(); // TODO: Proper error here
		};