sercantutar / infint

Arbitrary-Precision Integer Arithmetic
http://sercantutar.github.io/infint/
198 stars 48 forks source link

Method to initialize InfInt from binary data. #3

Closed Cryptopractor closed 7 years ago

Cryptopractor commented 9 years ago

I am developing an application that creates very large random numbers from buffers filled with random data.

It would be great if there were methods to handle initializing/assigning an InfInt object from a buffer somewhat like the bin2bn function of the OpenSSL bignum library.

This method would also need to handle swapping the bytes on a little-endian system.