Re: RC5 algorithm

"Dan Oetting" <dan_oetting-r9/[email protected]> Wed, 28 Dec 2005 20:59:29 -0700
Newsgroups gmane.comp.distributed-net.hardware
Message-ID <[email protected]>
On Dec 26, 2005, at 5:42 PM, Martin Klingensmith wrote:

> I unrolled the loops and enumerated the variables and came up with  
> this code. The only problem I'm having is right here:
>    L0 = 0x53030cc9;
>    L0 = ROTL(L0 + 0xbf0a8b1d, 0xbf0a8b1d);

Probably because 0x53030cc9 + 0xbf0a8b1d is 33 bits long and the  
compiler doesn't have any information from a variable declaration to  
know that it should be masked to 32 bits.

-- Dan O.

_______________________________________________
Hardware mailing list
Hardware-Ra3b/QYEcJ3d140v2zMXi0fjHoOT/h/[email protected]
http://lists.distributed.net/mailman/listinfo/hardware