Skip to main content

verify

Function verify 

Source
pub fn verify(expected: &[u8], actual: &[u8]) -> bool
Expand description

Constant-time byte-slice comparison returning a plain bool.

Use this for MAC and AEAD tag verification instead of ==.