Mercurial > dropbear
comparison bn_mp_xor.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 |
---|---|
35 px = a->used; | 35 px = a->used; |
36 x = a; | 36 x = a; |
37 } | 37 } |
38 | 38 |
39 for (ix = 0; ix < px; ix++) { | 39 for (ix = 0; ix < px; ix++) { |
40 | 40 t.dp[ix] ^= x->dp[ix]; |
41 } | 41 } |
42 mp_clamp (&t); | 42 mp_clamp (&t); |
43 mp_exch (c, &t); | 43 mp_exch (c, &t); |
44 mp_clear (&t); | 44 mp_clear (&t); |
45 return MP_OKAY; | 45 return MP_OKAY; |