pub struct OwnerBlock {
pub header: TlvHeader,
pub version: u32,
pub sram_exec: SramExecMode,
pub ownership_key_alg: OwnershipKeyAlg,
pub reserved: [u32; 3],
pub owner_key: KeyMaterial,
pub activate_key: KeyMaterial,
pub unlock_key: KeyMaterial,
pub data: Vec<OwnerConfigItem>,
pub signature: EcdsaRawSignature,
pub seal: Vec<u8>,
}
Expand description
Describes the owner configuration and key material.
Fields§
§header: TlvHeader
Header identifying this struct.
version: u32
Version of this structure (ie: currently, zero).
sram_exec: SramExecMode
Whether the owner wants to permit code execution in SRAM.
ownership_key_alg: OwnershipKeyAlg
The key algorithm of the ownership keys.
reserved: [u32; 3]
§owner_key: KeyMaterial
The owner identity key.
activate_key: KeyMaterial
The owner activation key.
unlock_key: KeyMaterial
The owner unlock key.
data: Vec<OwnerConfigItem>
A list of other configuration items (application keys, flash configuration, etc).
signature: EcdsaRawSignature
A signature over this block with the owner key.
seal: Vec<u8>
A sealing value that locks a configuration to a particular device.
Implementations§
Trait Implementations§
Source§impl Annotate for &OwnerBlock
impl Annotate for &OwnerBlock
fn format(&self, variant: Option<&str>, field: &MemberId<'_>) -> Option<Format>
fn comment(&self, variant: Option<&str>, field: &MemberId<'_>) -> Option<String>
fn as_annotate(&self) -> Option<&dyn Annotate>
fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
Source§impl Annotate for OwnerBlock
impl Annotate for OwnerBlock
fn format(&self, _variant: Option<&str>, field: &MemberId<'_>) -> Option<Format>
fn comment( &self, _variant: Option<&str>, field: &MemberId<'_>, ) -> Option<String>
fn as_annotate(&self) -> Option<&dyn Annotate>
fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
Source§impl Debug for OwnerBlock
impl Debug for OwnerBlock
Source§impl Default for OwnerBlock
impl Default for OwnerBlock
Source§impl<'de> Deserialize<'de> for OwnerBlock
impl<'de> Deserialize<'de> for OwnerBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OwnerBlock
impl RefUnwindSafe for OwnerBlock
impl Send for OwnerBlock
impl Sync for OwnerBlock
impl Unpin for OwnerBlock
impl UnwindSafe for OwnerBlock
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more