diff --git a/Cargo.lock b/Cargo.lock index 629469b8..d18c4492 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -554,8 +554,7 @@ dependencies = [ [[package]] name = "hybrid-array" version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891d15931895091dea5c47afa5b3c9a01ba634b311919fd4d41388fa0e3d76af" +source = "git+https://github.com/kayabaNerve/hybrid-array?branch=remove-as-ref#8caa508976c93696a67f40734537c91be7cecd96" dependencies = [ "typenum", "zeroize", diff --git a/Cargo.toml b/Cargo.toml index 79c5444c..8a0e1a28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,3 +25,6 @@ lms-signature = { path = "./lms" } ml-dsa = { path = "./ml-dsa" } rfc6979 = { path = "./rfc6979" } slh-dsa = { path = "./slh-dsa" } + +# https://github.com/RustCrypto/hybrid-array/pull/132 +hybrid-array = { git = "https://github.com/kayabaNerve/hybrid-array", branch = "remove-as-ref" } diff --git a/ml-dsa/tests/proptests.rs b/ml-dsa/tests/proptests.rs index f513873e..29b7acda 100644 --- a/ml-dsa/tests/proptests.rs +++ b/ml-dsa/tests/proptests.rs @@ -10,17 +10,17 @@ const MSG: &[u8] = b"Hello world"; // Keypairs prop_compose! { fn mldsa44_keypair()(seed_bytes in any::<[u8; 32]>()) -> KeyPair { - MlDsa44::key_gen_internal(seed_bytes.as_ref()) + MlDsa44::key_gen_internal((&seed_bytes).into()) } } prop_compose! { fn mldsa65_keypair()(seed_bytes in any::<[u8; 32]>()) -> KeyPair { - MlDsa65::key_gen_internal(seed_bytes.as_ref()) + MlDsa65::key_gen_internal((&seed_bytes).into()) } } prop_compose! { fn mldsa87_keypair()(seed_bytes in any::<[u8; 32]>()) -> KeyPair { - MlDsa87::key_gen_internal(seed_bytes.as_ref()) + MlDsa87::key_gen_internal((&seed_bytes).into()) } }