diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e9e310..84c3617 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,13 +20,6 @@ jobs: - 1.75.0 - 1.76.0 - 1.77.2 - - 1.78.0 - - 1.79.0 - - 1.80.0 - - 1.81.0 - - 1.82.0 - - 1.83.0 - - 1.84.0 - stable - beta - nightly diff --git a/Cargo.toml b/Cargo.toml index 1c1c3db..36b3372 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ benchmark = ["criterion"] [dependencies] base64ct = { version = "1.6.0", default-features = false, features = ["std"] } -getrandom = { version = "0.3.0", default-features = false } +getrandom = { version = "0.2.12", default-features = false } thiserror = { version = "2.0.3", default-features = false } # chacha feature: diff --git a/src/ikm.rs b/src/ikm.rs index 8eec65c..99deb14 100644 --- a/src/ikm.rs +++ b/src/ikm.rs @@ -243,7 +243,7 @@ impl InputKeyMaterialList { ) -> Result { let ikm_len = scheme.get_ikm_size(); let mut content: Vec = vec![0; ikm_len]; - getrandom::fill(content.as_mut_slice())?; + getrandom::getrandom(content.as_mut_slice())?; self.id_counter += 1; self.ikm_lst.push(InputKeyMaterial { id: self.id_counter, diff --git a/src/scheme/aes.rs b/src/scheme/aes.rs index 9a62f96..b224124 100644 --- a/src/scheme/aes.rs +++ b/src/scheme/aes.rs @@ -13,7 +13,7 @@ const NONCE_SIZE: usize = 12; pub(crate) fn aes128gcm_gen_nonce() -> Result> { let mut nonce: [u8; NONCE_SIZE] = [0; NONCE_SIZE]; - getrandom::fill(&mut nonce)?; + getrandom::getrandom(&mut nonce)?; Ok(nonce.to_vec()) } diff --git a/src/scheme/xchacha20poly1305.rs b/src/scheme/xchacha20poly1305.rs index af132a0..d041eda 100644 --- a/src/scheme/xchacha20poly1305.rs +++ b/src/scheme/xchacha20poly1305.rs @@ -9,7 +9,7 @@ const NONCE_SIZE: usize = 24; pub(crate) fn xchacha20poly1305_gen_nonce() -> Result> { let mut nonce: [u8; NONCE_SIZE] = [0; NONCE_SIZE]; - getrandom::fill(&mut nonce)?; + getrandom::getrandom(&mut nonce)?; Ok(nonce.to_vec()) }