pub trait Client<'a> {
    fn mod_exponent_done(
        &'a self,
        status: Result<bool, ErrorCode>,
        message: &'static mut [u8],
        modulus: &'static [u8],
        exponent: &'static [u8],
        result: &'static mut [u8]
    ); }
Expand description

Upcall from the RsaCryptoBase trait.

Required Methods

This callback is called when the mod_exponent operation is complete.

The possible ErrorCodes are:

  • BUSY: An operation is already on going
  • INVAL: An invalid parameter was supplied
  • SIZE: The size of the result buffer is invalid
  • NOSUPPORT: The operation is not supported

Implementors