From c43590a5e0e33af1424e676ddb865ac2f2c47264 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Tue, 9 Aug 2022 21:24:23 -0600 Subject: [PATCH] Add `rand_core` feature to all crates (#467) Activates the `aead/rand_core` feature --- aes-gcm-siv/Cargo.toml | 3 ++- aes-gcm/Cargo.toml | 3 ++- aes-siv/Cargo.toml | 3 ++- ccm/Cargo.toml | 3 ++- chacha20poly1305/Cargo.toml | 3 ++- deoxys/Cargo.toml | 3 ++- eax/Cargo.toml | 3 ++- mgm/Cargo.toml | 3 ++- 8 files changed, 16 insertions(+), 8 deletions(-) diff --git a/aes-gcm-siv/Cargo.toml b/aes-gcm-siv/Cargo.toml index c4c0a8c1..348d3401 100644 --- a/aes-gcm-siv/Cargo.toml +++ b/aes-gcm-siv/Cargo.toml @@ -32,8 +32,9 @@ aead = { version = "0.5", features = ["dev"], default-features = false } default = ["aes", "alloc", "getrandom"] std = ["aead/std", "alloc"] alloc = ["aead/alloc"] -getrandom = ["aead/getrandom"] +getrandom = ["aead/getrandom", "rand_core"] heapless = ["aead/heapless"] +rand_core = ["aead/rand_core"] stream = ["aead/stream"] [package.metadata.docs.rs] diff --git a/aes-gcm/Cargo.toml b/aes-gcm/Cargo.toml index f9a80c20..6abd0f4d 100644 --- a/aes-gcm/Cargo.toml +++ b/aes-gcm/Cargo.toml @@ -33,8 +33,9 @@ hex-literal = "0.3" default = ["aes", "alloc", "getrandom"] std = ["aead/std", "alloc"] alloc = ["aead/alloc"] -getrandom = ["aead/getrandom"] +getrandom = ["aead/getrandom", "rand_core"] heapless = ["aead/heapless"] +rand_core = ["aead/rand_core"] stream = ["aead/stream"] [package.metadata.docs.rs] diff --git a/aes-siv/Cargo.toml b/aes-siv/Cargo.toml index a8d41e99..2cecf476 100644 --- a/aes-siv/Cargo.toml +++ b/aes-siv/Cargo.toml @@ -37,8 +37,9 @@ hex-literal = "0.3" default = ["alloc", "getrandom"] std = ["aead/std", "alloc"] alloc = ["aead/alloc"] -getrandom = ["aead/getrandom"] +getrandom = ["aead/getrandom", "rand_core"] heapless = ["aead/heapless"] +rand_core = ["aead/rand_core"] stream = ["aead/stream"] [package.metadata.docs.rs] diff --git a/ccm/Cargo.toml b/ccm/Cargo.toml index 49045ab8..72928229 100644 --- a/ccm/Cargo.toml +++ b/ccm/Cargo.toml @@ -28,6 +28,7 @@ hex-literal = "0.3.4" default = ["alloc", "getrandom"] std = ["aead/std", "alloc"] alloc = ["aead/alloc"] -getrandom = ["aead/getrandom"] +getrandom = ["aead/getrandom", "rand_core"] heapless = ["aead/heapless"] +rand_core = ["aead/rand_core"] stream = ["aead/stream"] diff --git a/chacha20poly1305/Cargo.toml b/chacha20poly1305/Cargo.toml index eedee0c8..2531ed50 100644 --- a/chacha20poly1305/Cargo.toml +++ b/chacha20poly1305/Cargo.toml @@ -31,8 +31,9 @@ aead = { version = "0.5", features = ["dev"], default-features = false } default = ["alloc", "getrandom"] std = ["aead/std", "alloc"] alloc = ["aead/alloc"] -getrandom = ["aead/getrandom"] +getrandom = ["aead/getrandom", "rand_core"] heapless = ["aead/heapless"] +rand_core = ["aead/rand_core"] reduced-round = [] stream = ["aead/stream"] diff --git a/deoxys/Cargo.toml b/deoxys/Cargo.toml index 82dabde4..35b55435 100644 --- a/deoxys/Cargo.toml +++ b/deoxys/Cargo.toml @@ -31,8 +31,9 @@ hex-literal = "0.3" default = ["alloc", "getrandom"] std = ["aead/std", "alloc"] alloc = ["aead/alloc"] -getrandom = ["aead/getrandom"] +getrandom = ["aead/getrandom", "rand_core"] heapless = ["aead/heapless"] +rand_core = ["aead/rand_core"] stream = ["aead/stream"] [package.metadata.docs.rs] diff --git a/eax/Cargo.toml b/eax/Cargo.toml index 9798b8bd..af0c2aec 100644 --- a/eax/Cargo.toml +++ b/eax/Cargo.toml @@ -34,8 +34,9 @@ aes = "0.8" default = ["alloc", "getrandom"] std = ["aead/std", "alloc"] alloc = ["aead/alloc"] -getrandom = ["aead/getrandom"] +getrandom = ["aead/getrandom", "rand_core"] heapless = ["aead/heapless"] +rand_core = ["aead/rand_core"] stream = ["aead/stream"] [package.metadata.docs.rs] diff --git a/mgm/Cargo.toml b/mgm/Cargo.toml index d9a81c15..20f437e0 100644 --- a/mgm/Cargo.toml +++ b/mgm/Cargo.toml @@ -32,7 +32,8 @@ hex-literal = "0.2" default = ["alloc", "getrandom"] std = ["aead/std", "alloc"] alloc = ["aead/alloc"] -getrandom = ["aead/getrandom"] +getrandom = ["aead/getrandom", "rand_core"] heapless = ["aead/heapless"] +rand_core = ["aead/rand_core"] stream = ["aead/stream"] force-soft = [] # Disable support for hardware intrinsics