Struct ntru::types::NtruEncKeyPair [] [src]

pub struct NtruEncKeyPair {
    // some fields omitted
}

NtruEncrypt key pair

Methods

impl NtruEncKeyPair
[src]

fn get_params(&self) -> Result<NtruEncParamsNtruError>

Get params from the key pair

fn get_private(&self) -> &NtruEncPrivKey

The private key

fn get_public(&self) -> &NtruEncPubKey

The public key

Trait Implementations

impl Clone for NtruEncKeyPair
[src]

fn clone(&self) -> NtruEncKeyPair

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

impl PartialEq for NtruEncKeyPair
[src]

fn eq(&self, __arg_0: &NtruEncKeyPair) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &NtruEncKeyPair) -> bool

This method tests for !=.

impl Debug for NtruEncKeyPair
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Default for NtruEncKeyPair
[src]

fn default() -> NtruEncKeyPair

Returns the "default value" for a type. Read more