ruby-changes:34796
From: hsbt <ko1@a...>
Date: Sun, 20 Jul 2014 01:11:09 +0900 (JST)
Subject: [ruby-changes:34796] hsbt:r46879 (trunk): * ext/openssl/ossl.c: use encryptor instead of encrypter in doc.
hsbt 2014-07-20 01:10:58 +0900 (Sun, 20 Jul 2014) New Revision: 46879 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46879 Log: * ext/openssl/ossl.c: use encryptor instead of encrypter in doc. contributed from @vipulnsward. [fix GH-663] Modified files: trunk/ChangeLog trunk/ext/openssl/ossl.c Index: ChangeLog =================================================================== --- ChangeLog (revision 46878) +++ ChangeLog (revision 46879) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Jul 20 01:06:06 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * 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@r...> * io.c (rb_io_initialize): [DOC] fix rdoc of append mode. it does Index: ext/openssl/ossl.c =================================================================== --- ext/openssl/ossl.c (revision 46878) +++ ext/openssl/ossl.c (revision 46879) @@ -748,27 +748,27 @@ static void Init_ossl_locks(void) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl.c#L748 * * 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 * -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/