refactor: remove unused constant_time_eq and correct the token doc
constant_time_eq (and the `subtle` dependency) was never wired into any comparison — the module doc wrongly claimed token comparison used it, but lookup is an indexed DB equality on the 256-bit SHA-256 hash, so there's no in-process secret compare to time-attack. Delete the dead fn, its test, and the unused `subtle` dep; rewrite the doc. No behaviour change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1
backend/Cargo.lock
generated
1
backend/Cargo.lock
generated
@@ -1587,7 +1587,6 @@ dependencies = [
|
||||
"serde_json",
|
||||
"sha2",
|
||||
"sqlx",
|
||||
"subtle",
|
||||
"sysinfo",
|
||||
"tempfile",
|
||||
"thiserror 1.0.69",
|
||||
|
||||
Reference in New Issue
Block a user