pub struct OwnershipActivateRequest {
pub primary_bl0_slot: BootSlot,
pub din: u64,
pub erase_previous: HardenedBool,
pub reserved: Vec<u8>,
pub nonce: u64,
pub signature: EcdsaRawSignature,
}Expand description
Request to activate ownership of the chip.
Fields§
§primary_bl0_slot: BootSlotThe new primary boot slot after activating ownership.
din: u64The Device Identification Number of the chip.
erase_previous: HardenedBoolWhether to erase the previous owner’s data during activation.
reserved: Vec<u8>Reserved for future use.
nonce: u64The ROM_EXT nonce.
signature: EcdsaRawSignatureA signature over [primary_bl0_slot..nonce] with the next owner’s activate key.
Implementations§
Source§impl OwnershipActivateRequest
impl OwnershipActivateRequest
pub const SIZE: usize = 212usize
pub fn write(&self, dest: &mut impl Write) -> Result<()>
pub fn sign(&mut self, key: &EcdsaPrivateKey) -> Result<()>
pub fn detached_sign( &mut self, algorithm: OwnershipKeyAlg, ecdsa_key: Option<&EcdsaPrivateKey>, spx_key: Option<&SpxSecretKey>, ) -> Result<DetachedSignature>
Trait Implementations§
Source§impl Annotate for OwnershipActivateRequest
impl Annotate for OwnershipActivateRequest
Source§impl Debug for OwnershipActivateRequest
impl Debug for OwnershipActivateRequest
Source§impl Default for OwnershipActivateRequest
impl Default for OwnershipActivateRequest
Source§fn default() -> OwnershipActivateRequest
fn default() -> OwnershipActivateRequest
Returns the “default value” for a type. Read more
Source§impl Serialize for OwnershipActivateRequest
impl Serialize for OwnershipActivateRequest
Auto Trait Implementations§
impl Freeze for OwnershipActivateRequest
impl RefUnwindSafe for OwnershipActivateRequest
impl Send for OwnershipActivateRequest
impl Sync for OwnershipActivateRequest
impl Unpin for OwnershipActivateRequest
impl UnwindSafe for OwnershipActivateRequest
Blanket Implementations§
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