From 9efc32ab4932f6dc58ac69323dc0f210139a4da4 Mon Sep 17 00:00:00 2001 From: Orefkov Aleksander Date: Tue, 19 Oct 2021 06:37:10 +0100 Subject: [PATCH] plugins: sshd: sc25519 must handle last bit This was originally commented because Coverity objected to it. --- plugins/ssh-base/crypto/sc25519.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ssh-base/crypto/sc25519.c b/plugins/ssh-base/crypto/sc25519.c index a12995bc4..53acc3e40 100644 --- a/plugins/ssh-base/crypto/sc25519.c +++ b/plugins/ssh-base/crypto/sc25519.c @@ -68,8 +68,8 @@ static void barrett_reduce(sc25519 *r, const uint32_t x[64]) if(i+j >= 31) q2[i+j] += mu[i]*x[j+31]; carry = q2[31] >> 8; q2[32] += carry; - //carry = q2[32] >> 8; - //q2[33] += carry; + carry = q2[32] >> 8; + q2[33] += carry; for(i=0;i<33;i++)r1[i] = x[i]; for(i=0;i<32;i++)