Trait dryoc::protected::NewLockedFromSlice
source · pub trait NewLockedFromSlice<A: Zeroize + NewBytes + Lockable<A>> {
fn from_slice_into_locked(
src: &[u8]
) -> Result<Protected<A, ReadWrite, Locked>, Error>;
fn from_slice_into_readonly_locked(
src: &[u8]
) -> Result<Protected<A, ReadOnly, Locked>, Error>;
}
Available on crate feature
nightly
only.Expand description
Create a new region of protected memory from a slice.