#[repr(u8)]pub enum OutputProtectionState {
ClearTextAllowed = 0,
EncryptedOutputOnly = 1,
ForbiddenOutputOutsideChip = 2,
Invalid = 3,
}
Expand description
Allowed IO transmission states between chip and host MCU for ECDH, KDF, Verify and SecureBoot commands.
Variants§
ClearTextAllowed = 0
Output in the clear is OK, though encryption can still be indicated in the mode parameter
EncryptedOutputOnly = 1
Output is OK, but the result must be encrypted. The state of the encryption bit in the mode parameter will be ignored by the ECDH command.
ForbiddenOutputOutsideChip = 2
Result must be stored in TempKey or and key slot, output outside the chip is forbidden
Invalid = 3
Invalid state
Trait Implementations§
Source§impl Clone for OutputProtectionState
impl Clone for OutputProtectionState
Source§fn clone(&self) -> OutputProtectionState
fn clone(&self) -> OutputProtectionState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OutputProtectionState
impl Debug for OutputProtectionState
Source§impl From<u8> for OutputProtectionState
impl From<u8> for OutputProtectionState
Source§impl PartialEq for OutputProtectionState
impl PartialEq for OutputProtectionState
impl Copy for OutputProtectionState
impl StructuralPartialEq for OutputProtectionState
Auto Trait Implementations§
impl Freeze for OutputProtectionState
impl RefUnwindSafe for OutputProtectionState
impl Send for OutputProtectionState
impl Sync for OutputProtectionState
impl Unpin for OutputProtectionState
impl UnwindSafe for OutputProtectionState
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