pub struct CiphertextWithTag { /* private fields */ }Expand description
Authenticated ciphertext container storing ciphertext || tag.
Implementations§
Source§impl CiphertextWithTag
impl CiphertextWithTag
Sourcepub fn from_vec(input: Vec<u8>) -> Result<CiphertextWithTag, CryptoError>
pub fn from_vec(input: Vec<u8>) -> Result<CiphertextWithTag, CryptoError>
Wraps a ciphertext || tag byte vector, returning an error unless it is
at least AES_256_GCM_TAG_LENGTH bytes (enough to hold the tag).
Trait Implementations§
Source§impl Clone for CiphertextWithTag
impl Clone for CiphertextWithTag
Source§fn clone(&self) -> CiphertextWithTag
fn clone(&self) -> CiphertextWithTag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CiphertextWithTag
impl Debug for CiphertextWithTag
impl Eq for CiphertextWithTag
Source§impl PartialEq for CiphertextWithTag
impl PartialEq for CiphertextWithTag
impl StructuralPartialEq for CiphertextWithTag
Auto Trait Implementations§
impl Freeze for CiphertextWithTag
impl RefUnwindSafe for CiphertextWithTag
impl Send for CiphertextWithTag
impl Sync for CiphertextWithTag
impl Unpin for CiphertextWithTag
impl UnsafeUnpin for CiphertextWithTag
impl UnwindSafe for CiphertextWithTag
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