mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-09 00:04:26 -04:00
prettyprint
This commit is contained in:
parent
8202cc2aff
commit
5be40221a5
2
src/sig/qtesla/external/poly.c
vendored
2
src/sig/qtesla/external/poly.c
vendored
@ -141,7 +141,7 @@ static void poly_add_correct(poly result, const poly x, const poly y) { // Polyn
|
|||||||
|
|
||||||
for (int i = 0; i < PARAM_N; i++) {
|
for (int i = 0; i < PARAM_N; i++) {
|
||||||
result[i] = x[i] + y[i];
|
result[i] = x[i] + y[i];
|
||||||
result[i] += (result[i] >> (RADIX32-1)) & PARAM_Q; // If result[i] < 0 then add q
|
result[i] += (result[i] >> (RADIX32 - 1)) & PARAM_Q; // If result[i] < 0 then add q
|
||||||
result[i] -= PARAM_Q;
|
result[i] -= PARAM_Q;
|
||||||
result[i] += (result[i] >> (RADIX32 - 1)) & PARAM_Q; // If result[i] >= q then subtract q
|
result[i] += (result[i] >> (RADIX32 - 1)) & PARAM_Q; // If result[i] >= q then subtract q
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user