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

encrypt/decrypt/sign/verifyMessage: rename context option into signatureContext #205

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

larabr
Copy link
Collaborator

@larabr larabr commented Dec 9, 2024

Also, throw if context input provided without signing/verification keys.

This is to help clarify usage, and avoid confusing the signature context with one enforced through e.g. the AEAD associated data.

…igning/verification keys

Sanity check to catch mistakes in case library users wrongly consider the `context` to be
applied thorugh e.g. the AEAD associated data instead of the signature.
@larabr larabr merged commit f1d6e24 into main Dec 16, 2024
2 checks passed
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