zig/lib/std/crypto/25519
Frank Denis 8a00bd4ce6
std.crypto: make the key pair API creation consistent (#21955)
Our key pair creation API was ugly and inconsistent between ecdsa
keys and other keys.

The same `generate()` function can now be used to generate key pairs,
and that function cannot fail.

For deterministic keys, a `generateDeterministic()` function is
available for all key types.

Fix comments and compilation of the benchmark by the way.

Fixes #21002
2024-11-19 18:05:09 +01:00
..
curve25519.zig crypto.edwards25519: add the ability to check for group membership (#20175) 2024-06-04 10:11:05 +02:00
ed25519.zig std.crypto: make the key pair API creation consistent (#21955) 2024-11-19 18:05:09 +01:00
edwards25519.zig crypto.edwards25519: add the ability to check for group membership (#20175) 2024-06-04 10:11:05 +02:00
field.zig std: update for new CallingConvention 2024-10-19 19:15:23 +01:00
ristretto255.zig x86_64: pass more tests 2023-10-25 04:28:30 -04:00
scalar.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
x25519.zig std.crypto: make the key pair API creation consistent (#21955) 2024-11-19 18:05:09 +01:00