#[repr(u8)]pub enum EcdhTarget {
Compatibility = 0,
Slot = 4,
TempKey = 8,
Output = 12,
}
Expand description
Target where the result of the ECDH operation will be placed
Variants§
Compatibility = 0
Compatibility mode for ATECC508A. Result goes to either the output buffer or (slot_id + 1) depending on the state of slots[slot_idx].config.ecc_key_attr.ecdh_secret_out
Slot = 4
Result goes to slot specified by KeyID. slots[slot_idx].write_config must be ALWAYS (only relevant for the ATECC608x chip)
TempKey = 8
Result goes to TempKey (only relevant for the ATECC608x chip)
Output = 12
Result goes to the output buffer (only relevant for the ATECC608x chip)
Trait Implementations§
Source§impl Clone for EcdhTarget
impl Clone for EcdhTarget
Source§fn clone(&self) -> EcdhTarget
fn clone(&self) -> EcdhTarget
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 EcdhTarget
impl Debug for EcdhTarget
Source§impl PartialEq for EcdhTarget
impl PartialEq for EcdhTarget
impl StructuralPartialEq for EcdhTarget
Auto Trait Implementations§
impl Freeze for EcdhTarget
impl RefUnwindSafe for EcdhTarget
impl Send for EcdhTarget
impl Sync for EcdhTarget
impl Unpin for EcdhTarget
impl UnwindSafe for EcdhTarget
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