Trait KeySelectClient

Source
pub trait KeySelectClient {
    // Required method
    fn select_key_done(&self, index: usize, error: Result<(), ErrorCode>);
}
Expand description

Client for selecting keys.

Required Methods§

Source

fn select_key_done(&self, index: usize, error: Result<(), ErrorCode>)

Called when the specified key is active and ready to use for the next cryptographic operation.

§error:
  • Ok(()): The key was selected successfully.
  • Err(()): The key was selected set successfully.
    • ErrorCode::INVAL: The index was not valid.
    • ErrorCode::FAIL: The key could not be set.

Implementors§