From dd8398a3c642b1397f64e338d2b0008e33790dec Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 15 Oct 2006 06:17:45 +0000 Subject: [m4/ChangeLog] * sha512.m4 (gl_SHA512): Add u64.h to AC_LIBSOURCES. [lib/ChangeLog] Port sha512sum to hosts where uintmax_t is only 32 bits, e.g., HP/Tandom NonStop OSS circa 2005 has 32-bit uintmax_t, 64-bit intmax_t. * u64.h: New file. * sha512.c (SWAP, sha512_init_ctx, sha384_init_ctx, sha512_read_ctx): (sha384_read_ctx, sha512_conclude_ctx, sha512_process_bytes): (sha512_round_constants, F2, F1, sha512_process_block): (S0, S1, SS0, SS1, M, R): Rewrite to use u64.h instead of assuming uint64_t. * sha512.h: Include u64.h rather than stdint.h. (rol64): Remove; moved to u64.h and renamed to u64rol. --- m4/ChangeLog | 4 ++++ m4/sha512.m4 | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'm4') diff --git a/m4/ChangeLog b/m4/ChangeLog index c1df1b7c9..bea697cc6 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2006-10-14 Paul Eggert + + * sha512.m4 (gl_SHA512): Add u64.h to AC_LIBSOURCES. + 2006-10-12 Jim Meyering * jm-macros.m4 (coreutils_MACROS): Rename from gl_MACROS, now that diff --git a/m4/sha512.m4 b/m4/sha512.m4 index b747c9799..2de0b2ebd 100644 --- a/m4/sha512.m4 +++ b/m4/sha512.m4 @@ -1,12 +1,12 @@ -# sha512.m4 serial 1 -dnl Copyright (C) 2005 Free Software Foundation, Inc. +# sha512.m4 serial 2 +dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_SHA512], [ - AC_LIBSOURCES([sha512.c, sha512.h]) + AC_LIBSOURCES([sha512.c, sha512.h, u64.h]) AC_LIBOBJ([sha512]) dnl Prerequisites of lib/sha512.c. -- cgit v1.2.3-70-g09d2