Compares a provided token against the expected one in constant time, so a mismatch reveals nothing through timing. Unequal lengths fail fast (and are not themselves secret).
The daemon's token.
The token a surface presented at attach.
True when the tokens match exactly.
Compares a provided token against the expected one in constant time, so a mismatch reveals nothing through timing. Unequal lengths fail fast (and are not themselves secret).