[#28616] win32ole/test_folderitem2_invokeverb.rb:6:in `require': no such file to load -- win32ole (LoadError) — Tanaka Akira <akr@...17n.org>
2006-05-01 から、Ruby 1.9 が i686-linux な環境の test-all で
7 messages
2006/05/06
[#28617] Re: win32ole/test_folderitem2_invokeverb.rb:6:in `require': no such file to load -- win32ole (LoadError)
— Tadashi Saito <shiba@...2.accsnet.ne.jp>
2006/05/06
こんばんは。斎藤と申します。
[#28618] Re: win32ole/test_folderitem2_invokeverb.rb:6:in `require': no such file to load -- win32ole (LoadError)
— Masaki Suketa <masaki.suketa@...>
2006/05/06
助田です。
[#28623] Re: win32ole/test_folderitem2_invokeverb.rb:6:in `require': no such file to load -- win32ole (LoadError)
— Tadashi Saito <shiba@...2.accsnet.ne.jp>
2006/05/07
こんばんは。斎藤と申します。
[#28624] Re: win32ole/test_folderitem2_invokeverb.rb:6:in `require': no such file to load -- win32ole (LoadError)
— "Hiroyuki Iwatsuki" <don@...>
2006/05/08
岩月と申します。
[#28619] strtod in 1.8.4 stable snapshot — Shin-ichiro HARA <sinara@...>
原です。
7 messages
2006/05/07
[#28633] load_to(file, mod) — Hidetoshi NAGAI <nagai@...>
永井@知能.九工大です.
8 messages
2006/05/11
[#28649] cgi.rbのUTF-8対応について — Fujioka <fuj@...>
藤岡です。
7 messages
2006/05/18
[#28653] create header (Re: Re: ossl_cipher.c:124: warning: control reaches end of non-void function) — "Nobuyoshi Nakada" <nobu@...>
なかだです。
8 messages
2006/05/18
[#28659] Re: create header (Re: Re: ossl_cipher.c:124: warning: control reaches end of non-void function)
— Tanaka Akira <akr@...17n.org>
2006/05/20
In article <cebd6fd10605180214i2ae903b7ja489be82184cc58c@mail.gmail.com>,
[#28660] Re: create header (Re: Re: ossl_cipher.c:124: warning: control reaches end of non-void function)
— nobu@...
2006/05/21
なかだです。
[#28662] Re: create header (Re: Re: ossl_cipher.c:124: warning: control reaches end of non-void function)
— "Nobuyoshi Nakada" <nobu@...>
2006/05/22
なかだです。
[#28674] Re: create header (Re: Re: ossl_cipher.c:124: warning: control reaches end of non-void function)
— Tanaka Akira <akr@...>
2006/05/30
In article <cebd6fd10605212130s32e08e5eh7777fbf2ebbb7f7@mail.gmail.com>,
[ruby-dev:28615] Re: openssl aes-*-cbc is broken
From:
GOTOU Yuuzou <gotoyuzo@...>
Date:
2006-05-05 08:16:06 UTC
List:
ruby-dev #28615
In message <44552AD3.405@airemix.com>,
`"NARUSE, Yui" <naruse@airemix.com>' wrote:
> openssl モジュールの AES (CBC mode) が使えないようです。
試してみるとECBも同様でした。
> aes-128-cfb aes-128-ecb aes-128-ofb といった
> CBC 以外のモードでは動作しますし、
> AES以外の方式の CBC は動作します。
> また、openssl コマンドからだと動作するので、
> Ruby/OpenSSL の問題だと思うのですが、それ以上は調べ切れませんでした。
なんでそうなるかはちゃんと調べてないのですが、鍵とIVをセット
する前にencryptを呼ぶと動くようです。
% ruby -e '
require "openssl"
pass = "open sesame!"
data = "Hello world!"
c1 = OpenSSL::Cipher::Cipher.new("AES-256-CBC")
c1.encrypt
c1.pkcs5_keyivgen(pass)
s1 = c1.update(data) + c1.final
c2 = OpenSSL::Cipher::Cipher.new("AES-256-CBC")
c2.decrypt
c2.pkcs5_keyivgen(pass)
s2 = c2.update(s1) + c2.final
p(data == s2) #=> true
'
> OpenSSL::Cipher::AES128, OpenSSL::Cipher::AES192,
> OpenSSL::Cipher::AES256 ならば、
> それぞれ -aes128, -aes192, -aes256 と対応するため、
> 引数なしでインスタンスを作れるのでいいと思うのですが。
そうですね。この機会に追加しようと思います。
--
ごとうゆうぞう