Commit bbc64730 authored by Niels Möller's avatar Niels Möller

Add dom string to struct ecc_eddsa.

parent 21c9be59
2020-01-02 Niels Möller <nisse@lysator.liu.se>
* eddsa-internal.h (struct ecc_eddsa): Add magic "dom" string,
needed for ed448.
2020-01-01 Niels Möller <nisse@lysator.liu.se>
* ecc-448.c (ecc_mod_pow_2kp1): New function.
......
......@@ -42,6 +42,7 @@ const struct ecc_eddsa _nettle_ed25519_sha512 =
{
(nettle_hash_update_func *) sha512_update,
(nettle_hash_digest_func *) sha512_digest,
NULL, 0,
~(mp_limb_t) 7,
(mp_limb_t) 1 << (254 % GMP_NUMB_BITS),
};
......@@ -58,6 +58,8 @@ struct ecc_eddsa
/* Hash function to use */
nettle_hash_update_func *update;
nettle_hash_digest_func *digest;
const uint8_t *dom;
unsigned dom_size;
/* For generating the secret scalar */
mp_limb_t low_mask;
mp_limb_t high_bit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment