UJP - 技術情報1

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

Crypt::CBC Install on RedHat ES3

Crypt::CBC Install on RedHat ES3


0.改訂履歴

  • 2005.08.03 新規作成
  • 2006.12.14 誤字脱字修正

1.はじめに

 このドキュメントでは,Crypt::CBCのインストール手順を説明する.

 なお,使用しているOSは,RedHat Linux ES3.0上である.

2.Crypt::CBCとは

  • Crypt::CBCとは,Perlのみで実装されたCBCモードの事.
  • CBCとは,暗号化ブロック連鎖(Cipher Block Chaining)の事. 他にECB(電子コードブロック:Electronic Code Book),CFB(暗号フィードバック:Cipher Feedback),OFB(出力フィードバック:Output Feedback)等がある.
  • CBCでは,暗号化された前ブロックと暗号化されていない現在のブロックとのXORで計算し,これを秘密鍵で暗号化するロジックとなる.
  • CBCも含め,色々なブロック暗号については以下のページに図解で説明されている.
  • CBCはモードであり,他のブロック暗号とともに利用する.

3.環境の確認

  • インストールしようとしているマシンのOS環境を確認する.
[root@testweb root]$ uname -a
Linux testweb 2.4.21-9.ELsmp #1 SMP Thu Jan 8 17:08:56 EST 2004 i686 i686
 i386 GNU/Linux
[root@testweb root]$ cat /etc/redhat-release 
Red Hat Enterprise Linux ES release 3 (Taroon Update 1)
[root@testweb root]$ 
  • 利用する環境に導入されているPerlのバージョンも調べる.
[root@testweb root]# perl -v

This is perl, v5.6.1 built for i386-linux

Copyright 1987-2001, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

[root@testweb root]# 
  • けっこう古いPerlだ...

4.モジュールの入手

5.CBCのインストール

  • 入手したファイルは,GZIP圧縮でtarされているので,ファイルを展開する.
[root@testweb root]# gzip -d Crypt-CBC-2.15.tar.gz 
[root@testweb root]# tar xvf Crypt-CBC-2.15.tar 
Crypt-CBC-2.15/
Crypt-CBC-2.15/t/
Crypt-CBC-2.15/t/IDEA.t
Crypt-CBC-2.15/t/DES.t
Crypt-CBC-2.15/t/PCBC.t
Crypt-CBC-2.15/t/Blowfish_PP.t
Crypt-CBC-2.15/t/null_data.t
Crypt-CBC-2.15/t/Rijndael_compat.t
Crypt-CBC-2.15/t/Blowfish.t
Crypt-CBC-2.15/t/Rijndael.t
Crypt-CBC-2.15/t/func.t
Crypt-CBC-2.15/t/CAST5.t
Crypt-CBC-2.15/eg/
Crypt-CBC-2.15/eg/aes.pl
Crypt-CBC-2.15/eg/des.pl
Crypt-CBC-2.15/eg/idea.pl
Crypt-CBC-2.15/README
Crypt-CBC-2.15/Changes
Crypt-CBC-2.15/Makefile.PL
Crypt-CBC-2.15/META.yml
Crypt-CBC-2.15/CBC.pm
Crypt-CBC-2.15/MANIFEST
[root@testweb root]# cd Crypt-CBC-2.15
[root@testweb Crypt-CBC-2.15]# ls -la
total 40
drwxr-xr-x    4 1001     1001         1024 Aug  1 23:00 .
drwxr-xr-x   14 root     root         1024 Aug  2 16:34 ..
-rw-r--r--    1 1001     1001        25723 Aug  1 22:56 CBC.pm
-rw-r--r--    1 1001     1001         2698 May  6 05:08 Changes
-rw-r--r--    1 1001     1001          244 Apr 23 02:38 MANIFEST
-rw-r--r--    1 1001     1001          332 Aug  1 23:00 META.yml
-rw-r--r--    1 1001     1001          538 Dec 10  2001 Makefile.PL
-rw-r--r--    1 1001     1001         2932 Jul 21  2002 README
drwxr-xr-x    2 1001     1001         1024 Aug  1 23:00 eg
drwxr-xr-x    2 1001     1001         1024 Aug  1 23:00 t
[root@testweb Crypt-CBC-2.15]# 
  • makeを行う.
[root@testweb Crypt-CBC-2.15]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::CBC
[root@testweb Crypt-CBC-2.15]# make
cp CBC.pm blib/lib/Crypt/CBC.pm
Manifying blib/man3/Crypt::CBC.3pm
[root@testweb Crypt-CBC-2.15]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -
I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 -e 'use Test::
Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/Blowfish..........skipped: Crypt::Blowfish not installed
t/Blowfish_PP.......skipped: Crypt::Blowfish_PP not installed
t/CAST5.............skipped: Crypt::CAST5 not installed
t/DES...............skipped: Crypt::DES not installed
t/IDEA..............skipped: Crypt::IDEA not installed
t/PCBC..............skipped: Crypt::DES not installed
t/Rijndael..........skipped: Crypt::Rijndael not installed
t/Rijndael_compat...skipped: Crypt::Rijndael not installed
t/func..............skipped: no cryptographic modules found
t/null_data.........skipped: no cryptographic modules found
FAILED--10 test scripts could be run, alas--no output ever seen
make: *** [test_dynamic] Error 29
[root@testweb Crypt-CBC-2.15]#
  • 暗号化モジュールが1つも見つからないのでエラーがでている.

