If you are interested in cryptography, then everything should be right. Either you write, test, test, and test for many months ... your own arithmetic functions of a large number, or use the existing library.
It's hard enough to get a cryptogram to work correctly when you know that the methods you use are correct. This is almost impossible if the methods you use have subtle errors.
For cryptography, use GMP and concentrate on cryptography.
If you want to write your own arithmetic package of large quantities, then by all means do it. I did the same, and it is an interesting and rewarding experience. But do not use your own work for something critical.
source share