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

Required Methods

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