From 511acef8a7833be4f49f5aec908612d3795e28fb Mon Sep 17 00:00:00 2001 From: David Albert Date: Sun, 20 May 2012 12:01:01 -0400 Subject: [PATCH] Fix decryption example in OpenSSL docs --- ext/openssl/ossl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 7c85070..29fbc0b 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -509,9 +509,9 @@ ossl_debug_set(VALUE self, VALUE val) * * Use the opposite key type do decrypt the document * - * top_secret = key.public_decrypt public_encrypted + * top_secret = key.private_decrypt public_encrypted * - * public_release = key.private_decrypt private_encrypted + * public_release = key.public_decrypt private_encrypted * * == PKCS #5 Password-based Encryption * -- 1.7.10.2