[Hardware] RC5 algorithm
Dan Oetting
dan_oetting at qwest.net
Wed Dec 28 22:59:29 EST 2005
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.
More information about the Hardware
mailing list