From: "davidbalbert (David Albert)" Date: 2012-05-21T02:16:58+09:00 Subject: [ruby-core:45154] [ruby-trunk - Bug #6475][Open] Fix decryption example in OpenSSL docs Issue #6475 has been reported by davidbalbert (David Albert). ---------------------------------------- Bug #6475: Fix decryption example in OpenSSL docs https://bugs.ruby-lang.org/issues/6475 Author: davidbalbert (David Albert) Status: Open Priority: Normal Assignee: 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/