pub struct FileKey {
pub key: u128,
pub iv: u128,
pub meta_mac: u64,
}
Expand description
The encryption key for a file.
This includes:
- The 128 bit AES key
- The IV
- The meta mac
Fields§
§key: u128
The 128 bit AES key
iv: u128
The IV
meta_mac: u64
The meta mac
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileKey
impl<'de> Deserialize<'de> for FileKey
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
Source§impl From<FileKey> for FileOrFolderKey
impl From<FileKey> for FileOrFolderKey
impl Eq for FileKey
impl StructuralPartialEq for FileKey
Auto Trait Implementations§
impl Freeze for FileKey
impl RefUnwindSafe for FileKey
impl Send for FileKey
impl Sync for FileKey
impl Unpin for FileKey
impl UnwindSafe for FileKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.