pub trait SelectKeyClient {
// Required methods
fn get_key_count_done(&self, count: usize);
fn select_key_done(&self, index: usize, error: Result<(), ErrorCode>);
}Expand description
Client for selecting keys.
Required Methods§
Sourcefn get_key_count_done(&self, count: usize)
fn get_key_count_done(&self, count: usize)
Called when the number of keys available is known.
Sourcefn select_key_done(&self, index: usize, error: Result<(), ErrorCode>)
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.