6.暗号化モジュールのインストール

  • 暗号化モジュールを,同じくCPANからダウンロードする.
  • ダウンロードしたモジュールは次の通り.
[root@testweb Crypt]# ls -la
total 172
drwxr-xr-x    2 root     root         1024 Aug  3 11:15 .
drwxr-xr-x   15 root     root         1024 Aug  3 11:15 ..
-rw-r--r--    1 root     root        25736 Feb 20  2004 Crypt-CAST5-0.04.tar.gz
-rw-r--r--    1 root     root        14344 Aug  1 23:02 Crypt-CBC-2.15.tar.gz
-rw-r--r--    1 root     root        15274 Dec  5  2000 Crypt-DES-2.03.tar.gz
-rw-r--r--    1 root     root         2328 Sep 15  2001 Crypt-DES_EDE3-0.01.tar.gz
-rw-r--r--    1 root     root        34796 Oct 28  2000 Crypt-DES_PP-1.00.tar.gz
-rw-r--r--    1 root     root         5366 Jan 19  2003 Crypt-IDEA-1.02.tar.gz
-rw-r--r--    1 root     root        23676 Sep 17  2001 Crypt-Rijndael-0.05.tar.gz
-rw-r--r--    1 root     root        27543 Jan 14  2005 Crypt-Tea-2.09.tar.gz
-rw-r--r--    1 root     root        13194 May 22  2001 Crypt-Twofish-2.12.tar.gz
-rw-r--r--    1 root     root        44661 Dec  7  2003 Digest-MD5-2.33.tar.gz
[root@testweb Crypt]#  
  • Crypt-DESをインストールする.
[root@testweb Crypt]# gzip -d Crypt-DES-2.03.tar.gz   
[root@testweb Crypt]# tar xvf Crypt-DES-2.03.tar      
Crypt-DES-2.03/
Crypt-DES-2.03/typemap
Crypt-DES-2.03/des.h
Crypt-DES-2.03/DES.xs
Crypt-DES-2.03/MANIFEST
Crypt-DES-2.03/DES.pm
Crypt-DES-2.03/Makefile.PL
Crypt-DES-2.03/COPYRIGHT
Crypt-DES-2.03/test.pl
Crypt-DES-2.03/_des.c
Crypt-DES-2.03/README
[root@testweb Crypt]# cd Crypt-DES-2.03    
[root@testweb Crypt-DES-2.03]# perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::DES
[root@testweb Crypt-DES-2.03]# make test
cp DES.pm blib/lib/Crypt/DES.pm
/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 /usr/lib/
perl5/5.6.1/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap -
typemap typemap DES.xs > DES.xsc && mv DES.xsc DES.c
gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -
DVERSION=\"2.03\" -DXS_VERSION=\"2.03\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/
CORE  DES.c
gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -
DVERSION=\"2.03\" -DXS_VERSION=\"2.03\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/
CORE  _des.c
Running Mkbootstrap for Crypt::DES ()
chmod 644 DES.bs
rm -f blib/arch/auto/Crypt/DES/DES.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib DES.o _des.o  -o blib/arch/auto/C
rypt/DES/DES.so     
chmod 755 blib/arch/auto/Crypt/DES/DES.so
cp DES.bs blib/arch/auto/Crypt/DES/DES.bs
chmod 644 blib/arch/auto/Crypt/DES/DES.bs
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/
i386-linux -I/usr/lib/perl5/5.6.1 test.pl
1..342
342 basic tests ran in  0 wallclock secs ( 0.01 usr +  0.00 sys =  0.01 CPU)
342 of 342 tests passed (100.00%)

Running speed tests...

non-cached cipher speed test.  5000 encrypt iterations
 1 wallclock secs ( 0.14 usr +  0.00 sys =  0.14 CPU)
ok 343

non-cached cipher speed test.  5000 decrypt iterations
 0 wallclock secs ( 0.15 usr +  0.00 sys =  0.15 CPU)
ok 344

cached cipher speed test.  10000 encrypt iterations
 0 wallclock secs ( 0.06 usr +  0.00 sys =  0.06 CPU)
ok 345

cached cipher speed test.  10000 decrypt iterations
 0 wallclock secs ( 0.06 usr +  0.00 sys =  0.06 CPU)
ok 346

Testing Cipher Block Chaining..
ok 347 - CBC Mode

Finished with tests

[root@testweb Crypt-DES-2.03]# make install
Manifying blib/man3/Crypt::DES.3pm
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/DES/DES.so
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/DES/DES.bs
Files found in blib/arch: installing files in blib/lib into architecture
 dependent library tree
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/Crypt/DES.pm
Installing /usr/share/man/man3/Crypt::DES.3pm
Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/DES/.packlist
Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perllocal.pod
[root@testweb Crypt-DES-2.03]# 
  • ベンチマークまでやってくれている...
  • Crypt-DESーEDE3をインストールする.
