From: pgut001@cs.auckland.ac.nz
To: cypherpunks@toad.com
Message Hash: 4adc4b8c0d187eb8f36f4bacd591f9ba695de848d45c003d478296648ff8cd1e
Message ID: <199603300350.PAA14507@cs26.cs.auckland.ac.nz>
Reply To: N/A
UTC Datetime: 1996-03-30 11:11:04 UTC
Raw Date: Sat, 30 Mar 1996 19:11:04 +0800
From: pgut001@cs.auckland.ac.nz
Date: Sat, 30 Mar 1996 19:11:04 +0800
To: cypherpunks@toad.com
Subject: Re: trouble with idea.c from cryptl99.zip
Message-ID: <199603300350.PAA14507@cs26.cs.auckland.ac.nz>
MIME-Version: 1.0
Content-Type: text/plain
Tall men in dark suits made Jack Mott <thecrow@iconn.net> write:
>Hey, I downloaded the crypto lib 'cryptl99.zip' from one of the crypto web
>sites, I got IDEA.C to compile, but it doesn't seem to encrypt.
>
>[...]
> memcpy(YY, XX, 8);
> for (l = 0; l < BLOCKS; l++)
> ideaCipher(YY, YY, EK); /* repeated encryption */
> memcpy(ZZ, YY, 8);
> for (l = 0; l < BLOCKS; l++)
> ideaCipher(ZZ, ZZ, DK); /* repeated decryption */
Arrgghh!!! That defeats the whole purpose of the library, which is to provide a
standard interface to many different algorithms. If you use the routine the
way it's meant to be used (via initCryptContext(), etc) it'll work fine.
BTW the reason it isn't encrypting is that by the looks of it you're not
calling the IDEA key schedule code.
Peter.
Return to March 1996
Return to “pgut001@cs.auckland.ac.nz”
1996-03-30 (Sat, 30 Mar 1996 19:11:04 +0800) - Re: trouble with idea.c from cryptl99.zip - pgut001@cs.auckland.ac.nz