-
Notifications
You must be signed in to change notification settings - Fork 7
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
Move to cryptonite? Deprecate in favor of cryptonite? #12
Comments
I think the better plan will be to simply remove the dependency on crypto-api and make the various libraries self-sufficient, thus providing two unrelated crypto libraries for Haskell. |
The issue with depending on cryptonite, as I've discussed with Vincent in the past, is it strictly less powerful compared to crypto-api's Other past complaints, such as non-determinism, seem to remain partially. Some issues are resolved but I do see the WRT RSA in particular, it might be beneficial to simply accept a parameter that can provide a random value, be it by building over a EDIT: I see |
How about just replacing the (Unless there’s another way to import a public key from an external resource.) |
'''cryptonite''' already includes an RSA implementation, so depending on it for the types seems weird. That being said, I'm currently in the process of experimenting with translating a bunch of my existing code to cryptonite. If it turns out that it all goes smoothly, and I don't discover anything I disagree with too much or a missing piece I need, I'm actually leaning towards deprecating this package in favor of '''cryptonite'''. |
It does seem weird. I missed the existing implementation as the Thanks! |
In light of http://tab.snarc.org/posts/haskell/2015-06-02-announcing_cryptonite.html the "crypto-pubkey-types" dependency is not long for the world, so this package should probably move over to the newer cryptonite. That also probably means shucking crypto-api's Crypto.Random in favor of cryptonite API, though I don't believe it's essential.
The core modules (src/Codec/Crypto/RSA/Exceptions.hs and src/Codec/Crypto/RSA/Pure.hs) seem easily enough moved, but the test harness (Test.hs) is a little more involved.
That said, cryptonite packages its own RSA implementation, so perhaps anything relevant from this package should go upstream there and this should be deprecated?
Thanks!
The text was updated successfully, but these errors were encountered: