Struct ntru::types::PrivateKey
[−]
[src]
#[repr(C)]pub struct PrivateKey { /* fields omitted */ }
NTRU encryption private key
Methods
impl PrivateKey
[src]
fn get_q(&self) -> u16
Gets the q parameter of the PrivateKey
fn get_t(&self) -> &PrivPoly
Gets the tparameter of the PrivateKey
fn get_params(&self) -> Result<EncParams, Error>
Get params from the private key
fn import(arr: &[u8]) -> PrivateKey
Import private key
fn export(&self, params: &EncParams) -> Box<[u8]>
Export private key
Trait Implementations
impl Debug for PrivateKey
[src]
impl PartialEq for PrivateKey
[src]
fn eq(&self, __arg_0: &PrivateKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PrivateKey) -> bool
This method tests for !=
.
impl Clone for PrivateKey
[src]
fn clone(&self) -> PrivateKey
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 Default for PrivateKey
[src]
fn default() -> PrivateKey
Returns the "default value" for a type. Read more