[][src]Trait tink_testing_server::proto::mac_server::Mac

pub trait Mac: Send + Sync + 'static {
#[must_use]    fn compute_mac<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ComputeMacRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ComputeMacResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn verify_mac<'life0, 'async_trait>(
        &'life0 self,
        request: Request<VerifyMacRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<VerifyMacResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

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

Required methods

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

Computes a MAC for given data

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

Verifies the validity of the MAC value, no error means success

Loading content...

Implementors

impl Mac for MacServerImpl[src]

Loading content...