Skip to main content

secret_eq

Function secret_eq 

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

True when supplied equals expected, in time that depends only on the length, never on where the first difference is.