Trait kernel::hil::public_key_crypto::signature::ClientVerify

source ·
pub trait ClientVerify<const HL: usize, const SL: usize> {
    // Required method
    fn verification_done(
        &self,
        result: Result<bool, ErrorCode>,
        hash: &'static mut [u8; HL],
        signature: &'static mut [u8; SL]
    );
}
Expand description

This trait provides callbacks for when the verification has completed.

Required Methods§

source

fn verification_done( &self, result: Result<bool, ErrorCode>, hash: &'static mut [u8; HL], signature: &'static mut [u8; SL] )

Called when the verification is complete.

If the verification operation encounters an error, result will be a Result::Err() specifying the ErrorCode. Otherwise, result will be a Result::Ok set to Ok(true) if the signature was correctly verified and Ok(false) otherwise.

If verification operation did encounter errors result will be Err() with an appropriate ErrorCode. Valid ErrorCodes include:

  • CANCEL: the operation was cancelled.
  • FAIL: an internal failure.

Implementors§

source§

impl<'a, S: SignatureVerify<'static, HL, SL>, H: DigestDataHash<'a, HL>, const HL: usize, const SL: usize> ClientVerify<HL, SL> for AppCheckerSignature<'a, S, H, HL, SL>