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.
-- Petr