pub struct EncryptedSecretParams { /* private fields */ }
Implementations§
Source§impl EncryptedSecretParams
impl EncryptedSecretParams
pub fn new(data: Vec<u8>, s2k_params: S2kParams) -> Self
pub fn data(&self) -> &[u8] ⓘ
pub fn string_to_key_id(&self) -> u8
pub fn string_to_key_params(&self) -> &S2kParams
pub fn checksum(&self) -> Vec<u8> ⓘ
pub fn unlock<F>( &self, pw: F, pub_key: &(impl PublicKeyTrait + Serialize), secret_tag: Option<Tag>, ) -> Result<PlainSecretParams>
Trait Implementations§
Source§impl Clone for EncryptedSecretParams
impl Clone for EncryptedSecretParams
Source§fn clone(&self) -> EncryptedSecretParams
fn clone(&self) -> EncryptedSecretParams
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 EncryptedSecretParams
impl Debug for EncryptedSecretParams
Source§impl PartialEq for EncryptedSecretParams
impl PartialEq for EncryptedSecretParams
impl Eq for EncryptedSecretParams
impl StructuralPartialEq for EncryptedSecretParams
Auto Trait Implementations§
impl Freeze for EncryptedSecretParams
impl RefUnwindSafe for EncryptedSecretParams
impl Send for EncryptedSecretParams
impl Sync for EncryptedSecretParams
impl Unpin for EncryptedSecretParams
impl UnwindSafe for EncryptedSecretParams
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