pub trait LockedMemory: Debug + Zeroize + ZeroizeOnDrop + Sized + Clone {
    fn update(self, payload: Buffer<u8>, size: usize) -> Result<Self, MemoryError>;
    fn unlock(&self) -> Result<Buffer<u8>, MemoryError>;
}
Expand description

Memory that can be locked (unreadable) when storing sensitive data for longer period of time

Required Methods§

Modifies the value and potentially reallocates the data

Unlocks the memory and returns a Buffer

Implementors§