Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskuskiefer committed Aug 29, 2024
1 parent f3c0727 commit f002b2a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 154,366 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ std = []
serialization = ["serde", "tls_codec", "tls_codec/serde", "std"]
hazmat = []
hpke-test = ["std"]
hpke-test-prng = [] # ⚠️ Enable testing PRNG - DO NOT USE
hpke-test-prng = [] # ⚠️ Enable testing PRNG - DO NOT USE

[dev-dependencies]
hpke-rs-crypto = { version = "0.2.0", path = "./traits", features = ["std"] }
Expand All @@ -38,6 +38,7 @@ hpke-rs-rust-crypto = { version = "0.2.0", path = "./rust_crypto_provider", feat
rand = { version = "0.8" }
pretty_env_logger = "0.5"
criterion = { version = "0.5", features = ["html_reports"] }
hpke-rs-tests = { path = "./hpke-rs-tests", version = "*" }

[[bench]]
name = "bench"
Expand Down
4 changes: 2 additions & 2 deletions hpke-rs-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "hpke-rs-tests"
version = "0.1.0"
authors = [ "Cryspen" ]
authors = ["Cryspen"]
edition = "2021"
license = "MPL-2.0"
readme = "Readme.md"
description = "Tests for crypto providers"
repository = "https://github.com/franziskuskiefer/hpke-rs"
repository = "https://github.com/cryspen/hpke-rs"

[dependencies]
hpke-rs = { version = "0.2.0", features = [
Expand Down
11 changes: 5 additions & 6 deletions hpke-rs-tests/src/test_hpke_kat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,11 @@ pub fn test_kat<Crypto: HpkeCrypto + 'static>() {
let now = Instant::now();
kat::<Crypto>(tests.clone());
let time = now.elapsed();
log::info!("Test vectors with Rust Crypto took: {}s", time.as_secs());

// let now = Instant::now();
// kat::<HpkeEvercrypt>(tests);
// let time = now.elapsed();
// log::info!("Test vectors with Evercrypt took: {}s", time.as_secs());
log::info!(
"Test vectors with {} took: {}s",
Crypto::name(),
time.as_secs()
);
}

#[macro_export]
Expand Down
6 changes: 6 additions & 0 deletions tests/hpke.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#![allow(non_snake_case)]

use hpke_rs_tests::{kat_fun, test_funs};

test_funs!(hpke_rs_rust_crypto::HpkeRustCrypto);
kat_fun!(hpke_rs_rust_crypto::HpkeRustCrypto);
Loading

0 comments on commit f002b2a

Please sign in to comment.