pub struct EncParameters {
pub iv: Vec<u8>,
pub tag: Vec<u8>,
pub params: HashMap<String, Vec<u8>>,
}Expand description
Symmetric encryption parameters
Required for all algorithms as they all use symmetric encryption for the actual data encryption.
Fields§
§iv: Vec<u8>Initialization vector / nonce
tag: Vec<u8>Authentication tag (for AEAD ciphers like AES-GCM)
params: HashMap<String, Vec<u8>>Algorithm-specific parameters
Trait Implementations§
Source§impl Clone for EncParameters
impl Clone for EncParameters
Source§fn clone(&self) -> EncParameters
fn clone(&self) -> EncParameters
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 Debug for EncParameters
impl Debug for EncParameters
Source§impl<'de> Deserialize<'de> for EncParameters
impl<'de> Deserialize<'de> for EncParameters
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 PartialEq for EncParameters
impl PartialEq for EncParameters
Source§impl Serialize for EncParameters
impl Serialize for EncParameters
impl Eq for EncParameters
impl StructuralPartialEq for EncParameters
Auto Trait Implementations§
impl Freeze for EncParameters
impl RefUnwindSafe for EncParameters
impl Send for EncParameters
impl Sync for EncParameters
impl Unpin for EncParameters
impl UnwindSafe for EncParameters
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