pub struct KmsAeadRingEnvelopeEncryption<P>{ /* private fields */ }
Implementations§
Source§impl<P> KmsAeadRingEnvelopeEncryption<P>
impl<P> KmsAeadRingEnvelopeEncryption<P>
pub async fn new(provider: P) -> KmsAeadResult<Self>
pub async fn with_algorithm( provider: P, algo: &'static Algorithm, ) -> KmsAeadResult<Self>
pub async fn with_options( provider: P, options: KmsAeadRingEnvelopeEncryptionOptions, ) -> KmsAeadResult<Self>
pub async fn with_algorithm_options( provider: P, algo: &'static Algorithm, options: KmsAeadRingEnvelopeEncryptionOptions, ) -> KmsAeadResult<Self>
Trait Implementations§
Source§impl<Aad, P> KmsAeadEnvelopeEncryption<Aad> for KmsAeadRingEnvelopeEncryption<P>
impl<Aad, P> KmsAeadEnvelopeEncryption<Aad> for KmsAeadRingEnvelopeEncryption<P>
Source§fn encrypt_value<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
aad: &'life1 Aad,
plain_text: &'life2 SecretValue,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<CipherTextWithEncryptedKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn encrypt_value<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
aad: &'life1 Aad,
plain_text: &'life2 SecretValue,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<CipherTextWithEncryptedKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Encrypts the plain text using a new data encryption key.
Source§fn decrypt_value<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
aad: &'life1 Aad,
cipher_text: &'life2 CipherTextWithEncryptedKey,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<SecretValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn decrypt_value<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
aad: &'life1 Aad,
cipher_text: &'life2 CipherTextWithEncryptedKey,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<SecretValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Decrypts the cipher text using the cipher text with corresponding encrypted data encryption key.
Source§fn encrypt_value_with_dek<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
aad: &'life1 Aad,
plain_text: &'life2 SecretValue,
dek: &'life3 DataEncryptionKey,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<CipherText>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn encrypt_value_with_dek<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
aad: &'life1 Aad,
plain_text: &'life2 SecretValue,
dek: &'life3 DataEncryptionKey,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<CipherText>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Encrypts the plain text using the provided data encryption key.
Source§fn encrypt_value_with_encrypted_dek<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
aad: &'life1 Aad,
plain_text: &'life2 SecretValue,
dek: &'life3 EncryptedDataEncryptionKey,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<CipherText>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn encrypt_value_with_encrypted_dek<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
aad: &'life1 Aad,
plain_text: &'life2 SecretValue,
dek: &'life3 EncryptedDataEncryptionKey,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<CipherText>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Encrypts the plain text using the provided encrypted data encryption key.
Source§fn decrypt_value_with_dek<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
aad: &'life1 Aad,
cipher_text: &'life2 CipherText,
data_encryption_key: &'life3 DataEncryptionKey,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<SecretValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn decrypt_value_with_dek<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
aad: &'life1 Aad,
cipher_text: &'life2 CipherText,
data_encryption_key: &'life3 DataEncryptionKey,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<SecretValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Decrypts the cipher text using the provided encrypted data encryption key.
Source§fn decrypt_value_with_encrypted_dek<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
aad: &'life1 Aad,
cipher_text: &'life2 CipherText,
encrypted_data_encryption_key: &'life3 EncryptedDataEncryptionKey,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<SecretValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn decrypt_value_with_encrypted_dek<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
aad: &'life1 Aad,
cipher_text: &'life2 CipherText,
encrypted_data_encryption_key: &'life3 EncryptedDataEncryptionKey,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<SecretValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Decrypts the cipher text using the provided encrypted data encryption key.
Source§fn generate_new_dek<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<(DataEncryptionKey, EncryptedDataEncryptionKey)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn generate_new_dek<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = KmsAeadResult<(DataEncryptionKey, EncryptedDataEncryptionKey)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Generates a new data encryption key and encrypts it using the KMS provider.
Auto Trait Implementations§
impl<P> Freeze for KmsAeadRingEnvelopeEncryption<P>where
P: Freeze,
impl<P> RefUnwindSafe for KmsAeadRingEnvelopeEncryption<P>where
P: RefUnwindSafe,
impl<P> Send for KmsAeadRingEnvelopeEncryption<P>
impl<P> Sync for KmsAeadRingEnvelopeEncryption<P>
impl<P> Unpin for KmsAeadRingEnvelopeEncryption<P>where
P: Unpin,
impl<P> UnwindSafe for KmsAeadRingEnvelopeEncryption<P>where
P: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Creates a shared type from an unshared type.