pub struct EncryptedData {
pub etype: EncryptionType,
pub kvno: Option<u32>,
pub cipher: Vec<u8>,
}Expand description
Encrypted data container (EncryptedData in RFC 4120).
Fields§
§etype: EncryptionTypeEncryption type
kvno: Option<u32>Key version number (optional)
cipher: Vec<u8>Cipher text
Implementations§
Source§impl EncryptedData
impl EncryptedData
Sourcepub fn new(etype: EncryptionType, kvno: Option<u32>, cipher: Vec<u8>) -> Self
pub fn new(etype: EncryptionType, kvno: Option<u32>, cipher: Vec<u8>) -> Self
Create new encrypted data.
Trait Implementations§
Source§impl Clone for EncryptedData
impl Clone for EncryptedData
Source§fn clone(&self) -> EncryptedData
fn clone(&self) -> EncryptedData
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncryptedData
impl Debug for EncryptedData
Source§impl PartialEq for EncryptedData
impl PartialEq for EncryptedData
impl Eq for EncryptedData
impl StructuralPartialEq for EncryptedData
Auto Trait Implementations§
impl Freeze for EncryptedData
impl RefUnwindSafe for EncryptedData
impl Send for EncryptedData
impl Sync for EncryptedData
impl Unpin for EncryptedData
impl UnwindSafe for EncryptedData
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)