Struct dco3_crypto::FileKey
source · pub struct FileKey {
pub key: String,
pub iv: String,
pub version: FileKeyVersion,
pub tag: Option<String>,
}
Expand description
Represents the encrypted file key Contains key, iv and tag used for decryption key, iv, and tag are base64 encoded bytes The key is additonally encrypted with public keypair encryption
Fields§
§key: String
§iv: String
§version: FileKeyVersion
§tag: Option<String>
Implementations§
source§impl FileKey
impl FileKey
pub fn new_from_plain_key( plain_file_key: PlainFileKey, enc_key: &str, version: FileKeyVersion ) -> Self
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
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