Struct ntru::types::PublicKey
[−]
[src]
#[repr(C)]pub struct PublicKey { /* fields omitted */ }
NTRU encryption public key
Methods
impl PublicKey
[src]
fn get_q(&self) -> u16
Get the q parameter of the PublicKey
fn get_h(&self) -> &IntPoly
Get the h parameter of the PublicKey
fn import(arr: &[u8]) -> PublicKey
Import a public key
fn export(&self, params: &EncParams) -> Box<[u8]>
Export public key
Trait Implementations
impl Debug for PublicKey
[src]
impl PartialEq for PublicKey
[src]
fn eq(&self, __arg_0: &PublicKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PublicKey) -> bool
This method tests for !=
.
impl Clone for PublicKey
[src]
fn clone(&self) -> PublicKey
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