This library includes big number integer arithmetic to support the aforementioned cryptographic algorithms. It supports unsigned big integer arithmetic with addition, subtraction, multiplication, division, reduction, inversion, GCD, extended Euclidean algorithm (EEA), Montgomery multiplication, and modular exponentiation. It provides useful utility functions, such as endianness management and conversion routines. The big integer library is likely to change in future releases.
There are also unit tests and some sample code.
This library is under active development. Future updates to this library may change the programming interfaces.
The latest release, v1.4 includes support for the latest ECC NUMS curves (see here). The API has been updated to be compliant with the latest W3C specification, making our library compatible with the latest Web Crypto API implementations of Microsoft Edge, Chrome, Opera, and Firefox.
The library has also switched from event-based calls to Promises. This changes the way results are returned asynchronously. Please note that these are breaking changes for our existing customers, however as there is no update to the underlying cryptography, there is no need to take this update until you need these features. The samples and tests have been updated to use the new API calls, and the readme has expanded content based upon frequently asked questions from developers.
Discussion or comments? Please email us at email@example.com