[root@testweb Crypt]# gzip -d Crypt-DES_EDE3-0.01.tar.gz
[root@testweb Crypt]# tar xvf Crypt-DES_EDE3-0.01.tar   
Crypt-DES_EDE3-0.01/
Crypt-DES_EDE3-0.01/README
Crypt-DES_EDE3-0.01/Makefile.PL
Crypt-DES_EDE3-0.01/Changes
Crypt-DES_EDE3-0.01/MANIFEST
Crypt-DES_EDE3-0.01/test.pl
Crypt-DES_EDE3-0.01/lib/
Crypt-DES_EDE3-0.01/lib/Crypt/
Crypt-DES_EDE3-0.01/lib/Crypt/DES_EDE3.pm
[root@testweb Crypt]# cd Crypt-DES_EDE3-0.01
[root@testweb Crypt-DES_EDE3-0.01]# perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::DES_EDE3
[root@testweb Crypt-DES_EDE3-0.01]# make test
cp lib/Crypt/DES_EDE3.pm blib/lib/Crypt/DES_EDE3.pm
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/i386-
linux -I/usr/lib/perl5/5.6.1 test.pl
1..7
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
[root@testweb Crypt-DES_EDE3-0.01]# make install
Manifying blib/man3/Crypt::DES_EDE3.3pm
Installing /usr/lib/perl5/site_perl/5.6.1/Crypt/DES_EDE3.pm
Installing /usr/share/man/man3/Crypt::DES_EDE3.3pm
Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/DES_EDE3/.packlist
Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perllocal.pod
[root@testweb Crypt-DES_EDE3-0.01]# 
  • Crypt-DES_PPのインストールを行う.
[root@testweb Crypt]# gzip -d Crypt-DES_PP-1.00.tar.gz  
[root@testweb Crypt]# tar xvf Crypt-DES_PP-1.00.tar
Crypt-DES_PP-1.00/
Crypt-DES_PP-1.00/t/
Crypt-DES_PP-1.00/t/randomcache.t
Crypt-DES_PP-1.00/t/cert.t
Crypt-DES_PP-1.00/t/00base.t
Crypt-DES_PP-1.00/t/random.t
Crypt-DES_PP-1.00/t/cbcref.t
Crypt-DES_PP-1.00/t/.cvsignore
Crypt-DES_PP-1.00/Makefile.PL
Crypt-DES_PP-1.00/test.pl
Crypt-DES_PP-1.00/COPYING.LIB
Crypt-DES_PP-1.00/test-xs
Crypt-DES_PP-1.00/lib/
Crypt-DES_PP-1.00/lib/Crypt/
Crypt-DES_PP-1.00/lib/Crypt/DES_PP.pm
Crypt-DES_PP-1.00/lib/Crypt/.cvsignore
Crypt-DES_PP-1.00/MANIFEST
Crypt-DES_PP-1.00/.cvsignore
Crypt-DES_PP-1.00/ChangeLog
Crypt-DES_PP-1.00/DES_PP.m4
Crypt-DES_PP-1.00/README
[root@testweb Crypt]# cd Crypt-DES_PP-1.00    
[root@testweb Crypt-DES_PP-1.00]# perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt-DES_PP
[root@testweb Crypt-DES_PP-1.00]# make test
cp lib/Crypt/DES_PP.pm blib/lib/Crypt/DES_PP.pm
cp lib/Crypt/.cvsignore blib/lib/Crypt/.cvsignore
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib 
-I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 -e 'use
 Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/00base............ok                                                       
t/cbcref............ok                                                       
t/cert..............ok                                                       
t/random............ok                                                       
t/randomcache.......ok                                                       
All tests successful.
Files=5, Tests=10345,  6 wallclock secs ( 5.85 cusr +  0.03 csys =  5.88
 CPU)
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -
I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 test.pl
1..1
=== Benchmarking DES_PP module. ===
To pace directly against XS (embedded C code) version run ``perl test-xs''
in this directory.
checking prerequisites... looks fine
Initializing 8-byte keys for 10 seconds... 4337.7 keys per second
Encrypting 8-byte blocks for 10 seconds... 6833.9 encryptions per second
Decrypting 8-byte blocks for 10 seconds... 6849.7 decryptions per second
Encrypting 160000 bytes in CBC mode... done
 3 wallclock secs ( 3.08 usr +  0.04 sys =  3.12 CPU)
XS-Version: Encrypting 160000 bytes bytes in CBC mode... done
 1 wallclock secs ( 0.27 usr +  0.00 sys =  0.27 CPU)
Encrypting 20000 128-byte-blocks in non-cached CBC mode... done
16 wallclock secs ( 9.45 usr +  6.38 sys = 15.83 CPU)
XS-Version: Encrypting 20000 128-byte-blocks in non-cached CBC mode... done
 8 wallclock secs ( 2.01 usr +  6.23 sys =  8.24 CPU)
