[Hardware] RC5 algorithm

Elektron elektron_rc5 at yahoo.ca
Tue Dec 20 10:17:55 EST 2005


On 20 Dec, 2005, at 05:18, Martin Klingensmith wrote:

> I'm using the test code here:
> <http://www.rsasecurity.com/rsalabs/node.asp?id=2105>
> But I can't get it to match the output. Seeing as how it's an 
> encryption
> algorithm and all, it's pretty hard to tell what's wrong when I don't
> have a working reference (and the output would be completely different
> anyway)
> I think I'm having issues with endianness. The RC5 algorithm implies
> little-endian. I'm confused regarding the order of the key bytes and 
> the
> plaintext bytes (thus I cannot get the RSA test to match my code).
> This is the modified code if anyone doesn't mind looking at it:

For one, c=3.

I'm not sure about the endianness, because RC5 is very messy. But I'd 
look at the IV, which you don't seem to use anywhere.

- Purr



More information about the Hardware mailing list