diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-19 16:10:58 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-19 16:10:58 +0000 |
commit | 2f1ce283586d964b246bc2d3422a52a881a12b89 (patch) | |
tree | ef5e0b9de577417b09c4ddd73ad7543857e2c2f4 | |
parent | eb95f194bafd3707d947dbeafbb9c4de03d42d29 (diff) | |
download | ruby-2f1ce283586d964b246bc2d3422a52a881a12b89.tar.gz |
* ext/openssl/ossl.c: use encryptor instead of encrypter in doc.
contributed from @vipulnsward. [fix GH-663]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/openssl/ossl.c | 20 |
2 files changed, 15 insertions, 10 deletions
@@ -1,3 +1,8 @@ +Sun Jul 20 01:06:06 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> + + * ext/openssl/ossl.c: use encryptor instead of encrypter in doc. + contributed from @vipulnsward. [fix GH-663] + Sun Jul 20 00:32:44 2014 Nobuyoshi Nakada <nobu@ruby-lang.org> * io.c (rb_io_initialize): [DOC] fix rdoc of append mode. it does diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 3f09ce7d6f..8b25c02990 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -748,27 +748,27 @@ static void Init_ossl_locks(void) * * First set up the cipher for encryption * - * encrypter = OpenSSL::Cipher.new 'AES-128-CBC' - * encrypter.encrypt - * encrypter.pkcs5_keyivgen pass_phrase, salt + * encryptor = OpenSSL::Cipher.new 'AES-128-CBC' + * encryptor.encrypt + * encryptor.pkcs5_keyivgen pass_phrase, salt * * Then pass the data you want to encrypt through * - * encrypted = encrypter.update 'top secret document' - * encrypted << encrypter.final + * encrypted = encryptor.update 'top secret document' + * encrypted << encryptor.final * * === Decryption * * Use a new Cipher instance set up for decryption * - * decrypter = OpenSSL::Cipher.new 'AES-128-CBC' - * decrypter.decrypt - * decrypter.pkcs5_keyivgen pass_phrase, salt + * decryptor = OpenSSL::Cipher.new 'AES-128-CBC' + * decryptor.decrypt + * decryptor.pkcs5_keyivgen pass_phrase, salt * * Then pass the data you want to decrypt through * - * plain = decrypter.update encrypted - * plain << decrypter.final + * plain = decryptor.update encrypted + * plain << decryptor.final * * == X509 Certificates * |