🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.crypt
Article #5032

Re: TEA problems with temporarely created variables ?

#5032
From: skybuck
Date: Mon, 26 Aug 2002 20:08
52 lines
2757 bytes
disastry@saiknes.lv.NO.SPaM.NET wrote in message news:<3D69F6F6.E43591E6@saiknes.lv.NO.SPaM.NET>...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
> 
> skybuck wrote:
> > The problems are probably with these lines of code:

For those that don't what the problem might be... compilers create
temporarely variables to store the sub results of the calculation of
these lines of code.
Apperently... compiler do that differently...

 
> > c version:
> > 
> > y += (z<<4)+a ^ z+sum ^ (z>>5)+b;
> > z += (y<<4)+c ^ y+sum ^ (y>>5)+d;
> > 
> > pascal version:
> > 
> > y := y + (z shl 4) + a xor z + _sum xor (z shr 5) + b;
> > z := z + (y shl 4) + c xor y + _sum xor (y shr 5) + d;
> 
> 1) try:
>   y := y + ((z shl 4) + a xor z + _sum xor (z shr 5) + b);

Nope, I tried this one, it doesn't work in delphi 6.



> or even
>   y := y + (((z shl 4) + a) xor (z + _sum) xor ((z shr 5) + b));
> 

Nope, this one also doesn't work in delphi.

> 2) better use XTEA (aka (TEAN)

Hmm.. what's that... I go check it out :)
 
> __
> Disastry  http://disastry.dhs.org/
> http://disastry.dhs.org/pgp <----PGP plugins for Netscape and MDaemon
>  ^----PGP 2.6.3ia-multi06 (supports IDEA, CAST5, BLOWFISH, TWOFISH,
>       AES, 3DES ciphers and MD5, SHA1, RIPEMD160, SHA2 hashes)
> -----BEGIN PGP SIGNATURE-----
> Version: Netscape PGP half-Plugin 0.15 by Disastry / PGPsdk v1.7.1
> 
> iQA/AwUBPWnayDBaTVEuJQxkEQMpGACfZIT4l3qmDgc6vFEefc8IaltkSfAAoLXz
> hQBQJElRGLhZ0OyB59/rQvpn
> =ouN1
> -----END PGP SIGNATURE-----
Technical Details
Message-ID: <65fc3031.0208261208.6199fcc1@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <65fc3031.0208260053.300165ba@posting.google.com> <3D69F6F6.E43591E6@saiknes.lv.NO.SPaM.NET>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1014db,ddba2a7b81ed925a
X-Google-Attributes: gid1014db,public
X-Google-Thread: fb57f,ddba2a7b81ed925a
X-Google-Attributes: gidfb57f,public
X-Google-Thread: 1043cf,ddba2a7b81ed925a
X-Google-Attributes: gid1043cf,public
X-Google-Thread: 10cc59,ddba2a7b81ed925a
X-Google-Attributes: gid10cc59,public
X-Google-ArrivalTime: 2002-08-26 13:08:18 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: skybuck2000@hotmail.com (skybuck)
Newsgroups: sci.crypt,comp.lang.pascal,borland.public.delphi.objectpascal,comp.lang.c
Subject: Re: TEA problems with temporarely created variables ?
Date: 26 Aug 2002 13:08:17 -0700
Organization: http://groups.google.com/
Lines: 52
Message-ID: <65fc3031.0208261208.6199fcc1@posting.google.com>
References: <65fc3031.0208260053.300165ba@posting.google.com> <3D69F6F6.E43591E6@saiknes.lv.NO.SPaM.NET>
NNTP-Posting-Host: 217.121.93.57
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1030392498 23868 127.0.0.1 (26 Aug 2002 20:08:18 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 26 Aug 2002 20:08:18 GMT