Perl(Crypt::DES, Crypt::IDEA)

Perl(Crypt::DES, Crypt::IDEA)

Post by Serge Coll » Fri, 02 Apr 1999 04:00:00



I am having trouble with the Crypt::DES and Crypt::IDEA packages.
 The error message I get

    Can't load
'/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Crypt/DES/DES.so'
for module Crypt::IDEA: bad magic number in
"/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Crypt/DES/DES.so"
at /usr/local/lib/perl5/5.00502/i386-freebsd/DynaLoader.pm line 168.

 at ./test.pl line 3
BEGIN failed--compilation aborted at ./test.pl line 3.

I verified the format with file  and I get

    DES.so: ELF 32-bit LSB shared object, Intel 80386, version 1
(FreeBSD), not stripped

I have FreeBSD 3.1, what else could be the problem.

Serge

 
 
 

Perl(Crypt::DES, Crypt::IDEA)

Post by Gary Howlan » Wed, 07 Apr 1999 04:00:00



> I am having trouble with the Crypt::DES and Crypt::IDEA packages.
>  The error message I get

>     Can't load
> '/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Crypt/DES/DES.so'
> for module Crypt::IDEA: bad magic number in
> "/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Crypt/DES/DES.so"
> at /usr/local/lib/perl5/5.00502/i386-freebsd/DynaLoader.pm line 168.

>  at ./test.pl line 3
> BEGIN failed--compilation aborted at ./test.pl line 3.

> I verified the format with file  and I get

>     DES.so: ELF 32-bit LSB shared object, Intel 80386, version 1
> (FreeBSD), not stripped

> I have FreeBSD 3.1, what else could be the problem.

> Serge

Yeah, this could be caused by the perl community's decision to relocate
the whereabout of the .so files.

I re-installed form sources and the problem went away.

DON'T blame the Crypt::*  programs - all perl extensions are likely to
give you grief.

Gary

 
 
 

1. crypt DES and IDEA compile probs on Solaris 2.7

I have the CPAN modules Crypt-DES and Crypt-IDEA.  Both fail during
make.  I made some recommended changes to des.h that a user of an
earlier version of solaris suggested (modified file below) which
allowed DES to 'make' but it fails two tests on 'make test'.  It also
runs abnormally slowly.  I have not been able to make Crypt-IDEA.  Has
anyone successfully installed either of these packages on a solaris
2.7 machine and if so could you pass on the required changes?

Thanks,
JDH

Modified des.h
#ifdef sun
#include <sys/int_types.h>
typedef uint8_t  u_int8_t;
typedef uint32_t u_int32_t;
#else
#include <machine/types.h>
#endif

typedef u_int8_t  des_user_key[8];
typedef u_int32_t des_cblock[2];
typedef u_int32_t des_ks[32];

void des_crypt(des_cblock in, des_cblock out, des_ks key, int encrypt);
void des_expand_key(des_user_key userKey, des_ks key);

2. HTTPD error....ServerName?

3. unix crypt() vs. AIX crypt()

4. Newbie: Dual Booting Win95 & Linux

5. crypt in C++ just like crypt in c library

6. iBCS - WP60: Can't open display :0

7. passwd hashing methods Re: unix crypt() vs. AIX crypt()

8. How to reinstall the bootloader

9. Does Linux support crypt(1) and crypt(3)?

10. des/md5/crypt

11. DES passwd crypt support requited for tacacs+ authentication

12. DES /crypt(3) on a vector computer

13. Difference between crypt(1) and des(1)?