pub struct KemKeypair {
pub public_key: KemPublicKey,
pub secret_key: KemSecretKey,
}
Expand description
KEM keypair with automatic memory zeroization
Fields§
§public_key: KemPublicKey
§secret_key: KemSecretKey
Implementations§
Source§impl KemKeypair
impl KemKeypair
Sourcepub fn public_key(&self) -> &KemPublicKey
pub fn public_key(&self) -> &KemPublicKey
Get the public key
Sourcepub fn secret_key(&self) -> &KemSecretKey
pub fn secret_key(&self) -> &KemSecretKey
Get the secret key (use with caution)
Trait Implementations§
Source§impl Drop for KemKeypair
impl Drop for KemKeypair
Auto Trait Implementations§
impl Freeze for KemKeypair
impl RefUnwindSafe for KemKeypair
impl Send for KemKeypair
impl Sync for KemKeypair
impl Unpin for KemKeypair
impl UnwindSafe for KemKeypair
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