Struct EncryptedTempKey
pub struct EncryptedTempKey { /* private fields */ }
Expand description
Random Fp12, encrypted to the delegatee. Used to unroll transforms.
Implementations§
§impl EncryptedTempKey
impl EncryptedTempKey
pub fn new(bytes: [u8; 384]) -> Self
pub fn bytes(&self) -> &[u8; 384]
pub fn new_from_slice(bytes: &[u8]) -> Result<EncryptedTempKey, RecryptErr>
pub fn new_from_slice(bytes: &[u8]) -> Result<EncryptedTempKey, RecryptErr>
construct $t from byte slice. Input slice must be exactly the correct length for the type.
§Returns
Ok($t) or Err($RecryptErr::InputWrongSize]
Trait Implementations§
§impl Clone for EncryptedTempKey
impl Clone for EncryptedTempKey
§fn clone(&self) -> EncryptedTempKey
fn clone(&self) -> EncryptedTempKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for EncryptedTempKey
impl Debug for EncryptedTempKey
§impl Hash for EncryptedTempKey
impl Hash 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 PartialEq for EncryptedTempKey
impl PartialEq for EncryptedTempKey
impl Copy for EncryptedTempKey
impl Eq for EncryptedTempKey
Auto Trait Implementations§
impl Freeze for EncryptedTempKey
impl RefUnwindSafe for EncryptedTempKey
impl Send for EncryptedTempKey
impl Sync for EncryptedTempKey
impl Unpin for EncryptedTempKey
impl UnwindSafe for EncryptedTempKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more