"Fossies" - the Fresh Open Source Software Archive  

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

About: Nettle is a low-level cryptographic library.

ecc-gostdsa-verify.c  (nettle-3.7.1):ecc-gostdsa-verify.c  (nettle-3.7.2)
skipping to change at line 104 skipping to change at line 104
gost_hash (&ecc->q, hp, length, digest); gost_hash (&ecc->q, hp, length, digest);
if (mpn_zero_p (hp, ecc->p.size)) if (mpn_zero_p (hp, ecc->p.size))
mpn_add_1 (hp, hp, ecc->p.size, 1); mpn_add_1 (hp, hp, ecc->p.size, 1);
/* Compute v */ /* Compute v */
ecc->q.invert (&ecc->q, vp, hp, vp + ecc->p.size); ecc->q.invert (&ecc->q, vp, hp, vp + ecc->p.size);
/* z1 = s / h, P1 = z1 * G */ /* z1 = s / h, P1 = z1 * G */
ecc_mod_mul (&ecc->q, z1, sp, vp, z1); ecc_mod_mul_canonical (&ecc->q, z1, sp, vp, z1);
/* z2 = - r / h, P2 = z2 * Y */ /* z2 = - r / h, P2 = z2 * Y */
ecc_mod_mul (&ecc->q, z2, rp, vp, z2); mpn_sub_n (hp, ecc->q.m, rp, ecc->p.size);
mpn_sub_n (z2, ecc->q.m, z2, ecc->p.size); ecc_mod_mul_canonical (&ecc->q, z2, hp, vp, z2);
/* Total storage: 5*ecc->p.size + ecc->mul_itch */ /* Total storage: 5*ecc->p.size + ecc->mul_itch */
ecc->mul (ecc, P2, z2, pp, z2 + ecc->p.size); ecc->mul (ecc, P2, z2, pp, z2 + ecc->p.size);
/* Total storage: 7*ecc->p.size + ecc->mul_g_itch (ecc->p.size) */ /* Total storage: 7*ecc->p.size + ecc->mul_g_itch (ecc->p.size) */
ecc->mul_g (ecc, P1, z1, P1 + 3*ecc->p.size); ecc->mul_g (ecc, P1, z1, P1 + 3*ecc->p.size);
/* Total storage: 6*ecc->p.size + ecc->add_hhh_itch */ /* Total storage: 6*ecc->p.size + ecc->add_hhh_itch */
ecc->add_hhh (ecc, P1, P1, P2, P1 + 3*ecc->p.size); ecc->add_hhh (ecc, P1, P1, P2, P1 + 3*ecc->p.size);
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

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