pub struct Keypair {
pub public: PublicKey,
pub secret: SecretKey,
}
Expand description
A public/secret keypair for use with Kyber.
Byte lengths of the keys are determined by the security level chosen.
Fields§
§public: PublicKey
§secret: SecretKey
Implementations§
Trait Implementations§
source§impl PartialEq<Keypair> for Keypair
impl PartialEq<Keypair> for Keypair
impl Copy for Keypair
impl Eq for Keypair
impl StructuralEq for Keypair
impl StructuralPartialEq for Keypair
Auto Trait Implementations§
impl RefUnwindSafe for Keypair
impl Send for Keypair
impl Sync for Keypair
impl Unpin for Keypair
impl UnwindSafe for Keypair
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