INNER CODE UNIT · Rust
verify_mac
matrix-org/vodozemac · src/cipher/mod.rs:244
pub fn verify_mac(&self, _: &[u8], _: &Mac) -> Result<(), MacError> {
Ok(())
}
/// A [`Cipher::verify_truncated_mac()`] method that always succeeds.
///
/// **Warning**: If you're seeing this comment and are not fuzzing the
/// library, the library is operating with an insecure build-time
/// configuration.
///
/// This mode is intended only for fuzzing vodozemac, as MAC verification
/// typically filters out many inputs early in the process.
#[cfg(fuzzing)]
pub fn verify_truncated_mac(&self, _: &[u8], _: &[u8]) -> Result<(), MacError> {
Ok(())
}
/// Encrypts the given plaintext using this [`Cipher`] and returns the