Skip to main content

token_matches

Function token_matches 

Source
fn token_matches(actual: &str, expected: &[u8; 32]) -> bool
Expand description

Compares fixed-size digests without secret-length or matching-prefix shortcuts.

Hashing and request parsing still depend on the supplied token length. See https://docs.rs/subtle/latest/subtle/trait.ConstantTimeEq.html.