[−][src]Function disco::symmetric::verify_integrity
pub fn verify_integrity(
key: &[u8],
input: AuthPlaintext
) -> Result<Vec<u8>, AuthError>
Unwraps an AuthPlaintext
object and checks the MAC. On success,
returns the underlying plaintext. On error, returns AuthError
.
Panics when key.len() < 16
.