ok 1
[root@testweb Crypt-DES_PP-1.00]# make install
Manifying blib/man3/Crypt::DES_PP.3pm
Installing /usr/lib/perl5/site_perl/5.6.1/Crypt/DES_PP.pm
Installing /usr/lib/perl5/site_perl/5.6.1/Crypt/.cvsignore
Installing /usr/share/man/man3/Crypt::DES_PP.3pm
Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt-DES_PP/.packlist
Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perllocal.pod
[root@testweb Crypt-DES_PP-1.00]# 
  • Crypt-IDEAをインストールする.
[root@testweb Crypt]# gzip -d Crypt-IDEA-1.02.tar.gz
[root@testweb Crypt]# tar xvf Crypt-IDEA-1.02.tar   
Crypt-IDEA-1.02/
Crypt-IDEA-1.02/idea.h
Crypt-IDEA-1.02/MANIFEST
Crypt-IDEA-1.02/IDEA.xs
Crypt-IDEA-1.02/IDEA.pod
Crypt-IDEA-1.02/typemap
Crypt-IDEA-1.02/COPYRIGHT
Crypt-IDEA-1.02/test.pl
Crypt-IDEA-1.02/IDEA.pm
Crypt-IDEA-1.02/_idea.c
Crypt-IDEA-1.02/Makefile.PL
[root@testweb Crypt]# cd Crypt-IDEA-1.02    
[root@testweb Crypt-IDEA-1.02]# perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::IDEA
[root@testweb Crypt-IDEA-1.02]# make test
cp IDEA.pm blib/lib/Crypt/IDEA.pm
cp IDEA.pod blib/lib/Crypt/IDEA.pod
/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 /usr/lib/
perl5/5.6.1/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap -
typemap typemap IDEA.xs > IDEA.xsc && mv IDEA.xsc IDEA.c
Please specify prototyping behavior for IDEA.xs (see perlxs manual)
gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -
DVERSION=\"1.02\" -DXS_VERSION=\"1.02\" -fPIC -I/usr/lib/perl5/5.6.1/i386-
linux/CORE  IDEA.c
gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -
DVERSION=¥"1.02¥" -DXS_VERSION=¥"1.02¥" -fPIC -I/usr/lib/perl5/5.6.1/i386-li
nux/CORE  _idea.c
Running Mkbootstrap for Crypt::IDEA ()
chmod 644 IDEA.bs
rm -f blib/arch/auto/Crypt/IDEA/IDEA.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib IDEA.o _idea.o  -o 
blib/arch/auto/Crypt/IDEA/IDEA.so     
chmod 755 blib/arch/auto/Crypt/IDEA/IDEA.so
cp IDEA.bs blib/arch/auto/Crypt/IDEA/IDEA.bs
chmod 644 blib/arch/auto/Crypt/IDEA/IDEA.bs
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.
1/i386-linux -I/usr/lib/perl5/5.6.1 test.pl
1..4
ok 1
ok 2
ok 3
ok 4
[root@testweb Crypt-IDEA-1.02]# make install
Manifying blib/man3/Crypt::IDEA.3pm
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/IDEA/IDEA.so
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/IDEA/IDEA.bs
Files found in blib/arch: installing files in blib/lib into architecture 
dependent library tree
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/Crypt/IDEA.pm
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/Crypt/IDEA.pod
Installing /usr/share/man/man3/Crypt::IDEA.3pm
Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/IDEA/.packlist
Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perllocal.pod
[root@testweb Crypt-IDEA-1.02]#  
  • Crypt-rijndaelをインストールする.
[root@testweb Crypt]# gzip -d Crypt-Rijndael-0.05.tar.gz  
[root@testweb Crypt]# tar xvf Crypt-Rijndael-0.05.tar
Crypt-Rijndael-0.05/
Crypt-Rijndael-0.05/t/
Crypt-Rijndael-0.05/t/00_load.t
Crypt-Rijndael-0.05/NEWS
Crypt-Rijndael-0.05/test
Crypt-Rijndael-0.05/README
Crypt-Rijndael-0.05/Rijndael.pm
Crypt-Rijndael-0.05/Rijndael.xs
Crypt-Rijndael-0.05/Makefile.PL
Crypt-Rijndael-0.05/rijndael.h
Crypt-Rijndael-0.05/typemap
Crypt-Rijndael-0.05/_rijndael.c
Crypt-Rijndael-0.05/COPYING
Crypt-Rijndael-0.05/MANIFEST
[root@testweb Crypt]# cd Crypt-Rijndael-0.05
[root@testweb Crypt-Rijndael-0.05]# perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::Rijndael
[root@testweb Crypt-Rijndael-0.05]# make test
cp Rijndael.pm blib/lib/Crypt/Rijndael.pm
gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -
DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC -I/usr/lib/perl5/5.6.1/i386-
linux/CORE  _rijndael.c
/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 /usr/lib/
perl5/5.6.1/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap -
typemap typemap Rijndael.xs > Rijndael.xsc 
&& mv Rijndael.xsc Rijndael.c
gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -
DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC -I/usr/lib/perl5/5.6.1/i386-
linux/CORE  Rijndael.c
Running Mkbootstrap for Crypt::Rijndael ()
chmod 644 Rijndael.bs
rm -f blib/arch/auto/Crypt/Rijndael/Rijndael.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib _rijndael.o Rijndael.o  -o 
blib/arch/auto/Crypt/Rijndael/Rijndael.so     
chmod 755 blib/arch/auto/Crypt/Rijndael/Rijndael.so
cp Rijndael.bs blib/arch/auto/Crypt/Rijndael/Rijndael.bs
chmod 644 blib/arch/auto/Crypt/Rijndael/Rijndael.bs
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/
i386-linux -I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); 
$verbose=0; runtests @ARGV;' t/*.t
t/00_load...........ok                                                       
All tests successful.
Files=1, Tests=41,  0 wallclock secs ( 0.04 cusr +  0.01 csys =  0.05 CPU)
[root@testweb Crypt-Rijndael-0.05]# make install
Manifying blib/man3/Crypt::Rijndael.3pm
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/Rijndael/Rijndael.so
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/Rijndael/Rijndael.bs
Files found in blib/arch: installing files in blib/lib into architecture 
dependent library tree
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/Crypt/Rijndael.pm
Installing /usr/share/man/man3/Crypt::Rijndael.3pm
Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/Rijndael/.packlist
Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perllocal.pod
[root@testweb Crypt-Rijndael-0.05]# 
  • Crypt-Twofishのインストール
