Struct ntru::types::KeyPair
[−]
[src]
#[repr(C)]pub struct KeyPair { /* fields omitted */ }
NTRU encryption key pair
Methods
impl KeyPair
[src]
fn new(private: PrivateKey, public: PublicKey) -> KeyPair
Generate a new key pair
fn get_params(&self) -> Result<EncParams, Error>
Get params from the key pair
fn get_private(&self) -> &PrivateKey
The private key
fn get_public(&self) -> &PublicKey
The public key
Trait Implementations
impl Debug for KeyPair
[src]
impl PartialEq for KeyPair
[src]
fn eq(&self, __arg_0: &KeyPair) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &KeyPair) -> bool
This method tests for !=
.
impl Clone for KeyPair
[src]
fn clone(&self) -> KeyPair
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more