Struct recrypt::api::EncryptedTempKey [−]
pub struct EncryptedTempKey { /* fields omitted */ }
Random Fp12, encrypted to the delegatee. Used to unroll transforms.
Methods
impl EncryptedTempKey
impl EncryptedTempKey
pub fn new(bytes: [u8; 384]) -> Self
pub fn new(bytes: [u8; 384]) -> Self
pub fn bytes(&self) -> &[u8; 384]
pub fn bytes(&self) -> &[u8; 384]
pub fn new_from_slice(bytes: &[u8]) -> Result<EncryptedTempKey, ApiErr>
pub fn new_from_slice(bytes: &[u8]) -> Result<EncryptedTempKey, ApiErr>
construct $t from byte slice. Input slice must be exactly the correct length for the type.
Returns
Ok($t) or Err($ApiError::InputWrongSize]
Trait Implementations
impl Clone for EncryptedTempKey
impl Clone for EncryptedTempKey
fn clone(&self) -> EncryptedTempKey
fn clone(&self) -> EncryptedTempKey
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 EncryptedTempKey
impl Copy for EncryptedTempKey
impl Hashable for EncryptedTempKey
impl Hashable for EncryptedTempKey
fn to_bytes(&self) -> ByteVector
fn to_bytes(&self) -> ByteVector
Convert self to a stable byte representation.
impl Debug for EncryptedTempKey
impl Debug for EncryptedTempKey
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 EncryptedTempKey
impl PartialEq for EncryptedTempKey
Auto Trait Implementations
impl Send for EncryptedTempKey
impl Send for EncryptedTempKey
impl Sync for EncryptedTempKey
impl Sync for EncryptedTempKey