On 02/06/20 09:54 +0200, Petr Pisar wrote:
On Tue, Jun 02, 2020 at 07:58:15AM +0200, tsalim--- via devel wrote:
At this point, I am working on adding support for numbers as large as 2^255
as required by the length_encode function detailed on page 9 of the RFC.
The C Programming Language does not support large numbers greater than
2^63-1 as Java does.
So I am working on making a small library for supporting numbers larger than
the constant mentioned above by storing the large number in an array.
There are plenty of arbitrary precission arithmetics libraries that provide
a support for the big integers. E.g. gmp. I believe that once you try to plug
your implementation into any cryptographic library, you will be coerced to use
that library primitives for the big integers.
I want to say that implementing these primitives is a nice excercise, but it
won't survive any real use case.
Right. Just use gmp.
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx