pub trait NewLocked<A: Zeroize + NewBytes + Lockable<A>> {
// Required methods
fn new_locked() -> Result<Protected<A, ReadWrite, Locked>, Error>;
fn new_readonly_locked() -> Result<Protected<A, ReadOnly, Locked>, Error>;
fn gen_locked() -> Result<Protected<A, ReadWrite, Locked>, Error>;
fn gen_readonly_locked() -> Result<Protected<A, ReadOnly, Locked>, Error>;
}
Available on crate feature
nightly
only.Expand description
Bytes which can be allocated and protected.
Required Methods§
sourcefn new_locked() -> Result<Protected<A, ReadWrite, Locked>, Error>
fn new_locked() -> Result<Protected<A, ReadWrite, Locked>, Error>
Returns a new locked byte array.
sourcefn new_readonly_locked() -> Result<Protected<A, ReadOnly, Locked>, Error>
fn new_readonly_locked() -> Result<Protected<A, ReadOnly, Locked>, Error>
Returns a new locked byte array.
sourcefn gen_locked() -> Result<Protected<A, ReadWrite, Locked>, Error>
fn gen_locked() -> Result<Protected<A, ReadWrite, Locked>, Error>
Returns a new locked byte array, filled with random data.
sourcefn gen_readonly_locked() -> Result<Protected<A, ReadOnly, Locked>, Error>
fn gen_readonly_locked() -> Result<Protected<A, ReadOnly, Locked>, Error>
Returns a new read-only, locked byte array, filled with random data.
Object Safety§
This trait is not object safe.