Struct ntru::encparams::EncParams
[−]
[src]
#[repr(C)]pub struct EncParams { /* fields omitted */ }
A set of parameters for NTRU encryption
Methods
impl EncParams
[src]
fn get_name(&self) -> String
Get the name of the parameter set
fn get_n(&self) -> u16
Get the number of polynomial coefficients
fn get_q(&self) -> u16
Get the modulus
fn get_db(&self) -> u16
Get the number of random bits to prepend to the message
fn max_msg_len(&self) -> u8
Maximum message length
fn enc_len(&self) -> u16
Encryption length
fn public_len(&self) -> u16
Public key length
fn private_len(&self) -> u16
Private key length
Trait Implementations
impl Default for EncParams
[src]
impl PartialEq for EncParams
[src]
fn eq(&self, other: &EncParams) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.