Struct pgp::types::encrypted_secret::EncryptedSecretParams
source · [−]pub struct EncryptedSecretParams { /* private fields */ }
Implementations
sourceimpl EncryptedSecretParams
impl EncryptedSecretParams
pub fn new(
data: Vec<u8>,
iv: Vec<u8>,
alg: SymmetricKeyAlgorithm,
s2k: StringToKey,
id: u8
) -> Self
pub fn data(&self) -> &[u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
pub fn iv(&self) -> &[u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [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
) -> Result<PlainSecretParams> where
F: FnOnce() -> String,
Trait Implementations
sourceimpl Clone for EncryptedSecretParams
impl Clone for EncryptedSecretParams
sourcefn clone(&self) -> EncryptedSecretParams
fn clone(&self) -> EncryptedSecretParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EncryptedSecretParams
impl Debug for EncryptedSecretParams
sourceimpl PartialEq<EncryptedSecretParams> for EncryptedSecretParams
impl PartialEq<EncryptedSecretParams> for EncryptedSecretParams
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &EncryptedSecretParams) -> bool
fn ne(&self, other: &EncryptedSecretParams) -> bool
This method tests for !=
.
sourceimpl Serialize for EncryptedSecretParams
impl Serialize for EncryptedSecretParams
impl Eq for EncryptedSecretParams
impl StructuralEq for EncryptedSecretParams
impl StructuralPartialEq for EncryptedSecretParams
Auto Trait Implementations
impl RefUnwindSafe for EncryptedSecretParams
impl Send for EncryptedSecretParams
impl Sync for EncryptedSecretParams
impl Unpin for EncryptedSecretParams
impl UnwindSafe for EncryptedSecretParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more