pub struct QuantumKeyPair {
pub a: RingElement,
pub public_key: RingElement,
/* private fields */
}Expand description
Quantum-resistant key pair.
secret_key is the RLWE secret coefficient vector. All three
RingElement fields zeroize on drop via their own derived
ZeroizeOnDrop. params is plaintext metadata (n, q, sigma) so it
is intentionally skipped.
Fields§
§a: RingElementPublic parameter a — must be stored for correct KEM encaps/decaps
public_key: RingElementTrait Implementations§
Source§impl Clone for QuantumKeyPair
impl Clone for QuantumKeyPair
Source§fn clone(&self) -> QuantumKeyPair
fn clone(&self) -> QuantumKeyPair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuantumKeyPair
impl Debug for QuantumKeyPair
Source§impl<'de> Deserialize<'de> for QuantumKeyPair
impl<'de> Deserialize<'de> for QuantumKeyPair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Drop for QuantumKeyPair
impl Drop for QuantumKeyPair
Source§impl Serialize for QuantumKeyPair
impl Serialize for QuantumKeyPair
Auto Trait Implementations§
impl Freeze for QuantumKeyPair
impl RefUnwindSafe for QuantumKeyPair
impl Send for QuantumKeyPair
impl Sync for QuantumKeyPair
impl Unpin for QuantumKeyPair
impl UnsafeUnpin for QuantumKeyPair
impl UnwindSafe for QuantumKeyPair
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