pub struct DecapsulationKey(/* private fields */);Expand description
X-Wing compact decapsulation (private) key (32-byte root seed).
Automatically zeroized on drop and redacted in Debug output.
Implementations§
Source§impl DecapsulationKey
impl DecapsulationKey
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Imports a 32-byte X-Wing private seed.
Sourcepub const fn expose_bytes(&self) -> &[u8; 32]
pub const fn expose_bytes(&self) -> &[u8; 32]
Explicitly borrows the underlying 32-byte secret seed.
Sourcepub fn encapsulation_key(&self) -> EncapsulationKey
pub fn encapsulation_key(&self) -> EncapsulationKey
Derives the corresponding 1,216-byte EncapsulationKey deterministically from this seed.
Trait Implementations§
Source§impl Debug for DecapsulationKey
impl Debug for DecapsulationKey
Auto Trait Implementations§
impl Freeze for DecapsulationKey
impl RefUnwindSafe for DecapsulationKey
impl Send for DecapsulationKey
impl Sync for DecapsulationKey
impl Unpin for DecapsulationKey
impl UnsafeUnpin for DecapsulationKey
impl UnwindSafe for DecapsulationKey
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