pub struct HybridLayout {
pub classical_share_len: usize,
pub post_quantum_client_share_len: usize,
pub post_quantum_server_share_len: usize,
pub post_quantum_first: bool,
}Expand description
Layout of a hybrid key exchange’s key shares and secrets.
Fields§
Length of classical key share.
Length of post-quantum key share sent by client
Length of post-quantum key share sent by server
post_quantum_first: boolWhether the post-quantum element comes first in shares and secrets.
For dismal and unprincipled reasons, SECP256R1MLKEM768 has the classical element first, while X25519MLKEM768 has it second.
Trait Implementations§
Source§impl Clone for HybridLayout
impl Clone for HybridLayout
Source§fn clone(&self) -> HybridLayout
fn clone(&self) -> HybridLayout
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 HybridLayout
impl Debug for HybridLayout
impl Copy for HybridLayout
Auto Trait Implementations§
impl Freeze for HybridLayout
impl RefUnwindSafe for HybridLayout
impl Send for HybridLayout
impl Sync for HybridLayout
impl Unpin for HybridLayout
impl UnwindSafe for HybridLayout
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