tc_zeroize 0.1.0

Explicit memory erasure with volatile writes and opt-in scope guards.
Documentation
1
2
3
4
5
6
7
8
9
//! Element-wise erasure of fixed-size arrays.

use crate::Zeroize;

impl<T: Zeroize, const N: usize> Zeroize for [T; N] {
    fn zeroize(&mut self) {
        self.as_mut_slice().zeroize();
    }
}