-
Notifications
You must be signed in to change notification settings - Fork 55
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
Erlang 24 Support #104
Erlang 24 Support #104
Conversation
I think I just found all the answers in section 6.5 of the crypto User's Guide. https://erlang.org/doc/apps/crypto/new_api.html#retired-cipher-names I will push a change shortly |
I figured everything out. I just messed up some calls to |
Related to #102 |
I see a similar PR (#103) and they look still active on PR. |
@wingyplus I see that, but I don't agree with the way that they are coupling the cipher modules to the Of course, that's my design opinion and I don't care much either way. I'm just trying to get something out there that works so I can use Cloak with erlang 24 |
Just want to thank you all for working on this - this is my only blocker for Elixir 1.12 so I'm so appreciative of you putting time into this! |
If you want to go elixir 1.12. I recommended to go with otp 23 which is not breaking this libraray. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I'll make a few tweaks before releasing it, but nothing that will block this PR.
- Test against OTP 23 and 24 on CI - Add a few docs and tweaks to changes from PR #104 - Bump version to 1.1.0
Sorry all for 'butting in', but someone pointed me at this PR in response to a question I had about similar changes in my own project; the forum post where I asked the question: Basically, I couldn't seem to use the I also noticed that you seem to have made a similar change, i.e. using the Do any of you have any insight as to why that's required? I'm just curious! And feel free to ignore me :) (This is a nice library BTW!) |
Hi, this PR is not 100% done, but I believe it's a step in the right direction.
I have created a Cloak.Crypto module to intercept the calls to crypto and change based on
System.otp_release/0
I have created a Cloak.Crypto.Interface behavior to ensure the functions across erlang versions.
There are a couple of things still broken mainly because I am a little out of my depth in the knowledge of ciphers in general.
First, the only version this seems to partially work on is erlang 24 and up. I don't know why but when I set the erlang version to anything less than 24 (i.e. 22 & 23), it gives me an 'Unknown Cipher' error even though the API should be the same.
Second, I am having trouble getting the AES.GCM functions to encrypt properly on erlang 24. I am missing something with the contract that is causing the decrypt to not work.
@danielberkompas if you could give me a push in the right direction it would be greatly appreciated.