Add U256/U384 and mod-const-prime wrapper utilities of both.
authorMatt Corallo <git@bluematt.me>
Mon, 4 Mar 2024 18:43:52 +0000 (18:43 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 3 Apr 2024 09:15:18 +0000 (09:15 +0000)
commit9c6775ca84026a2139d1845f061670f581088fa3
tree2cdf6fb492a0b263381d830dbfaa746f5240a834
parented08985212345ac11904b2db5b7f78be0d8885e3
Add U256/U384 and mod-const-prime wrapper utilities of both.

In the next commit we'll add support for secp256r1 and secp384r1
validation, which require 256-bit and 384-bit integers. To make
their implementation simple, we also add wrapper structs around
the new integers which are modulo a const-prime, storing and
handling the values in montgommery representation.
src/crypto/bigint.rs