mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-09 23:33:46 -05: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:
@ -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
|
||||
|
Reference in New Issue
Block a user