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

RSA: use different types for private and public keys #41

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

xavierleroy
Copy link
Owner

This makes the API clearer and more robust against programming errors. It does break the few existing uses of Cryptokit.RSA, however.

I cannot remember the reason why it was not done this way initially. Perhaps because at the time OCaml did not support type-based disambiguation of record labels, making it nearly impossible to have the same n label in two record types.

This makes the API clearer and more robust against programming errors.
It does break all existing uses of Cryptokit.RSA, however.
@xavierleroy xavierleroy mentioned this pull request Oct 27, 2024
@xavierleroy xavierleroy merged commit 46e22b8 into master Oct 31, 2024
3 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.

1 participant