1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

plugins: sshd: sc25519 must handle last bit

This was originally commented because Coverity objected to it.
This commit is contained in:
Orefkov Aleksander 2021-10-19 06:37:10 +01:00 committed by Andy Green
parent d77a6c397e
commit 9efc32ab49

View file

@ -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++)