diff options
| author | Frank Denis <github@pureftpd.org> | 2021-04-24 21:54:42 +0200 |
|---|---|---|
| committer | Frank Denis <github@pureftpd.org> | 2021-04-25 17:07:11 +0200 |
| commit | 0747591c3d7469cf3ac5c1a6a80b6058386e337a (patch) | |
| tree | 9efa1127126ffca59aa70fad5fa2529628189580 /src | |
| parent | 37b05742ff1544bccf7c8ae9b12c6707a5a54df2 (diff) | |
| download | zig-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
