Trait kernel::hil::symmetric_encryption::GCMClient

source ·
pub trait GCMClient {
    // Required method
    fn crypt_done(
        &self,
        buf: &'static mut [u8],
        res: Result<(), ErrorCode>,
        tag_is_valid: bool,
    );
}

Required Methods§

source

fn crypt_done( &self, buf: &'static mut [u8], res: Result<(), ErrorCode>, tag_is_valid: bool, )

res is Ok(()) if the encryption/decryption process succeeded. This does not mean that the message has been verified in the case of decryption. If we are encrypting: tag_is_valid is true iff res is Ok(()). If we are decrypting: tag_is_valid is true iff res is Ok(()) and the message authentication tag is valid.

Implementors§