Struct recrypt::api::HashedValue [−]
pub struct HashedValue { /* fields omitted */ }
A combination of the hash of EncryptedTempKey
and the PrivateKey
of the delegator.
Used to recover the plaintext from an EncryptedTempKey
Methods
impl HashedValue
impl HashedValue
pub fn new(bytes: [u8; 128]) -> Result<Self, ApiErr>
pub fn new(bytes: [u8; 128]) -> Result<Self, ApiErr>
pub fn bytes(&self) -> &[u8; 128]
pub fn bytes(&self) -> &[u8; 128]
pub fn new_from_slice(bytes: &[u8]) -> Result<Self, ApiErr>
pub fn new_from_slice(bytes: &[u8]) -> Result<Self, ApiErr>
Trait Implementations
impl Clone for HashedValue
impl Clone for HashedValue
fn clone(&self) -> HashedValue
fn clone(&self) -> HashedValue
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
impl Copy for HashedValue
impl Copy for HashedValue
impl Debug for HashedValue
impl Debug for HashedValue
fn fmt(&self, formatter: &mut Formatter) -> Result
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for HashedValue
impl PartialEq for HashedValue
Auto Trait Implementations
impl Send for HashedValue
impl Send for HashedValue
impl Sync for HashedValue
impl Sync for HashedValue