pub struct SecretEncryption { /* private fields */ }Expand description
Encrypts and decrypts SecretStore specs using one active key plus optional decrypt-only keys.
Implementations§
Source§impl SecretEncryption
impl SecretEncryption
Sourcepub fn from_key(key: SecretKeyHandle) -> Self
pub fn from_key(key: SecretKeyHandle) -> Self
Creates a single-key encryptor and decryptor from one key handle.
Sourcepub fn from_keyring(keyring: &KeyRing) -> Result<Self>
pub fn from_keyring(keyring: &KeyRing) -> Result<Self>
Build from a KeyRing — active key for encryption, all non-terminal keys for decryption.
Trait Implementations§
Source§impl Clone for SecretEncryption
impl Clone for SecretEncryption
Source§fn clone(&self) -> SecretEncryption
fn clone(&self) -> SecretEncryption
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 moreAuto Trait Implementations§
impl Freeze for SecretEncryption
impl RefUnwindSafe for SecretEncryption
impl Send for SecretEncryption
impl Sync for SecretEncryption
impl Unpin for SecretEncryption
impl UnsafeUnpin for SecretEncryption
impl UnwindSafe for SecretEncryption
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