pub enum KeyProvOperation {
Enroll,
SetUserKey {
key_type: KeyProvUserKeyType,
key_data: Box<[u8]>,
},
SetKey {
key_type: KeyProvUserKeyType,
key_size: u32,
},
WriteKeyNonvolatile {
memory_id: u32,
},
ReadKeyNonvolatile {
memory_id: u32,
},
WriteKeyStore {
keystore_data: Box<[u8]>,
},
ReadKeyStore {
file: String,
use_hexdump: bool,
},
}Expand description
Key provisioning operations for device key management.
These operations handle enrollment, key setting, and key store management for various types of encryption and authentication keys.
Variants§
Enroll
Enrolls key provisioning feature. No arguments are required for this operation
SetUserKey
Sends the user key specified by type to the bootloader.
Available KEY TYPES: 2 or ‘OTFADKEK’ OTFAD key 3 or ‘SBKEK’ SB file encryption key 7 or ‘PRINCE0’ Prince region 0 encryption key 8 or ‘PRINCE1’ Prince region 1 encryption key 9 or ‘PRINCE2’ Prince region 2 encryption key 11 or ‘USERKEK’ User/Boot-image encryption key 12 or ‘UDS’ Universal Device Secret for DICE
Fields
key_type: KeyProvUserKeyTypeType of user key
SetKey
Generates a key of specified size and type on the device.
Available KEY TYPES: 2 or ‘OTFADKEK’ OTFAD key 3 or ‘SBKEK’ SB file encryption key 7 or ‘PRINCE0’ Prince region 0 encryption key 8 or ‘PRINCE1’ Prince region 1 encryption key 9 or ‘PRINCE2’ Prince region 2 encryption key 11 or ‘USERKEK’ User/Boot-image encryption key 12 or ‘UDS’ Universal Device Secret for DICE
Note: The valid options of key type and corresponding size are documented in the target’s Reference Manual or User Manual. Note: Names are case insensitive
Fields
key_type: KeyProvUserKeyTypeType of key to generate
WriteKeyNonvolatile
Writes data to non-volatile storage
ReadKeyNonvolatile
Loads the key from nonvolatile memory to bootloader.
WriteKeyStore
Write key store data to the bootloader
ReadKeyStore
Reads the key store from the bootloader to host
Trait Implementations§
Source§impl Clone for KeyProvOperation
impl Clone for KeyProvOperation
Source§fn clone(&self) -> KeyProvOperation
fn clone(&self) -> KeyProvOperation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandToParams for KeyProvOperation
impl CommandToParams for KeyProvOperation
Source§impl Debug for KeyProvOperation
impl Debug for KeyProvOperation
Source§impl Display for KeyProvOperation
impl Display for KeyProvOperation
Source§impl FromArgMatches for KeyProvOperation
impl FromArgMatches for KeyProvOperation
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for KeyProvOperation
impl Subcommand for KeyProvOperation
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand