pub struct PeerKeyEntry {
pub public_key: [u8; 32],
pub k_enc: [u8; 16],
pub k_mic: [u8; 16],
}Expand description
One PROP_HOST_PEER_KEYS entry in item form: the peer’s public key
and the pairwise keys derived by the host. Secret-bearing — the
digest form is Self::public_key alone.
Inserting an entry whose public key matches an existing entry
replaces that entry’s key material (the spec’s exception to the
STATUS_ALREADY duplicate rule).
Fields§
§public_key: [u8; 32]§k_enc: [u8; 16]§k_mic: [u8; 16]Implementations§
Trait Implementations§
Source§impl Clone for PeerKeyEntry
impl Clone for PeerKeyEntry
Source§fn clone(&self) -> PeerKeyEntry
fn clone(&self) -> PeerKeyEntry
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PeerKeyEntry
Debug intentionally omits k_enc/k_mic: entries must never leak
key material into logs or panic messages.
impl Debug for PeerKeyEntry
Debug intentionally omits k_enc/k_mic: entries must never leak
key material into logs or panic messages.
Source§impl PartialEq for PeerKeyEntry
impl PartialEq for PeerKeyEntry
impl Copy for PeerKeyEntry
impl Eq for PeerKeyEntry
impl StructuralPartialEq for PeerKeyEntry
Auto Trait Implementations§
impl Freeze for PeerKeyEntry
impl RefUnwindSafe for PeerKeyEntry
impl Send for PeerKeyEntry
impl Sync for PeerKeyEntry
impl Unpin for PeerKeyEntry
impl UnwindSafe for PeerKeyEntry
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)