pub struct DirKey(/* private fields */);Expand description
随机生成的目录密钥。
独立类型而不是裸 SecretKey:类型系统会阻止把它和 KEK、FEK 混用。
三者都是 32 字节,混用不会编译报错,但会产出解不开的数据。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for DirKey
impl Freeze for DirKey
impl RefUnwindSafe for DirKey
impl Send for DirKey
impl Sync for DirKey
impl Unpin for DirKey
impl UnsafeUnpin for DirKey
impl UnwindSafe for DirKey
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