aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrank Denis <github@pureftpd.org>2021-04-24 21:54:42 +0200
committerFrank Denis <github@pureftpd.org>2021-04-25 17:07:11 +0200
commit0747591c3d7469cf3ac5c1a6a80b6058386e337a (patch)
tree9efa1127126ffca59aa70fad5fa2529628189580 /src
parent37b05742ff1544bccf7c8ae9b12c6707a5a54df2 (diff)
downloadzig-0747591c3d7469cf3ac5c1a6a80b6058386e337a.tar.gz
zig-0747591c3d7469cf3ac5c1a6a80b6058386e337a.zip
Add std.crypto.utils.timingSafeCompare
A little function to complement the existing crypto.utils.timingSafeEql function with a way to compare large numbers serialized as arrays. This is useful to compare nonces and to check that group elements are in canonical form. Absence of side channels remains a best effort, reusing the common pattern we use elsewhere.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions