Skip to main content

constant_time_eq

Function constant_time_eq 

Source
pub fn constant_time_eq(a: &str, b: &str) -> bool
Expand description

Whether a equals b, in time that depends on their lengths alone: for a secret a peer presents, such as a thumbprint or a bearer token.