comparison bn_mp_dr_reduce.c @ 190:d8254fc979e9 libtommath-orig LTM_0.35

Initial import of libtommath 0.35
author Matt Johnston <matt@ucc.asn.au>
date Fri, 06 May 2005 08:59:30 +0000
parents d29b64170cf0
children
comparison
equal deleted inserted replaced
142:d29b64170cf0 190:d8254fc979e9
18 /* reduce "x" in place modulo "n" using the Diminished Radix algorithm. 18 /* reduce "x" in place modulo "n" using the Diminished Radix algorithm.
19 * 19 *
20 * Based on algorithm from the paper 20 * Based on algorithm from the paper
21 * 21 *
22 * "Generating Efficient Primes for Discrete Log Cryptosystems" 22 * "Generating Efficient Primes for Discrete Log Cryptosystems"
23 * Chae Hoon Lim, Pil Loong Lee, 23 * Chae Hoon Lim, Pil Joong Lee,
24 * POSTECH Information Research Laboratories 24 * POSTECH Information Research Laboratories
25 * 25 *
26 * The modulus must be of a special format [see manual] 26 * The modulus must be of a special format [see manual]
27 * 27 *
28 * Has been modified to use algorithm 7.10 from the LTM book instead 28 * Has been modified to use algorithm 7.10 from the LTM book instead