Bundled config for functions that are not timing-safe #435
spaze
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
New bundled configuration file
disallowed-non-timing-safe-calls.neonfor code that works with keys, tokens, and other secrets: it disallowshex2bin(),bin2hex(),base64_decode(), andbase64_encode(), because their runtime depends on the processed bytes and can leak information about them, and recommends thesodium_*functions instead, orParagonIE\ConstantTime\*when ext-sodium is not available (#433, #434)Note: comparing secrets, digests, hashes is the other half - use
hash_equals(), not===, which is an operator, so no rule here can catch it.This discussion was created from the release Bundled config for functions that are not timing-safe.
All reactions