Update benches/x25519.rs

Co-Authored-By: DebugSteven <debugsteven@gmail.com>
This commit is contained in:
Henry de Valence 2018-12-15 17:41:35 -05:00 committed by GitHub
parent dd40ae0d97
commit f6da70d47b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),
)
});
}