Skip to content

Commit

Permalink
crypto: use ChaCha8 instead of AES-CTR for trng CSPRNG (#45)
Browse files Browse the repository at this point in the history
Fixes #40

Signed-off-by: Eric Lagergren <[email protected]>
Co-authored-by: Jonathan Dygert <[email protected]>
  • Loading branch information
elagergren-spideroak and jdygert-spok authored Jan 15, 2025
1 parent 2770e76 commit 83b083c
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 151 deletions.
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.

3 changes: 3 additions & 0 deletions crates/aranya-crypto-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,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 +134,7 @@ test_util = [
trng = [
"dep:aes",
"dep:lazy_static",
"dep:rand_chacha",
"dep:spin",
]

Expand All @@ -159,6 +161,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

0 comments on commit 83b083c

Please sign in to comment.