Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Crypt-Rijndael CPAN distribution.

Report information
The Basics
Id: 9514
Status: resolved
Priority: 0/
Queue: Crypt-Rijndael

People
Owner: Nobody in particular
Requestors: vivek [...] khera.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Fails to pass tests on 64-bit architecture
From Crypt-Rijndael-0.05.tar.gz (which still has $VERSION = 0.04 by the way) installing on amd64 in FreeBSD 5.3 with perl 5.8.5 fails tests checking the result of the encryption. The cause is that the code assumes "unsigned long" is 32 bits, whereas it is 64 bits here. The fix is to edit rijndael.h in the source to "unsigned int" as the UINT32 type. Probably better is to use uint32_t from <sys/types.h> to be more portable. Email to the author at sevillar@team.ph.inter.net but that address bounces as non-existent.
From: rt.cpan.org [...] plan9.de
[> the way) installing on amd64 in FreeBSD 5.3 with perl 5.8.5 fails Show quoted text
> tests checking the result of the encryption. The cause is that the
Same on linux/amd64, of course. Show quoted text
> The fix is to edit rijndael.h in the source to "unsigned int" as the > UINT32 type. Probably better is to use uint32_t from <sys/types.h> > to be more portable.
Thanks for the hint :)
From: gerard [...] tty.nl
On Fri Jan 07 13:47:44 2005, VKHERA wrote: Show quoted text
> From Crypt-Rijndael-0.05.tar.gz (which still has $VERSION = 0.04 by > the way) installing on amd64 in FreeBSD 5.3 with perl 5.8.5 fails > tests checking the result of the encryption. The cause is that the > code assumes "unsigned long" is 32 bits, whereas it is 64 bits > here. > > The fix is to edit rijndael.h in the source to "unsigned int" as the > UINT32 type. Probably better is to use uint32_t from <sys/types.h> > to be more portable. > > Email to the author at sevillar@team.ph.inter.net but that address > bounces as non-existent.
Patch using <sys/types.h>
Download patch
application/octet-stream 477b

Message body not shown because it is not plain text.

v1.02 now supports 64 bit machines