Skip to content

Commit

Permalink
Prime finite base field with test cases, add, sub, and partial mul (#9)
Browse files Browse the repository at this point in the history
* feat: optimized modular addition

* feat: implement optimized sub

* test: addition and subtraction

* chore: docs

* tests: red green tests for adding mul, div, neg, inv

* docs: add explainer on purpose of finite field

* feat: additive inverse

* feat: montgomery multiplication

* fix: favor const implementations

* fix: constant time montgomery multiply

* fix: clean up comment
  • Loading branch information
0xAlcibiades authored Jul 15, 2024
1 parent 350159a commit 83404f4
Show file tree
Hide file tree
Showing 3 changed files with 783 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
hex-literal = "0.4.1"
num-traits = "0.2.19"
subtle = "2.6.1"

[lib]

[dev-dependencies]
[dev-dependencies]
Loading

0 comments on commit 83404f4

Please sign in to comment.