Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std.crypto: make the key pair API creation consistent #21955

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jedisct1
Copy link
Contributor

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

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 ziglang#21002
@jedisct1 jedisct1 added breaking Implementing this issue could cause existing code to no longer compile or have different behavior. standard library This issue involves writing Zig code for the standard library. labels Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Implementing this issue could cause existing code to no longer compile or have different behavior. standard library This issue involves writing Zig code for the standard library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant