pub struct SecretContext<'a> { /* private fields */ }Expand description
Where a secret belongs: the host that owns it and the field that holds it.
A7: this pair is fed to the AEAD as associated data, so the tag proves not
only “encrypted with this key” but also “sealed for this slot”. Moving a
ciphertext between hosts or between password and su_password then fails
verification instead of silently decrypting.
Implementations§
Source§impl<'a> SecretContext<'a>
impl<'a> SecretContext<'a>
Trait Implementations§
Source§impl<'a> Clone for SecretContext<'a>
impl<'a> Clone for SecretContext<'a>
Source§fn clone(&self) -> SecretContext<'a>
fn clone(&self) -> SecretContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SecretContext<'a>
Source§impl<'a> Debug for SecretContext<'a>
impl<'a> Debug for SecretContext<'a>
impl<'a> Eq for SecretContext<'a>
Source§impl<'a> PartialEq for SecretContext<'a>
impl<'a> PartialEq for SecretContext<'a>
impl<'a> StructuralPartialEq for SecretContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for SecretContext<'a>
impl<'a> RefUnwindSafe for SecretContext<'a>
impl<'a> Send for SecretContext<'a>
impl<'a> Sync for SecretContext<'a>
impl<'a> Unpin for SecretContext<'a>
impl<'a> UnsafeUnpin for SecretContext<'a>
impl<'a> UnwindSafe for SecretContext<'a>
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.