Struct pgp::types::EncryptedSecretParams
source · pub struct EncryptedSecretParams { /* private fields */ }
Implementations§
source§impl EncryptedSecretParams
impl EncryptedSecretParams
pub fn new( data: Vec<u8>, iv: Vec<u8>, alg: SymmetricKeyAlgorithm, s2k: StringToKey, id: u8 ) -> Self
pub fn data(&self) -> &[u8] ⓘ
pub fn iv(&self) -> &[u8] ⓘ
pub fn encryption_algorithm(&self) -> SymmetricKeyAlgorithm
pub fn string_to_key(&self) -> &StringToKey
pub fn string_to_key_id(&self) -> u8
pub fn compare_checksum(&self, other: Option<&[u8]>) -> Result<()>
pub fn checksum(&self) -> Option<Vec<u8>>
pub fn unlock<F>( &self, pw: F, alg: PublicKeyAlgorithm, params: &PublicParams ) -> Result<PlainSecretParams>
Trait Implementations§
source§impl Clone for EncryptedSecretParams
impl Clone for EncryptedSecretParams
source§fn clone(&self) -> EncryptedSecretParams
fn clone(&self) -> EncryptedSecretParams
Returns a copy 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
source§fn eq(&self, other: &EncryptedSecretParams) -> bool
fn eq(&self, other: &EncryptedSecretParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EncryptedSecretParams
impl Serialize 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