From: "MartinBosslet (Martin Bosslet)" Date: 2012-05-21T07:22:16+09:00 Subject: [ruby-core:45159] [ruby-trunk - Bug #6475][Assigned] Fix decryption example in OpenSSL docs Issue #6475 has been updated by MartinBosslet (Martin Bosslet). Status changed from Open to Assigned Assignee set to MartinBosslet (Martin Bosslet) ---------------------------------------- Bug #6475: Fix decryption example in OpenSSL docs https://bugs.ruby-lang.org/issues/6475#change-26732 Author: davidbalbert (David Albert) Status: Assigned Priority: Normal Assignee: MartinBosslet (Martin Bosslet) Category: DOC Target version: ruby -v: 1.9.3p194 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. -- http://bugs.ruby-lang.org/