[root@testweb Crypt]# gzip -d Crypt-Twofish-2.12.tar.gz 
[root@testweb Crypt]# tar xvf Crypt-Twofish-2.12.tar    
Crypt-Twofish-2.12/
Crypt-Twofish-2.12/typemap
Crypt-Twofish-2.12/_twofish.c
Crypt-Twofish-2.12/MANIFEST
Crypt-Twofish-2.12/Makefile.PL
Crypt-Twofish-2.12/Changes
Crypt-Twofish-2.12/twofish.h
Crypt-Twofish-2.12/test.pl
Crypt-Twofish-2.12/tab/
Crypt-Twofish-2.12/tab/tables.pl
Crypt-Twofish-2.12/tab/misc.pl
Crypt-Twofish-2.12/ppport.h
Crypt-Twofish-2.12/Twofish.xs
Crypt-Twofish-2.12/README
Crypt-Twofish-2.12/Twofish.pm
[root@testweb Crypt]# cd Crypt-Twofish-2.12    
[root@testweb Crypt-Twofish-2.12]# perl Makefile.PL 
Searching for uint*_t... inttypes.h
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::Twofish
[root@testweb Crypt-Twofish-2.12]# make
cp Twofish.pm blib/lib/Crypt/Twofish.pm
/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 /usr/lib/
perl5/5.6.1/ExtUtils/xsubpp  -typemap 
/usr/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap Twofish.xs > Twofish.xsc 
&& mv Twofish.xsc Twofish.c
gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -
DVERSION=\"2.12\" -DXS_VERSION=\"2.12\" -fPIC -I/usr/lib/perl5/5.6.1/i386-
linux/CORE  Twofish.c
perl tab/tables.pl
gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -
DVERSION=\"2.12\" -DXS_VERSION=\"2.12\" -fPIC -I/usr/lib/perl5/5.6.1/i386-
linux/CORE  _twofish.c
Running Mkbootstrap for Crypt::Twofish ()
chmod 644 Twofish.bs
rm -f blib/arch/auto/Crypt/Twofish/Twofish.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib Twofish.o _twofish.o  -o 
blib/arch/auto/Crypt/Twofish/Twofish.so     
chmod 755 blib/arch/auto/Crypt/Twofish/Twofish.so
cp Twofish.bs blib/arch/auto/Crypt/Twofish/Twofish.bs
chmod 644 blib/arch/auto/Crypt/Twofish/Twofish.bs
Manifying blib/man3/Crypt::Twofish.3pm
[root@testweb Crypt-Twofish-2.12]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/
i386-linux -I/usr/lib/perl5/5.6.1 test.pl
1..10
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
trying CBC... ok 10

Benchmarks
Encrypting (10,000 cycles, uncached cipher):  0 wallclock secs ( 0.41 usr +  0.00 
sys =  0.41 CPU)
Decrypting (10,000 cycles, uncached cipher):  1 wallclock secs ( 0.39 usr +  0.01 
sys =  0.40 CPU)
Encrypting (10,000 cycles,   cached cipher):  0 wallclock secs ( 0.08 usr +  0.00 
sys =  0.08 CPU)
Decrypting (10,000 cycles,   cached cipher):  0 wallclock secs ( 0.08 usr +  0.00 
sys =  0.08 CPU)
[root@testweb Crypt-Twofish-2.12]# make install
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/Twofish/Twofish.so
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/Twofish/Twofish.bs
Files found in blib/arch: installing files in blib/lib into architecture 
dependent library tree
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/Crypt/Twofish.pm
Installing /usr/share/man/man3/Crypt::Twofish.3pm
Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/Twofish/.packlist
Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perllocal.pod
[root@testweb Crypt-Twofish-2.12]#        
  • Crypt-Blowfishをインストールする. blowfishってフグの事.
