pub struct Pbes2KeyWrapper { /* private fields */ }Available on crate features
signatures and key-wrapping-pbes2 only.Expand description
PBES2-HS256+A256KW key wrapper (password-based).
Derives a 256-bit KEK from a password using PBKDF2-HMAC-SHA256, then wraps the content encryption key with AES Key Wrap (RFC 3394).
Implementations§
Source§impl Pbes2KeyWrapper
impl Pbes2KeyWrapper
Sourcepub const DEFAULT_ITERATIONS: u32 = 600_000
pub const DEFAULT_ITERATIONS: u32 = 600_000
Default PBKDF2 iteration count (600,000).
Sourcepub const MIN_ITERATIONS: u32 = 10_000
pub const MIN_ITERATIONS: u32 = 10_000
Minimum allowed PBKDF2 iteration count.
Sourcepub const MAX_ITERATIONS: u32 = 10_000_000
pub const MAX_ITERATIONS: u32 = 10_000_000
Maximum allowed PBKDF2 iteration count.
Auto Trait Implementations§
impl Freeze for Pbes2KeyWrapper
impl RefUnwindSafe for Pbes2KeyWrapper
impl Send for Pbes2KeyWrapper
impl Sync for Pbes2KeyWrapper
impl Unpin for Pbes2KeyWrapper
impl UnsafeUnpin for Pbes2KeyWrapper
impl UnwindSafe for Pbes2KeyWrapper
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