[][src]Trait tink_testing_server::proto::aead_server::Aead

pub trait Aead: Send + Sync + 'static {
#[must_use]    fn encrypt<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AeadEncryptRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<AeadEncryptResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn decrypt<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AeadDecryptRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<AeadDecryptResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

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

Required methods

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

Encrypts a plaintext with the provided keyset

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

Decrypts a ciphertext with the provided keyset

Loading content...

Implementors

impl Aead for AeadServerImpl[src]

Loading content...