[root@testweb Crypt]# gzip -d Crypt-Blowfish-2.09.tar.gz 
[root@testweb Crypt]# tar xvf Crypt-Blowfish-2.09.tar    
Crypt-Blowfish-2.09/
Crypt-Blowfish-2.09/blowfish.h
Crypt-Blowfish-2.09/README
Crypt-Blowfish-2.09/MANIFEST
Crypt-Blowfish-2.09/_blowfish.c
Crypt-Blowfish-2.09/test.pl
Crypt-Blowfish-2.09/Blowfish.pm
Crypt-Blowfish-2.09/COPYRIGHT
Crypt-Blowfish-2.09/typemap
Crypt-Blowfish-2.09/Changes
Crypt-Blowfish-2.09/Makefile.PL
Crypt-Blowfish-2.09/Blowfish.xs
[root@testweb Crypt]# cd Crypt-Blowfish-2.09
[root@testweb Crypt-Blowfish-2.09]# perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::Blowfish
[root@testweb Crypt-Blowfish-2.09]# make 
cp Blowfish.pm blib/lib/Crypt/Blowfish.pm
/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 /usr/lib/
perl5/5.6.1/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap -
typemap typemap Blowfish.xs > Blowfish.xsc 
&& mv Blowfish.xsc Blowfish.c
gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -
DVERSION=\"2.09\" -DXS_VERSION=\"2.09\" -fPIC -I/usr/lib/perl5/5.6.1/i386-
linux/CORE  Blowfish.c
gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -
DVERSION=\"2.09\" -DXS_VERSION=\"2.09\" -fPIC -I/usr/lib/perl5/5.6.1/i386-
linux/CORE  _blowfish.c
Running Mkbootstrap for Crypt::Blowfish ()
chmod 644 Blowfish.bs
rm -f blib/arch/auto/Crypt/Blowfish/Blowfish.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib Blowfish.o _blowfish.o  -o 
blib/arch/auto/Crypt/Blowfish/Blowfish.so     
chmod 755 blib/arch/auto/Crypt/Blowfish/Blowfish.so
cp Blowfish.bs blib/arch/auto/Crypt/Blowfish/Blowfish.bs
chmod 644 blib/arch/auto/Crypt/Blowfish/Blowfish.bs
Manifying blib/man3/Crypt::Blowfish.3pm
[root@testweb Crypt-Blowfish-2.09]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/
i386-linux -I/usr/lib/perl5/5.6.1 test.pl
1..11
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10

Running standard mode speed tests.. encrypting with non-cached cipher
5,000 cycles:  1 wallclock secs ( 1.12 usr +  0.00 sys =  1.12 CPU)

Running standard mode speed tests.. decrypting with non-cached cipher
5,000 cycles:  1 wallclock secs ( 1.12 usr +  0.00 sys =  1.12 CPU)

Running standard mode speed tests.. encrypting with cached cipher
10,000 cycles:  0 wallclock secs ( 0.07 usr +  0.00 sys =  0.07 CPU)

Running standard mode speed tests.. decrypting with cached cipher
10,000 cycles:  0 wallclock secs ( 0.07 usr +  0.00 sys =  0.07 CPU)

Testing Cipher Block Chaining..
ok 11 - CBC Mode
[root@testweb Crypt-Blowfish-2.09]# make install
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/Blowfish/
Blowfish.so
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/Blowfish/
Blowfish.bs
Files found in blib/arch: installing files in blib/lib into architecture
 dependent library tree
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/Crypt/Blowfish.pm
Installing /usr/share/man/man3/Crypt::Blowfish.3pm
Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/Blowfish/.packlist
Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perllocal.pod
[root@testweb Crypt-Blowfish-2.09]#     

  • Crypt-Blowfish_PPをインストールする.
[root@testweb Crypt]# gzip -d Crypt-Blowfish_PP-1.12.tar.gz 
[root@testweb Crypt]# tar xvf Crypt-Blowfish_PP-1.12.tar
Crypt-Blowfish_PP-1.12/
Crypt-Blowfish_PP-1.12/CHANGELOG
Crypt-Blowfish_PP-1.12/Blowfish_PP.pm
Crypt-Blowfish_PP-1.12/Makefile.PL
Crypt-Blowfish_PP-1.12/t/
Crypt-Blowfish_PP-1.12/t/blowfish.t
Crypt-Blowfish_PP-1.12/README
Crypt-Blowfish_PP-1.12/MANIFEST
[root@testweb Crypt]# cd Crypt-Blowfish_PP-1.12
[root@testweb Crypt-Blowfish_PP-1.12]# perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::Blowfish_PP
[root@testweb Crypt-Blowfish_PP-1.12]# make 
cp Blowfish_PP.pm blib/lib/Crypt/Blowfish_PP.pm
Manifying blib/man3/Crypt::Blowfish_PP.3pm
[root@testweb Crypt-Blowfish_PP-1.12]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/
i386-linux -I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); 
$verbose=0; runtests @ARGV;' t/*.tt/blowfish..........ok
All tests successful.
Files=1, Tests=5,  0 wallclock secs ( 0.16 cusr +  0.00 csys =  0.16 CPU)
[root@testweb Crypt-Blowfish_PP-1.12]# make install
Installing /usr/lib/perl5/site_perl/5.6.1/Crypt/Blowfish_PP.pm
Installing /usr/share/man/man3/Crypt::Blowfish_PP.3pm
Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Crypt/Blowfish_PP/.packlist
Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perllocal.pod
[root@testweb Crypt-Blowfish_PP-1.12]#      
  • Digest-MD5をインストールする.
