From d4a9b46ddb38e2b9fb9d05146f8580f7643cdf40 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Sat, 16 Nov 2002 00:29:56 +0100
Subject: [PATCH] Added FIXME to nettle_mpz_get_str_256.

Rev: src/nettle/bignum.c:1.6
---
 bignum.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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);
 
-- 
GitLab