-
Notifications
You must be signed in to change notification settings - Fork 348
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
Support different OAEP modes using OpenSSL EVP interface #583
base: develop
Are you sure you want to change the base?
Conversation
EVP interface allows us to use different OAEP padding modes.
I've tested decryption across all of them. Could someone help me test encryption? |
According to the spec, it's keylen/8 - 2 - 2*hashLen
Implement all OAEP tests and they all pass now. The only workaround is not to use key size of 1024 for OAEP-SHA512. |
Thanks for this contribution; once you think it is ready for review, can you create a pull request so we can review the code? |
Had a quick look at the code, looks good at first glance. To bump the OpenSSL version, you should also update |
From what I see, EVP is introduced with version 1.0.2 and we require it for the OAEP methods.
Done, thanks! |
Hello, Just came across and I am happy that there is already a solution for supporting different hash algorithm other than SHA1 . |
Please rebase on develop and mark as ready when ready. |
Using EVP interface, we can support different OAEP padding modes, such as OAEP-SHA224, OAEP-SHA256, OAEP-SHA384, OAEP-SHA512. This is my attempt at plumbing the support in - let me know if I'm doing it right. Fixes #474.