pub struct EncapsulationKey(/* private fields */);Expand description
Validated X-Wing encapsulation (public) key (pk_M || pk_X, 1,216 bytes).
Implementations§
Source§impl EncapsulationKey
impl EncapsulationKey
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Parses and validates an X-Wing public key.
Checks exact length (1216) and runs the mandatory FIPS 203 Section 7.2 modulus check on
the embedded ML-KEM-768 encapsulation key (bytes[..1184]).
Trait Implementations§
Source§impl Clone for EncapsulationKey
impl Clone for EncapsulationKey
Source§impl Debug for EncapsulationKey
impl Debug for EncapsulationKey
impl Eq for EncapsulationKey
Source§impl PartialEq for EncapsulationKey
impl PartialEq for EncapsulationKey
impl StructuralPartialEq for EncapsulationKey
Auto Trait Implementations§
impl Freeze for EncapsulationKey
impl RefUnwindSafe for EncapsulationKey
impl Send for EncapsulationKey
impl Sync for EncapsulationKey
impl Unpin for EncapsulationKey
impl UnsafeUnpin for EncapsulationKey
impl UnwindSafe for EncapsulationKey
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