pub struct DerivedKeys {
pub kek: [u8; 32],
pub auth_key: [u8; 32],
}Expand description
Keys derived from master key using HKDF
Fields§
§kek: [u8; 32]Key Encryption Key - encrypts per-file DEKs
auth_key: [u8; 32]Authentication key - for signing metadata
Implementations§
Source§impl DerivedKeys
impl DerivedKeys
Sourcepub fn derive_from_master(master: &MasterKey) -> Self
pub fn derive_from_master(master: &MasterKey) -> Self
Derive KEK and auth key from master key using BLAKE3 KDF
Trait Implementations§
Source§impl Clone for DerivedKeys
impl Clone for DerivedKeys
Source§fn clone(&self) -> DerivedKeys
fn clone(&self) -> DerivedKeys
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Drop for DerivedKeys
impl Drop for DerivedKeys
Auto Trait Implementations§
impl Freeze for DerivedKeys
impl RefUnwindSafe for DerivedKeys
impl Send for DerivedKeys
impl Sync for DerivedKeys
impl Unpin for DerivedKeys
impl UnwindSafe for DerivedKeys
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