Unsigned 256-bit integers
Implementation of 256-bit unsigned integers.
Warning. Side-channel resistance is currently not implemented. This library is optimized for performance and does not use slower side-channel resistant algorithms. Please evaluate the risks before using with sensitive data.
Note. Code coverage in Rust is still very early days. The above number is likely inaccurate. Please view the coverage report for details.
Feature flags
stdBuild using libstd. (enabled by default)inlineInline small operations like bitshifts, addition, multiplication, etc. This leads to better performance at the cost of larger code size. You can always force inlining by using the_inlinesuffixed version of the operations. (enabled by default)use_randAdd support for therandcrate to generate random numbers.
Testing
See CircleCI documentation on how to run tests locally.
Benchmark
Checkout master branch:
Benchmarking using Mac OS' instrumentation. For this we need the cargo-instruments plugin for Cargo.
You can then run tests under profiling. It is recommended to filter for a specific test.