The code example in the "Decryption" section of the OpenSSL docs shows ciphertext being decrypted with the same key used to encrypt it. Instead, decryption should be done with the other key in the pair. I've verified that the sample code in trunk does not work, and the sample code in the attached patch does work.
Is there anything I can do to speed up this process a little bit? I'm trying to learn how to contribute to Ruby, and I'd like to know if there's something I should be doing to make it easier for this patch to get accepted.
Is there anything I can do to speed up this process a little bit? I'm trying to learn how to contribute to Ruby, and I'd like to know if there's something I should be doing to make it easier for this patch to get accepted.
No worries, I will look into this soon :) It's a small fix and I might have committed it right away, but I was trying to look to enhance the example a bit, that's why it took some time... Your patch or its format had nothing to do with it, thanks for your contribution!
This issue was solved with changeset r35996.
David, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
ext/openssl/ossl.c: Fix error in example. Patch by David Albert.
Add/extend existing documentation. Examples now also cover RSA
signatures and PBKDF2.
[ruby-core: 45154][ruby-trunk - Bug #6475]