[][src]Trait tink_testing_server::proto::deterministic_aead_server::DeterministicAead

pub trait DeterministicAead: Send + Sync + 'static {
#[must_use]    fn encrypt_deterministically<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeterministicAeadEncryptRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<DeterministicAeadEncryptResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn decrypt_deterministically<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeterministicAeadDecryptRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<DeterministicAeadDecryptResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Generated trait containing gRPC methods that should be implemented for use with DeterministicAeadServer.

Required methods

#[must_use]fn encrypt_deterministically<'life0, 'async_trait>(
    &'life0 self,
    request: Request<DeterministicAeadEncryptRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<DeterministicAeadEncryptResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Encrypts a plaintext with the provided keyset

#[must_use]fn decrypt_deterministically<'life0, 'async_trait>(
    &'life0 self,
    request: Request<DeterministicAeadDecryptRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<DeterministicAeadDecryptResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Decrypts a ciphertext with the provided keyset

Loading content...

Implementors

impl DeterministicAead for DaeadServerImpl[src]

Loading content...