Skip to content

Commit

Permalink
Use Dalek multiscalar mult for ed25519
Browse files Browse the repository at this point in the history
  • Loading branch information
survived committed Apr 17, 2024
1 parent c3dd3d0 commit fcb5330
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 4 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ exclude = [
"wasm/no_std",
]

[patch.crates-io.generic-ec]
git = "https://github.com/dfns/generic-ec"
branch = "faster-multiscalar"
2 changes: 1 addition & 1 deletion givre/src/ciphersuite/ed25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl Ciphersuite for Ed25519 {

type Curve = generic_ec::curves::Ed25519;
type Digest = sha2::Sha512;
type MultiscalarMul = generic_ec::multiscalar::Default;
type MultiscalarMul = generic_ec::multiscalar::Dalek;

fn h1(msg: &[&[u8]]) -> generic_ec::Scalar<Self::Curve> {
let mut hash = sha2::Sha512::new()
Expand Down

0 comments on commit fcb5330

Please sign in to comment.