rainwolf / FGInt

Fast Gigantic Integers (FreePascal, Delphi)
13 stars 10 forks source link

Where is ConvertBase256to2? #2

Open atelierw opened 3 years ago

atelierw commented 3 years ago

Ages ago, I modified your old library (https://github.com/SnakeDoctor/FGInt) to be able to use it with more recent versions of Delphi (after Delphi 7). If I remember well, all we had to do was replace String with AnsiString and Char with AnsiChar, a 10 minutes job. After that it continued to work slow but very well.

I don't know if this version here works with Unicode and I did not investigate that part. I suspect it still does not. Today I decided to test it on my little project which is essentially related to elliptic curves and noticed the absence of the important procedure ConvertBase256to2.

I use it for the "Double-and-add" point calculation https://en.wikipedia.org/wiki/Elliptic_curve_point_multiplication

This is just a suggestion.

Have a good time. Thank you.