Project

General

Profile

Actions

Bug #6475

closed

Fix decryption example in OpenSSL docs

Added by davidbalbert (David Albert) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
-
ruby -v:
1.9.3p194
Backport:
[ruby-core:45154]

Description

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.


Files

Updated by MartinBosslet (Martin Bosslet) almost 12 years ago

  • Status changed from Open to Assigned
  • Assignee set to MartinBosslet (Martin Bosslet)

Updated by davidbalbert (David Albert) almost 12 years ago

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.

Updated by MartinBosslet (Martin Bosslet) almost 12 years ago

davidbalbert (David Albert) wrote:

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!

-Martin

Actions #5

Updated by Anonymous almost 12 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

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]

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0