Struct fortresscrypto::NetworkKeySuite [−][src]
pub struct NetworkKeySuite { /* fields omitted */ }
Methods
impl NetworkKeySuite
[src]
impl NetworkKeySuite
pub fn derive(master_key: &MasterKey) -> NetworkKeySuite
[src]
pub fn derive(master_key: &MasterKey) -> NetworkKeySuite
pub fn encrypt_object(&self, id: &[u8], data: &[u8]) -> (Vec<u8>, MacTag)
[src]
pub fn encrypt_object(&self, id: &[u8], data: &[u8]) -> (Vec<u8>, MacTag)
pub fn decrypt_object(&self, id: &[u8], payload: &[u8]) -> Result<Vec<u8>>
[src]
pub fn decrypt_object(&self, id: &[u8], payload: &[u8]) -> Result<Vec<u8>>
Trait Implementations
impl Eq for NetworkKeySuite
[src]
impl Eq for NetworkKeySuite
impl PartialEq for NetworkKeySuite
[src]
impl PartialEq for NetworkKeySuite
fn eq(&self, other: &NetworkKeySuite) -> bool
[src]
fn eq(&self, other: &NetworkKeySuite) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NetworkKeySuite) -> bool
[src]
fn ne(&self, other: &NetworkKeySuite) -> bool
This method tests for !=
.
impl Debug for NetworkKeySuite
[src]
impl Debug for NetworkKeySuite
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for NetworkKeySuite
[src]
impl Clone for NetworkKeySuite
fn clone(&self) -> NetworkKeySuite
[src]
fn clone(&self) -> NetworkKeySuite
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for NetworkKeySuite
impl Send for NetworkKeySuite
impl Sync for NetworkKeySuite
impl Sync for NetworkKeySuite