Struct ntru::encparams::NtruEncParams
[−]
[src]
pub struct NtruEncParams { // some fields omitted }
A set of parameters for NtruEncrypt
Methods
impl NtruEncParams
[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 NtruEncParams
[src]
fn default() -> NtruEncParams
Returns the "default value" for a type. Read more
impl PartialEq for NtruEncParams
[src]
fn eq(&self, other: &NtruEncParams) -> 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 !=
.