Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto: get rid of rand::ThreadRng #44

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions crates/aranya-crypto-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ std = [
# `#[cfg(...)]` blocks easier to manage.
"getrandom",

# Pull in `rand` for `ThreadRng`.
"dep:rand",

"aes-gcm/std",
"aranya-buggy/std",
"crypto-common/std",
Expand All @@ -109,6 +106,7 @@ std = [
"postcard/use-std",
"rand?/std",
"rand?/std_rng",
"rand_chacha?/std",
"rand_core/std",
"serde/std",
"serde_json?/std",
Expand All @@ -133,6 +131,7 @@ test_util = [
trng = [
"dep:aes",
"dep:lazy_static",
"dep:rand_chacha",
"dep:spin",
]

Expand All @@ -159,6 +158,7 @@ p384 = { version = "0.13", default-features = false, features = ["ecdh", "ecdsa"
# Required by `aranya_crypto_derive::AlgId`.
postcard = { workspace = true, default-features = false, features = ["heapless", "experimental-derive"] }
rand = { workspace = true, default-features = false, optional = true }
rand_chacha = { version = "0.3", default-features = false, optional = true }
# `rand_core` is required by the `rust` backend.
rand_core = { workspace = true, default-features = false }
# TODO(eric): Make this optional, it should only be needed by
Expand Down
Loading
Loading