WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ members = [
[patch.crates-io]
digest = { path = "digest" }
signature = { path = "signature" }

crypto-bigint = { git = "https://github.com/RustCrypto/crypto-bigint", branch = "rand_core/v0.10.0-rc-2" }
ff = { git = "https://github.com/tarcieri/ff", branch = "rand_core/v0.10.0-rc-2" }
group = { git = "https://github.com/tarcieri/group", branch = "rand_core/v0.10.0-rc-2" }
5 changes: 3 additions & 2 deletions crypto-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ description = "Common cryptographic traits"
hybrid-array = "0.4"

# optional dependencies
getrandom = { version = "0.3", optional = true }
rand_core = { version = "0.9", optional = true }
getrandom = { version = "0.3", optional = true, default-features = false }
rand_core = { version = "0.10.0-rc-2", optional = true }

[features]
getrandom = ["dep:getrandom"]
rand_core = ["dep:rand_core"]
zeroize = ["hybrid-array/zeroize"]

Expand Down
1 change: 1 addition & 0 deletions crypto-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub mod hazmat;

#[cfg(feature = "getrandom")]
pub use getrandom;

#[cfg(feature = "rand_core")]
pub use rand_core;

Expand Down
3 changes: 1 addition & 2 deletions elliptic-curve/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ and public/secret keys composed thereof.
base16ct = "0.3"
crypto-bigint = { version = "0.7.0-rc.9", default-features = false, features = ["rand_core", "hybrid-array", "zeroize"] }
hybrid-array = { version = "0.4", default-features = false, features = ["zeroize"] }
rand_core = { version = "0.9.0", default-features = false }
rand_core = { version = "0.10.0-rc-2", default-features = false }
subtle = { version = "2.6", default-features = false }
zeroize = { version = "1.7", default-features = false }

Expand Down Expand Up @@ -52,7 +52,6 @@ alloc = [
]
std = [
"alloc",
"rand_core/std",
"once_cell?/std",
"pkcs8?/std",
"sec1?/std"
Expand Down
2 changes: 1 addition & 1 deletion kem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description = "Traits for key encapsulation mechanisms"

[dependencies]
crypto-common = { version = "0.2.0-rc.4", features = ["rand_core"], path = "../crypto-common" }
rand_core = "0.9"
rand_core = "0.10.0-rc-2"
zeroize = { version = "1.7", default-features = false }

[package.metadata.docs.rs]
Expand Down
4 changes: 2 additions & 2 deletions password-hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ base64ct = "1.7"
subtle = { version = "2", default-features = false }

# optional dependencies
rand_core = { version = "0.9", optional = true, default-features = false }
rand_core = { version = "0.10.0-rc-2", optional = true, default-features = false }

[features]
default = ["rand_core"]
rand_core = ["dep:rand_core"]
os_rng = ["rand_core", "rand_core/os_rng"]
#os_rng = ["rand_core", "rand_core/os_rng"]
alloc = ["base64ct/alloc"]

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion signature/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description = "Traits for cryptographic signature algorithms (e.g. ECDSA, Ed2551

[dependencies]
digest = { version = "0.11.0-rc.1", optional = true, default-features = false }
rand_core = { version = "0.9", optional = true, default-features = false }
rand_core = { version = "0.10.0-rc-2", optional = true, default-features = false }

[features]
alloc = []
Expand Down