[ruby-dev:24285] OpenSSL::Cipher::Idea or IDEA ?

From: sheepman <sheepman@...>
Date: 2004-09-18 03:18:41 UTC
List: ruby-dev #24285
こんにちは、sheepman です。

OpenSSL::Cipher::Idea に関してです。以下のようにエラーが出ます。
Idea と IDEA の違いのようです。

$ ruby -r openssl -e 'OpenSSL::Cipher::Idea.new'
(eval):5:in `initialize': Unsupported cipher algorithm (Idea).:  (RuntimeError)
        from (eval):5:in `initialize'
        from -e:1:in `new'
        from -e:1

以下のようにするとエラーは出ません。

$ ruby -r openssl -e 'p OpenSSL::Cipher::Cipher.new("IDEA")'
#<OpenSSL::Cipher::Cipher:0x401a32b8>

プラットフォームは Vine Linux 2.6 です。

ruby 1.9.0 (2004-09-17) [i686-linux]
Linux version 2.4.22-0vl2.13
openssl-devel-0.9.6m-0vl0.26

-- 
sheepman / TAMURA Takashi
sheepman@tcn.zaq.ne.jp http://sheepman.parfait.ne.jp/
Key fingerprint = 4E13 FE38 CD73 48D3 38AE  00EE 9E28 F98B D569 848E

In This Thread

Prev Next