Codebase list libcryptx-perl / 8c1fc2e
avoid non-ASCII chars Karel Miko 8 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
88 * guarantee it works.
99 */
1010
11 /* Tonelli–Shanks algorithm
11 /* Tonelli-Shanks algorithm
1212 * https://en.wikipedia.org/wiki/Tonelli%E2%80%93Shanks_algorithm
1313 * https://gmplib.org/list-archives/gmp-discuss/2013-April/005300.html
1414 *
4545 goto cleanup;
4646 }
4747
48 /* NOW: Tonelli–Shanks algorithm */
48 /* NOW: Tonelli-Shanks algorithm */
4949
5050 /* factor out powers of 2 from prime-1, defining Q and S as: prime-1 = Q*2^S */
5151 if ((res = mp_copy(prime, &Q)) != MP_OKAY) goto cleanup;