Struct ntru::types::NtruEncPrivKey [] [src]

pub struct NtruEncPrivKey {
    // some fields omitted
}

NtruEncrypt private key

Methods

impl NtruEncPrivKey
[src]

fn get_q(&self) -> u16

fn get_t(&self) -> &NtruPrivPoly

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

Get params from the private key

fn import(arr: &[u8]) -> NtruEncPrivKey

Import private key

fn export(&self, params: &NtruEncParams) -> Box<[u8]>

Export private key

Trait Implementations

impl Clone for NtruEncPrivKey
[src]

fn clone(&self) -> NtruEncPrivKey

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 NtruEncPrivKey
[src]

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

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

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

This method tests for !=.

impl Debug for NtruEncPrivKey
[src]

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

Formats the value using the given formatter.

impl Default for NtruEncPrivKey
[src]

fn default() -> NtruEncPrivKey

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