pub struct SecurePanicWiper;Expand description
Secure panic wiper using a 3-pass overwrite-then-delete strategy.
Overwrites files with:
- Pass 1: All zeros
- Pass 2: All ones (0xFF)
- Pass 3: Cryptographically random data
Then truncates and deletes the file. Continues on errors to ensure maximum coverage even under duress.
Implementations§
Trait Implementations§
Source§impl Default for SecurePanicWiper
impl Default for SecurePanicWiper
Source§impl PanicWiper for SecurePanicWiper
impl PanicWiper for SecurePanicWiper
Source§fn wipe(&self, config: &PanicWipeConfig) -> Result<(), OpsecError>
fn wipe(&self, config: &PanicWipeConfig) -> Result<(), OpsecError>
Securely erase all paths described in
config. Read moreAuto Trait Implementations§
impl Freeze for SecurePanicWiper
impl RefUnwindSafe for SecurePanicWiper
impl Send for SecurePanicWiper
impl Sync for SecurePanicWiper
impl Unpin for SecurePanicWiper
impl UnsafeUnpin for SecurePanicWiper
impl UnwindSafe for SecurePanicWiper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more