mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Merge branch 'release/0.4.2'
This commit is contained in:
commit
2f4dd71eed
2 changed files with 13 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ed25519-dalek"
|
||||
version = "0.4.1"
|
||||
version = "0.4.2"
|
||||
authors = ["Isis Lovecruft <isis@torproject.org>"]
|
||||
readme = "README.md"
|
||||
license = "CC0-1.0"
|
||||
|
|
|
|||
|
|
@ -646,4 +646,16 @@ mod bench {
|
|||
|
||||
b.iter(| | Keypair::generate::<Sha512>(&mut rng));
|
||||
}
|
||||
|
||||
#[bench]
|
||||
fn underlying_scalar_mult_basepoint(b: &mut Bencher) {
|
||||
use curve25519_dalek::constants::ED25519_BASEPOINT_TABLE;
|
||||
|
||||
let scalar: Scalar = Scalar([ 20, 130, 129, 196, 247, 182, 211, 102,
|
||||
11, 168, 169, 131, 159, 69, 126, 35,
|
||||
109, 193, 175, 54, 118, 234, 138, 81,
|
||||
60, 183, 80, 186, 92, 248, 132, 13, ]);
|
||||
|
||||
b.iter(| | &scalar * &ED25519_BASEPOINT_TABLE);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue