Skip to content

Mark sodium verify functions as hidden #643

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

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

timsmid
Copy link
Contributor

@timsmid timsmid commented Mar 11, 2025

This PR marks sodium_crypto_auth_verify and sodium_crypto_sign_verify_detached as hidden functions. These functions are explicitly meant to verify signatures, so a boolean return value (instead of an error) is expected. Contrast this with functions like sodium_crypto_box_open, where a successful decryption is the expected behavior and a return value of false is indeed an error.

@shish
Copy link
Collaborator

shish commented Mar 12, 2025

Good catch, thanks :)

@shish shish merged commit 8002aaa into thecodingmachine:master Mar 12, 2025
10 checks passed
@timsmid timsmid deleted the sodium-verify branch March 20, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants