"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ecc-eh-to-a.c" between
nettle-3.7.1.tar.gz and nettle-3.7.2.tar.gz

About: Nettle is a low-level cryptographic library.

ecc-eh-to-a.c  (nettle-3.7.1):ecc-eh-to-a.c  (nettle-3.7.2)
skipping to change at line 56 skipping to change at line 56
mp_limb_t *r, const mp_limb_t *p, mp_limb_t *r, const mp_limb_t *p,
mp_limb_t *scratch) mp_limb_t *scratch)
{ {
#define izp scratch #define izp scratch
#define tp (scratch + ecc->p.size) #define tp (scratch + ecc->p.size)
#define xp p #define xp p
#define yp (p + ecc->p.size) #define yp (p + ecc->p.size)
#define zp (p + 2*ecc->p.size) #define zp (p + 2*ecc->p.size)
mp_limb_t cy;
assert(op == 0); assert(op == 0);
/* Needs size + scratch for the invert call. */ /* Needs size + scratch for the invert call. */
ecc->p.invert (&ecc->p, izp, zp, tp); ecc->p.invert (&ecc->p, izp, zp, tp);
ecc_mod_mul (&ecc->p, tp, xp, izp, tp); ecc_mod_mul_canonical (&ecc->p, r, xp, izp, tp);
cy = mpn_sub_n (r, tp, ecc->p.m, ecc->p.size); ecc_mod_mul_canonical (&ecc->p, r + ecc->p.size, yp, izp, tp);
cnd_copy (cy, r, tp, ecc->p.size);
ecc_mod_mul (&ecc->p, tp, yp, izp, tp);
cy = mpn_sub_n (r + ecc->p.size, tp, ecc->p.m, ecc->p.size);
cnd_copy (cy, r + ecc->p.size, tp, ecc->p.size);
} }
 End of changes. 2 change blocks. 
9 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)