Skip to content

Commit 18dfe15

Browse files
authored
chacha20: remove unsound test_zeroize_inputs_internal (#419)
1 parent ef418a6 commit 18dfe15

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

chacha20/src/rng.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -619,17 +619,6 @@ pub(crate) mod tests {
619619
26, 27, 28, 29, 30, 31, 32,
620620
];
621621

622-
#[test]
623-
#[cfg(feature = "zeroize")]
624-
fn test_zeroize_inputs_internal() {
625-
let ptr = {
626-
let initial_seed: Seed = KEY.into();
627-
initial_seed.0.as_ptr()
628-
};
629-
let memory_inspection = unsafe { core::slice::from_raw_parts(ptr, 32) };
630-
assert_ne!(&KEY, memory_inspection);
631-
}
632-
633622
#[test]
634623
fn test_rng_output() {
635624
let mut rng = ChaCha20Rng::from_seed(KEY);

0 commit comments

Comments
 (0)