"Fossies" - the Fresh Open Source Software Archive  

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

About: Nettle is a low-level cryptographic library.

gostdsa-vko.c  (nettle-3.7.1):gostdsa-vko.c  (nettle-3.7.2)
skipping to change at line 90 skipping to change at line 90
#define TEMP_Y (scratch + 4*size) #define TEMP_Y (scratch + 4*size)
mpn_set_base256_le (UKM, size, ukm, ukm_length); mpn_set_base256_le (UKM, size, ukm, ukm_length);
/* If ukm is 0, set it to 1, otherwise the result will be allways equal to 0, /* If ukm is 0, set it to 1, otherwise the result will be allways equal to 0,
* no matter what private and public keys are. See RFC 4357 referencing GOST * no matter what private and public keys are. See RFC 4357 referencing GOST
* R 34.10-2001 (RFC 5832) Section 6.1 step 2. */ * R 34.10-2001 (RFC 5832) Section 6.1 step 2. */
if (mpn_zero_p (UKM, size)) if (mpn_zero_p (UKM, size))
UKM[0] = 1; UKM[0] = 1;
ecc_mod_mul (&ecc->q, TEMP, priv->p, UKM, TEMP); /* TEMP = UKM * priv */ ecc_mod_mul_canonical (&ecc->q, TEMP, priv->p, UKM, TEMP); /* TEMP = UKM * pri v */
ecc->mul (ecc, XYZ, TEMP, pub->p, scratch + 4*size); /* XYZ = UKM * priv * pub */ ecc->mul (ecc, XYZ, TEMP, pub->p, scratch + 4*size); /* XYZ = UKM * priv * pub */
ecc->h_to_a (ecc, 0, TEMP, XYZ, scratch + 5*size); /* TEMP = XYZ */ ecc->h_to_a (ecc, 0, TEMP, XYZ, scratch + 5*size); /* TEMP = XYZ */
mpn_get_base256_le (out, bsize, TEMP, size); mpn_get_base256_le (out, bsize, TEMP, size);
mpn_get_base256_le (out+bsize, bsize, TEMP_Y, size); mpn_get_base256_le (out+bsize, bsize, TEMP_Y, size);
gmp_free_limbs (scratch, itch); gmp_free_limbs (scratch, itch);
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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