pub struct Cipher {
pub cipher_iv: String,
pub kdf_salt: String,
pub kdf_iterations: u32,
pub kdf_keysize: u32,
pub cipher_tag_size: u32,
pub cipher_algo: String,
pub cipher_mode: String,
pub compression_type: CompressionType,
}
Expand description
Fields§
§cipher_iv: String
IV (nonce), in base64
kdf_salt: String
pbkdf2 salt, in base64
kdf_iterations: u32
pbkdf2 iterations
kdf_keysize: u32
pbkdf2 generated key size, always 256 (bits)
cipher_tag_size: u32
tag size in GCM, always 128 (bits)
cipher_algo: String
encryption algorithm, always "aes"
cipher_mode: String
aes encryption mode, always "gcm"
compression_type: CompressionType
compression type of encrypted data. either “zlib” or “none”
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cipher
impl<'de> Deserialize<'de> for Cipher
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 Cipher
impl RefUnwindSafe for Cipher
impl Send for Cipher
impl Sync for Cipher
impl Unpin for Cipher
impl UnwindSafe for Cipher
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