pub struct PskBundle<'a> {
pub psk: &'a [u8],
pub psk_id: &'a [u8],
}
Expand description
Contains preshared key bytes and an identifier. This is intended to go inside an OpModeR
or
OpModeS
struct.
Requirements
psk
MUST contain at least 32 bytes of entropy. Further, psk.len()
SHOULD be at least as
long as an extracted key from the KDF you use with setup_sender
/setup_receiver
, i.e., at
least Kdf::extracted_key_size()
.
Fields§
§psk: &'a [u8]
The preshared key
psk_id: &'a [u8]
A bytestring that uniquely identifies this PSK
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PskBundle<'a>
impl<'a> Send for PskBundle<'a>
impl<'a> Sync for PskBundle<'a>
impl<'a> Unpin for PskBundle<'a>
impl<'a> UnwindSafe for PskBundle<'a>
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