[root@testweb Crypt]# gzip -d Digest-MD5-2.33.tar.gz 
[root@testweb Crypt]# tar xvf Digest-MD5-2.33.tar
Digest-MD5-2.33/
Digest-MD5-2.33/t/
Digest-MD5-2.33/t/md5-aaa.t
Digest-MD5-2.33/t/clone.t
Digest-MD5-2.33/t/badfile.t
Digest-MD5-2.33/t/utf8.t
Digest-MD5-2.33/t/bits.t
Digest-MD5-2.33/t/align.t
Digest-MD5-2.33/t/files.t
Digest-MD5-2.33/README
Digest-MD5-2.33/MANIFEST
Digest-MD5-2.33/hints/
Digest-MD5-2.33/hints/MacOS.pl
Digest-MD5-2.33/hints/irix_6.pl
Digest-MD5-2.33/hints/dec_osf.pl
Digest-MD5-2.33/Changes
Digest-MD5-2.33/Makefile.PL
Digest-MD5-2.33/MD5.xs
Digest-MD5-2.33/typemap
Digest-MD5-2.33/MD5.pm
Digest-MD5-2.33/rfc1321.txt
[root@testweb Crypt]# cd Digest-MD5-2.33
[root@testweb Digest-MD5-2.33]# perl Makefile.PL 
Testing alignment requirements for U32... no restrictions
Checking if your kit is complete...
Looks good

Warning: prerequisite Digest::base failed to load: Can't locate Digest/base.pm in 
@INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/
lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/
perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/
site_perl .) at (eval 4) line 3.
Writing Makefile for Digest::MD5
[root@testweb Digest-MD5-2.33]# make 
cp MD5.pm blib/lib/Digest/MD5.pm
/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 /usr/lib/
perl5/5.6.1/ExtUtils/xsubpp  -typemap 
/usr/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap MD5.xs > MD5.xsc && mv 
MD5.xsc MD5.c
gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -
DVERSION=\"2.33\" -DXS_VERSION=\"2.33\" -fPIC -I/usr/lib/perl5/5.6.1/i386-
linux/CORE  MD5.c
Running Mkbootstrap for Digest::MD5 ()
chmod 644 MD5.bs
rm -f blib/arch/auto/Digest/MD5/MD5.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib MD5.o  -o 
blib/arch/auto/Digest/MD5/MD5.so     
chmod 755 blib/arch/auto/Digest/MD5/MD5.so
cp MD5.bs blib/arch/auto/Digest/MD5/MD5.bs
chmod 644 blib/arch/auto/Digest/MD5/MD5.bs
Manifying blib/man3/Digest::MD5.3pm
[root@testweb Digest-MD5-2.33]# make test 
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/
i386-linux -I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); 
$verbose=0; runtests @ARGV;' t/*.t
t/align.............ok                                                       
t/badfile...........ok                                                       
t/bits..............ok                                                       
t/clone.............ok                                                       
t/files.............ok                                                       
t/md5-aaa...........ok                                                       
t/utf8..............ok                                                       
All tests successful.
Files=7, Tests=275,  1 wallclock secs ( 0.66 cusr +  0.11 csys =  0.77 CPU)
[root@testweb Digest-MD5-2.33]# make install
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Digest/MD5/MD5.so
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Digest/MD5/MD5.bs
Files found in blib/arch: installing files in blib/lib into architecture 
dependent library tree
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/Digest/MD5.pm
Installing /usr/share/man/man3/Digest::MD5.3pm
Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Digest/MD5/.packlist
Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perllocal.pod
[root@testweb Digest-MD5-2.33]#    
  • Crypt-Teaをインストールする.
[root@testweb Crypt]# gzip -d Crypt-Tea-2.09.tar.gz 
[root@testweb Crypt]# tar xvf Crypt-Tea-2.09.tar
Crypt-Tea-2.09/README
Crypt-Tea-2.09/MANIFEST
Crypt-Tea-2.09/Changes
Crypt-Tea-2.09/Install
Crypt-Tea-2.09/Clui
Crypt-Tea-2.09/Makefile.PL
Crypt-Tea-2.09/test.pl
Crypt-Tea-2.09/examples/tea_demo.cgi
Crypt-Tea-2.09/Tea.pm
Crypt-Tea-2.09/bin/tea
[root@testweb Crypt]# cd Crypt-Tea-2.09
[root@testweb Crypt-Tea-2.09]# perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::Tea
[root@testweb Crypt-Tea-2.09]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..7
ok 1 - binary2ascii
ok 2 - ascii2binary
ok 3 - tea_code
ok 4 - tea_decode
ok 5 - asciidigest
ok 6 - encrypt and decrypt
ok 7 - version-1-compatible decrypt
#      Now use a JavaScript-capable browser to view test.html ...
[root@testweb Crypt-Tea-2.09]# make install
Writing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Crypt/Te
a/.packlist
Appending installation info to /usr/lib/perl5/5.8.0/i386-linux-thread-
multi/perllocal.pod
[root@testweb Crypt-Tea-2.09]# 
  • Crypt-CASTSをインストールする.
