mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Update benches/x25519.rs
Co-Authored-By: DebugSteven <debugsteven@gmail.com>
This commit is contained in:
parent
dd40ae0d97
commit
f6da70d47b
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ fn bench_diffie_hellman(c: &mut Criterion) {
|
|||
c.bench_function("diffie_hellman", move |b| {
|
||||
b.iter_with_setup(
|
||||
|| EphemeralSecret::new(&mut csprng),
|
||||
|alice_secret| EphemeralSecret::diffie_hellman(alice_secret, &bob_public),
|
||||
|alice_secret| alice_secret.diffie_hellman(&bob_public),
|
||||
)
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue