Merge branch 'release/0.4.2'

This commit is contained in:
Isis Lovecruft 2017-08-16 04:29:40 +00:00
commit 2f4dd71eed
Failed to extract signature
2 changed files with 13 additions and 1 deletions

View file

@ -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"

View file

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