Struct btlib::crypto::DerivationParams
source · pub struct DerivationParams { /* private fields */ }
Expand description
Parameters used to derive cryptographic keys from passwords.
Implementations§
source§impl DerivationParams
impl DerivationParams
sourcepub const EXPORT_KEY_KIND: AeadKeyKind = AeadKeyKind::AesGcm256
pub const EXPORT_KEY_KIND: AeadKeyKind = AeadKeyKind::AesGcm256
The AeadKeyKind of the key derived from this struct.
sourcepub fn new() -> Result<DerivationParams>
pub fn new() -> Result<DerivationParams>
Creates a new struct containing the default value of all parameters.
Trait Implementations§
source§impl<'de> Deserialize<'de> for DerivationParams
impl<'de> Deserialize<'de> for DerivationParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DerivationParams
impl Send for DerivationParams
impl Sync for DerivationParams
impl Unpin for DerivationParams
impl UnwindSafe for DerivationParams
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