Std.Crypto.bytesMatch
1 declaration
fn
bytesMatch: &Bytes -> &Bytes -> BoolThis is a callable function.
What it does
Whether two byte sequences are equal, in time that depends only on their
lengths.
For a tag, a token, or a digest received from outside and compared with one
computed here. A comparison that returned at the first differing byte would
tell a guesser how many leading bytes were right.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
