patch for cipher/sha512.c (u64 numbers)

Christoph Moench-Tegeder cmt at rz.uni-karlsruhe.de
Fri May 9 17:13:26 CEST 2003


## Nelson H. F. Beebe (beebe at math.utah.edu):

> >> HP's cc in ANSI mode truncates these consts to integers (32 bit), so
> >> SHA384 and SHA512 break (MDS test fails).
> That is definitely a compiler error.  The 1989 ISO C Standard has this
> to say on pp. 55--56:

Oh. I really like compiler bugs.

> I made experiments with compilers on 16 different UNIX platforms, and
> found another one where the wrong answer is produced with the LL
> suffix is omitted: IBM AIX 4.2 cc.

Found that one, too.

Regards,
Christoph

-- 
Spare Space




More information about the Gnupg-devel mailing list