Skip to content

Commit 137ec79

Browse files
authored
Bump hybrid-array to v0.4 (#1047)
1 parent 03bd826 commit 137ec79

File tree

6 files changed

+55
-30
lines changed

6 files changed

+55
-30
lines changed

Cargo.lock

Lines changed: 33 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,18 @@ lms-signature = { path = "./lms" }
2525
ml-dsa = { path = "./ml-dsa" }
2626
rfc6979 = { path = "./rfc6979" }
2727
slh-dsa = { path = "./slh-dsa" }
28+
29+
# https://github.com/RustCrypto/utils/pull/1208
30+
block-buffer = { git = "https://github.com/RustCrypto/utils" }
31+
# https://github.com/RustCrypto/crypto-bigint/pull/934
32+
crypto-bigint = { git = "https://github.com/RustCrypto/crypto-bigint" }
33+
# https://github.com/RustCrypto/traits/pull/1976
34+
crypto-common = { git = "https://github.com/RustCrypto/traits" }
35+
# https://github.com/RustCrypto/traits/pull/1976
36+
digest = { git = "https://github.com/RustCrypto/traits" }
37+
# https://github.com/RustCrypto/traits/pull/1976
38+
elliptic-curve = { git = "https://github.com/RustCrypto/traits" }
39+
# https://github.com/RustCrypto/formats/pull/2015
40+
sec1 = { git = "https://github.com/RustCrypto/formats", branch = "sec1/hybrid-array-v0.4" }
41+
# https://github.com/RustCrypto/utils/pull/1208
42+
inout = { git = "https://github.com/RustCrypto/utils" }

lms/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ keywords = ["crypto", "signature"]
1313

1414
[dependencies]
1515
digest = "0.11.0-rc.0"
16-
hybrid-array = { version = "0.3", features = ["extra-sizes", "zeroize"] }
16+
hybrid-array = { version = "0.4", features = ["extra-sizes", "zeroize"] }
1717
rand = "0.9.0"
1818
sha2 = "0.11.0-rc.0"
1919
static_assertions = "1.1.0"

ml-dsa/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ alloc = ["pkcs8?/alloc"]
3232
pkcs8 = ["dep:const-oid", "dep:pkcs8"]
3333

3434
[dependencies]
35-
hybrid-array = { version = "0.3", features = ["extra-sizes"] }
35+
hybrid-array = { version = "0.4", features = ["extra-sizes"] }
3636
num-traits = { version = "0.2.19", default-features = false }
3737
rand_core = { version = "0.9", optional = true }
3838
sha3 = "0.11.0-rc.0"

ml-dsa/tests/proptests.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use hybrid_array::AsArrayRef;
12
use ml_dsa::{
23
KeyGen, KeyPair, MlDsa44, MlDsa65, MlDsa87, Signature,
34
signature::{Signer, Verifier},
@@ -10,17 +11,17 @@ const MSG: &[u8] = b"Hello world";
1011
// Keypairs
1112
prop_compose! {
1213
fn mldsa44_keypair()(seed_bytes in any::<[u8; 32]>()) -> KeyPair<MlDsa44> {
13-
MlDsa44::key_gen_internal(seed_bytes.as_ref())
14+
MlDsa44::key_gen_internal(seed_bytes.as_array_ref())
1415
}
1516
}
1617
prop_compose! {
1718
fn mldsa65_keypair()(seed_bytes in any::<[u8; 32]>()) -> KeyPair<MlDsa65> {
18-
MlDsa65::key_gen_internal(seed_bytes.as_ref())
19+
MlDsa65::key_gen_internal(seed_bytes.as_array_ref())
1920
}
2021
}
2122
prop_compose! {
2223
fn mldsa87_keypair()(seed_bytes in any::<[u8; 32]>()) -> KeyPair<MlDsa87> {
23-
MlDsa87::key_gen_internal(seed_bytes.as_ref())
24+
MlDsa87::key_gen_internal(seed_bytes.as_array_ref())
2425
}
2526
}
2627

slh-dsa/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ keywords = ["crypto", "signature"]
1616
exclude = ["tests"]
1717

1818
[dependencies]
19-
hybrid-array = { version = "0.3", features = ["extra-sizes"] }
19+
hybrid-array = { version = "0.4", features = ["extra-sizes"] }
2020
typenum = { version = "1.17.0", features = ["const-generics"] }
2121
sha3 = { version = "0.11.0-rc.0", default-features = false }
2222
zerocopy = { version = "0.7.34", features = ["derive"] }

0 commit comments

Comments
 (0)