Struct optee_utee::crypto_op::Random[][src]

pub struct Random();
Expand description

An operation for generating random data.

Implementations

Generate random data.

Parameters

  1. res_buffer: Reference to generated random data

Example

let mut res = [0u8;16];
Random::generate(&mut res);

Panics

  1. Hardware or cryptographic algorithm failure.
  2. If the Implementation detects any other error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.