pub struct KeyPair { /* private fields */ }Expand description
KEM key pair.
Contains the public and secret keys generated by KEM key generation. The secret key is automatically zeroed when dropped.
Implementations§
Source§impl KeyPair
impl KeyPair
Sourcepub fn public_key(&self) -> &[u8] ⓘ
pub fn public_key(&self) -> &[u8] ⓘ
Get the public key.
Sourcepub fn secret_key(&self) -> &[u8] ⓘ
pub fn secret_key(&self) -> &[u8] ⓘ
Get the secret key.
Sourcepub fn algorithm(&self) -> KemAlgorithm
pub fn algorithm(&self) -> KemAlgorithm
Get the algorithm.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyPair
impl RefUnwindSafe for KeyPair
impl Send for KeyPair
impl Sync for KeyPair
impl Unpin for KeyPair
impl UnwindSafe for KeyPair
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)