From: Niels Möller Date: Fri, 15 Nov 2002 23:29:56 +0000 (+0100) Subject: Added FIXME to nettle_mpz_get_str_256. X-Git-Tag: nettle_1.7_release_20030311~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4a9b46ddb38e2b9fb9d05146f8580f7643cdf40;p=thirdparty%2Fnettle.git Added FIXME to nettle_mpz_get_str_256. Rev: src/nettle/bignum.c:1.6 --- diff --git a/bignum.c b/bignum.c index d923d702..59bca94e 100644 --- a/bignum.c +++ b/bignum.c @@ -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);