Skip to content

Commit e09fcbb

Browse files
committed
ssh-cipher: add getrandom and rand_core feature passthroughs
These activate the respective features of `cipher` and if it's enabled, `aead`. This is mostly helpful for `ssh-key` to not have to directly include these crates as dependencies just to activate these features.
1 parent 165274b commit e09fcbb

2 files changed

Lines changed: 291 additions & 0 deletions

File tree

Cargo.lock

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

ssh-cipher/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ hex-literal = "1"
3737
[features]
3838
aes = ["dep:aead", "dep:aes", "dep:aes-gcm"]
3939
chacha20poly1305 = ["dep:aead", "dep:chacha20", "dep:poly1305", "dep:ctutils"]
40+
getrandom = ["rand_core", "aead?/getrandom", "cipher/getrandom"]
41+
rand_core = ["aead?/rand_core", "cipher/rand_core"]
4042
tdes = ["dep:des"]
4143
zeroize = [
4244
"dep:zeroize",

0 commit comments

Comments
 (0)