[root@testweb Crypt]# gzip -d Crypt-CAST5-0.04.tar.gz 
[root@testweb Crypt]# tar xvf Crypt-CAST5-0.04.tar
Crypt-CAST5-0.04/
Crypt-CAST5-0.04/_cast5.c
Crypt-CAST5-0.04/cast5.h
Crypt-CAST5-0.04/CAST5.pm
Crypt-CAST5-0.04/CAST5.xs
Crypt-CAST5-0.04/Changes
Crypt-CAST5-0.04/Makefile.PL
Crypt-CAST5-0.04/MANIFEST
Crypt-CAST5-0.04/META.yml
Crypt-CAST5-0.04/ppport.h
Crypt-CAST5-0.04/README
Crypt-CAST5-0.04/SIGNATURE
Crypt-CAST5-0.04/t/
Crypt-CAST5-0.04/t/1cast5.t
Crypt-CAST5-0.04/t/2cbc.t
Crypt-CAST5-0.04/t/3utf.t
Crypt-CAST5-0.04/tables.c
Crypt-CAST5-0.04/test/
Crypt-CAST5-0.04/test/slowtest.pl
Crypt-CAST5-0.04/test/speedtest.pl
Crypt-CAST5-0.04/typemap
[root@testweb Crypt]# cd Crypt-CAST5-0.04
[root@testweb Crypt-CAST5-0.04]# perl Makefile.PL 
Checking if your kit is complete...
Looks good
Warning: prerequisite Test::More failed to load: Can't locate Test/More.pm in @INC 
(@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/
perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/
site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl 
.) at (eval 4) line 3.

Writing Makefile for Crypt::CAST5

[root@testweb Crypt-CAST5-0.04]#
[root@testweb Crypt-CAST5-0.04]# make test
cp CAST5.pm blib/lib/Crypt/CAST5.pm
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap 
/usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap  CAST5.xs > CAST5.xsc &&
 mv CAST5.xsc CAST5.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-
aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686   -DVERSION=\"0.04\" -
DXS_VERSION=\"0.04\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"  
-DGCC_X86 CAST5.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-
aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686   -DVERSION=\"0.04\" -
DXS_VERSION=\"0.04\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"  
-DGCC_X86 _cast5.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-
aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686   -DVERSION=\"0.04\" -
DXS_VERSION=\"0.04\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"  
-DGCC_X86 tables.c
Running Mkbootstrap for Crypt::CAST5 ()
chmod 644 CAST5.bs
rm -f blib/arch/auto/Crypt/CAST5/CAST5.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib CAST5.o _cast5.o tables.o  -o blib/
arch/auto/Crypt/CAST5/CAST5.so     
chmod 755 blib/arch/auto/Crypt/CAST5/CAST5.so
cp CAST5.bs blib/arch/auto/Crypt/CAST5/CAST5.bs
chmod 644 blib/arch/auto/Crypt/CAST5/CAST5.bs
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 
'blib/lib', 'blib/arch')" t/*.t

t/1cast5....ok                                                               
t/2cbc......ok                                                               
t/3utf......ok                                                               
All tests successful.
Files=3, Tests=20,  0 wallclock secs ( 0.14 cusr +  0.01 csys =  0.15 CPU)
[root@testweb Crypt-CAST5-0.04]# make install
Manifying blib/man3/Crypt::CAST5.3pm
Files found in blib/arch: installing files in blib/lib into architecture
 dependent library tree
Writing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-
multi/auto/Crypt/CAST5/.packlist
Appending installation info to /usr/lib/perl5/5.8.0/i386-linux-thread-
multi/perllocal.pod
[root@testweb Crypt-CAST5-0.04]# 
  • 基本的に,make test時にエラーとかFailedとかの文字が出力されていない事を確認.

7.再度CBCをインストールする

  • 暗号化モジュールのインストール後,再度インストールを行う.
[root@testweb Crypt-CBC-2.15]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
 'blib/lib', 'blib/arch')" t/*.t
t/Blowfish...........ok                                                      
t/Blowfish_PP........ok                                                      
t/CAST5..............ok                                                      
t/DES................ok                                                      
t/func...............ok                                                      
t/IDEA...............ok                                                      
t/null_data..........ok                                                      
t/PCBC...............ok                                                      
t/Rijndael...........ok                                                      
t/Rijndael_compat....ok                                                      
All tests successful.
Files=10, Tests=3492, 125 wallclock secs (123.25 cusr +  0.13 csys = 123.38 CPU)
[root@testweb Crypt-CBC-2.15]# make install
Writing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Crypt/CBC/.p
acklist
Appending installation info to /usr/lib/perl5/5.8.0/i386-linux-thread-multi/per
llocal.pod
[root@testweb Crypt-CBC-2.15]#   
  • 今回はインストールできた.


広告スペース
Google