aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorFrank Denis <124872+jedisct1@users.noreply.github.com>2025-03-02 11:27:04 +0100
committerGitHub <noreply@github.com>2025-03-02 11:27:04 +0100
commitd8d2aa9af438bffa643aabb180011f275afd87d3 (patch)
treec7ff17b73b194820a1df462bc2055a2b5bfef729 /src/Compilation.zig
parenta6525c1762733613c13f61ae5cb1fdd1467f7378 (diff)
downloadzig-d8d2aa9af438bffa643aabb180011f275afd87d3.tar.gz
zig-d8d2aa9af438bffa643aabb180011f275afd87d3.zip
crypto.pcurves.common: generalize invert() (#23039)
The Bernstein-Yang inversion code was meant to be used only with the fields we currently use for the NIST curves. But people copied that code and were confused that it didn't work as expected with other field sizes. It doesn't cost anything to make it work with other field sizes, that may support in the future. So let's do it. This also reduces the diff with the example zig code in fiat crypto. Suggested by @Rexicon226 -- Thank you!
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions