[−][src]Function monocypher::utils::verify
pub fn verify(a: &[u8], b: &[u8]) -> bool
Constant time comparison of two equal sized buffers.
The lengths can be 16, 32 or 64. Everything else will return false. If the length or the buffer content differ false will be returned.
Example
use monocypher::utils::verify; if verify("one".as_bytes(), "one".as_bytes()) { //continue } else { //abort }