Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 613418
Collapse All | Expand All

(-)a/ecc-mod-arith.c (-3 / +7 lines)
Lines 114-121 void Link Here
114
ecc_mod_mul (const struct ecc_modulo *m, mp_limb_t *rp,
114
ecc_mod_mul (const struct ecc_modulo *m, mp_limb_t *rp,
115
	     const mp_limb_t *ap, const mp_limb_t *bp)
115
	     const mp_limb_t *ap, const mp_limb_t *bp)
116
{
116
{
117
  mpn_mul_n (rp, ap, bp, m->size);
117
  mp_size_t itch = 2 * m->size;
118
  m->reduce (m, rp);
118
  mp_limb_t *scratch = gmp_alloc_limbs (itch);
119
120
  mpn_mul_n (scratch, ap, bp, m->size);
121
  m->reduce (m, scratch);
122
  mpn_copyi (rp, scratch, m->size);
123
  gmp_free_limbs (scratch, itch);
119
}
124
}
120
125
121
void
126
void
122
- 

Return to bug 613418