pub(crate) struct KeyBuilder {
pub(crate) packet_alg: &'static Algorithm,
pub(crate) header_alg: &'static Algorithm,
pub(crate) confidentiality_limit: u64,
pub(crate) integrity_limit: u64,
}
Fields§
§packet_alg: &'static Algorithm
§header_alg: &'static Algorithm
§confidentiality_limit: u64
§integrity_limit: u64
Trait Implementations§
Source§impl Algorithm for KeyBuilder
impl Algorithm for KeyBuilder
Source§fn packet_key(&self, key: AeadKey, iv: Iv) -> Box<dyn PacketKey>
fn packet_key(&self, key: AeadKey, iv: Iv) -> Box<dyn PacketKey>
Produce a
PacketKey
encrypter/decrypter for this suite. Read moreSource§fn header_protection_key(&self, key: AeadKey) -> Box<dyn HeaderProtectionKey>
fn header_protection_key(&self, key: AeadKey) -> Box<dyn HeaderProtectionKey>
Produce a
HeaderProtectionKey
encrypter/decrypter for this suite. Read moreSource§fn aead_key_len(&self) -> usize
fn aead_key_len(&self) -> usize
The length in bytes of keys for this Algorithm. Read more
Auto Trait Implementations§
impl Freeze for KeyBuilder
impl RefUnwindSafe for KeyBuilder
impl Send for KeyBuilder
impl Sync for KeyBuilder
impl Unpin for KeyBuilder
impl UnwindSafe for KeyBuilder
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