pub struct DerivedEncryptKey { /* private fields */ }Expand description
Encrypt key material is used to transform an encryption key using derivation which should allow encryption keys to be changed without having to decrypt and reencrypt the data itself.
Implementations§
Source§impl DerivedEncryptKey
impl DerivedEncryptKey
pub fn new(key: &EncryptKey) -> DerivedEncryptKey
pub fn reverse(key: &EncryptKey, inner: &EncryptKey) -> DerivedEncryptKey
pub fn transmute(&self, key: &EncryptKey) -> Result<EncryptKey, Error>
pub fn transmute_private( &self, key: &PrivateEncryptKey, ) -> Result<EncryptKey, Error>
pub fn change( &mut self, old: &EncryptKey, new: &EncryptKey, ) -> Result<(), Error>
pub fn change_private( &mut self, old: &PrivateEncryptKey, new: &PublicEncryptKey, ) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for DerivedEncryptKey
impl Clone for DerivedEncryptKey
Source§fn clone(&self) -> DerivedEncryptKey
fn clone(&self) -> DerivedEncryptKey
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 moreSource§impl Debug for DerivedEncryptKey
impl Debug for DerivedEncryptKey
Source§impl<'de> Deserialize<'de> for DerivedEncryptKey
impl<'de> Deserialize<'de> for DerivedEncryptKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for DerivedEncryptKey
impl Hash for DerivedEncryptKey
Source§impl Ord for DerivedEncryptKey
impl Ord for DerivedEncryptKey
Source§fn cmp(&self, other: &DerivedEncryptKey) -> Ordering
fn cmp(&self, other: &DerivedEncryptKey) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DerivedEncryptKey
impl PartialEq for DerivedEncryptKey
Source§impl PartialOrd for DerivedEncryptKey
impl PartialOrd for DerivedEncryptKey
Source§impl Serialize for DerivedEncryptKey
impl Serialize for DerivedEncryptKey
impl Eq for DerivedEncryptKey
impl StructuralPartialEq for DerivedEncryptKey
Auto Trait Implementations§
impl Freeze for DerivedEncryptKey
impl RefUnwindSafe for DerivedEncryptKey
impl Send for DerivedEncryptKey
impl Sync for DerivedEncryptKey
impl Unpin for DerivedEncryptKey
impl UnwindSafe for DerivedEncryptKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.