"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "eddsa-verify.c" between
nettle-3.7.1.tar.gz and nettle-3.7.2.tar.gz

About: Nettle is a low-level cryptographic library.

eddsa-verify.c  (nettle-3.7.1):eddsa-verify.c  (nettle-3.7.2)
skipping to change at line 56 skipping to change at line 56
non-zero. */ non-zero. */
static int static int
equal_h (const struct ecc_modulo *p, equal_h (const struct ecc_modulo *p,
const mp_limb_t *x1, const mp_limb_t *z1, const mp_limb_t *x1, const mp_limb_t *z1,
const mp_limb_t *x2, const mp_limb_t *z2, const mp_limb_t *x2, const mp_limb_t *z2,
mp_limb_t *scratch) mp_limb_t *scratch)
{ {
#define t0 scratch #define t0 scratch
#define t1 (scratch + p->size) #define t1 (scratch + p->size)
ecc_mod_mul (p, t0, x1, z2, t0); ecc_mod_mul_canonical (p, t0, x1, z2, t0);
if (mpn_cmp (t0, p->m, p->size) >= 0) ecc_mod_mul_canonical (p, t1, x2, z1, t1);
mpn_sub_n (t0, t0, p->m, p->size);
ecc_mod_mul (p, t1, x2, z1, t1);
if (mpn_cmp (t1, p->m, p->size) >= 0)
mpn_sub_n (t1, t1, p->m, p->size);
return mpn_cmp (t0, t1, p->size) == 0; return mpn_cmp (t0, t1, p->size) == 0;
#undef t0 #undef t0
#undef t1 #undef t1
} }
mp_size_t mp_size_t
_eddsa_verify_itch (const struct ecc_curve *ecc) _eddsa_verify_itch (const struct ecc_curve *ecc)
{ {
 End of changes. 1 change blocks. 
7 lines changed or deleted 2 lines changed or added

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