Add benchmarks for OPRF functions (under a bench feature)

This commit is contained in:
François Garillot
2020-07-22 14:32:58 -04:00
parent e93e8fd5a8
commit 91137903c6
5 changed files with 651 additions and 4 deletions
+5 -1
View File
@@ -383,7 +383,7 @@
//! match `client_shared_secret`. Otherwise, on failure, the `finish` algorithm outputs the error `InvalidLoginError`.
//!
#![deny(missing_docs)]
#![cfg_attr(not(feature = "bench"), deny(missing_docs))]
#![deny(unsafe_code)]
// Error types
@@ -401,7 +401,11 @@ pub mod map_to_curve;
pub mod key_exchange;
pub mod keypair;
#[cfg(feature = "bench")]
pub mod oprf;
#[cfg(not(feature = "bench"))]
mod oprf;
pub mod slow_hash;
#[cfg(test)]