Struct tink_aead::KmsEnvelopeAead
source · [−]pub struct KmsEnvelopeAead { /* private fields */ }
Expand description
KmsEnvelopeAead
represents an instance of Envelope AEAD.
Implementations
sourceimpl KmsEnvelopeAead
impl KmsEnvelopeAead
pub fn new(kt: KeyTemplate, remote: Box<dyn Aead>) -> KmsEnvelopeAead
Trait Implementations
sourceimpl Aead for KmsEnvelopeAead
impl Aead for KmsEnvelopeAead
sourcefn encrypt(&self, pt: &[u8], aad: &[u8]) -> Result<Vec<u8>, TinkError>
fn encrypt(&self, pt: &[u8], aad: &[u8]) -> Result<Vec<u8>, TinkError>
Encrypt plaintext with additional_data
as additional
authenticated data. The resulting ciphertext allows for checking
authenticity and integrity of additional data additional_data
,
but there are no guarantees wrt. secrecy of that data. Read more
sourceimpl Clone for KmsEnvelopeAead
impl Clone for KmsEnvelopeAead
Manual implementation of Clone
relying on the trait bounds for
primitives to provide .box_clone()
methods.
Auto Trait Implementations
impl !RefUnwindSafe for KmsEnvelopeAead
impl !Send for KmsEnvelopeAead
impl !Sync for KmsEnvelopeAead
impl Unpin for KmsEnvelopeAead
impl !UnwindSafe for KmsEnvelopeAead
Blanket Implementations
sourceimpl<T> AeadBoxClone for T where
T: 'static + Aead + Clone,
impl<T> AeadBoxClone for T where
T: 'static + Aead + Clone,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more