1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

NTRU: fix copy-paste error in comment.

The polynomial Stein's algorithm in that code was adapted from the
binary Stein in mpint.c. One of the comments which originally said
'dividing by 2' should have been updated to say 'dividing by x' in the
polynomial case, and didn't.
This commit is contained in:
Simon Tatham 2022-06-11 13:12:33 +01:00
parent 0d4af8e1c4
commit bc61acc53d

View File

@ -303,7 +303,7 @@ unsigned ntru_ring_invert(uint16_t *out, const uint16_t *in,
/* Run the gcd-finding algorithm. */
for (size_t i = 0; i < STEPS; i++) {
/*
* First swap round so that A is the one we'll be dividing by 2.
* First swap round so that A is the one we'll be dividing by x.
*
* In the case where one of the two polys has a zero constant
* term, it's that one. In the other case, it's the one of