Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brian Smith
nettle
Commits
d4a9b46d
Commit
d4a9b46d
authored
Nov 16, 2002
by
Niels Möller
Browse files
Added FIXME to nettle_mpz_get_str_256.
Rev: src/nettle/bignum.c:1.6
parent
8aeecc15
Changes
1
Hide whitespace changes
Inline
Side-by-side
bignum.c
View file @
d4a9b46d
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment