[−][src]Struct pgp::types::StringToKey
Methods
impl StringToKey
[src]
pub fn new_default<R: CryptoRng + Rng>(rng: &mut R) -> Self
[src]
pub fn new_iterated<R: CryptoRng + Rng>(
rng: &mut R,
hash: HashAlgorithm,
count: u8
) -> Self
[src]
rng: &mut R,
hash: HashAlgorithm,
count: u8
) -> Self
impl StringToKey
[src]
pub fn count(&self) -> Option<usize>
[src]
Converts a coded count into the count. Ref: https://tools.ietf.org/html/rfc4880#section-3.7.1.3
pub fn salt(&self) -> Option<&[u8]>
[src]
pub fn hash(&self) -> HashAlgorithm
[src]
pub fn typ(&self) -> StringToKeyType
[src]
pub fn derive_key(&self, passphrase: &str, key_size: usize) -> Result<Vec<u8>>
[src]
String-To-Key methods are used to convert a given password string into a key. Ref: https://tools.ietf.org/html/rfc4880#section-3.7
Trait Implementations
impl Serialize for StringToKey
[src]
fn to_writer<W: Write>(&self, writer: &mut W) -> Result<()>
[src]
fn to_bytes(&self) -> Result<Vec<u8>>
[src]
impl Clone for StringToKey
[src]
fn clone(&self) -> StringToKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for StringToKey
[src]
impl PartialEq<StringToKey> for StringToKey
[src]
fn eq(&self, other: &StringToKey) -> bool
[src]
fn ne(&self, other: &StringToKey) -> bool
[src]
impl Debug for StringToKey
[src]
impl StructuralPartialEq for StringToKey
[src]
impl StructuralEq for StringToKey
[src]
Auto Trait Implementations
impl Send for StringToKey
impl Sync for StringToKey
impl Unpin for StringToKey
impl UnwindSafe for StringToKey
impl RefUnwindSafe for StringToKey
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,