Skip to content
Snippets Groups Projects
Commit d4a9b46d authored by Niels Möller's avatar Niels Möller
Browse files

Added FIXME to nettle_mpz_get_str_256.

Rev: src/nettle/bignum.c:1.6
parent 8aeecc15
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,10 @@ nettle_mpz_get_str_256(unsigned length, uint8_t *s, const mpz_t x)
mpz_t c;
mpz_init(c);
mpz_com(c, x);
/* FIXME: A different trick is to complement all the limbs of c
* now. That way, nettle_mpz_to_octets need not complement each
* digit. */
assert(nettle_mpz_sizeinbase_256_u(c) <= length);
nettle_mpz_to_octets(length, s, c, 0xff);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment