comparison bn_s_mp_sqr.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
14 * 14 *
15 * Tom St Denis, [email protected], http://math.libtomcrypt.org 15 * Tom St Denis, [email protected], http://math.libtomcrypt.org
16 */ 16 */
17 17
18 /* low level squaring, b = a*a, HAC pp.596-597, Algorithm 14.16 */ 18 /* low level squaring, b = a*a, HAC pp.596-597, Algorithm 14.16 */
19 int 19 int s_mp_sqr (mp_int * a, mp_int * b)
20 s_mp_sqr (mp_int * a, mp_int * b)
21 { 20 {
22 mp_int t; 21 mp_int t;
23 int res, ix, iy, pa; 22 int res, ix, iy, pa;
24 mp_word r; 23 mp_word r;
25 mp_digit u, tmpx, *tmpt; 24 mp_digit u, tmpx, *tmpt;