mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
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! |
||
|---|---|---|
| .. | ||
| p256 | ||
| p384 | ||
| secp256k1 | ||
| tests | ||
| common.zig | ||
| p256.zig | ||
| p384.zig | ||
| secp256k1.zig | ||