Struct optee_utee::crypto_op::Random [−][src]
pub struct Random();
Expand description
An operation for generating random data.
Implementations
Generate random data.
Parameters
res_buffer
: Reference to generated random data
Example
let mut res = [0u8;16];
Random::generate(&mut res);
Panics
- Hardware or cryptographic algorithm failure.
- If the Implementation detects any other error.
Auto Trait Implementations
impl RefUnwindSafe for Random
impl Send for Random
impl Sync for Random
impl Unpin for Random
impl UnwindSafe for Random
Blanket Implementations
pub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
pub fn from(t: T) -> T
pub fn from(t: T) -> T
Performs the conversion.
pub fn into(self) -> U
pub fn into(self) -> U
Performs the conversion.