From 7dc6bd90c569c49807462b0740b18e32fab4d8b7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 19 Jul 2011 16:53:43 -0400 Subject: Use union to avoid casts in code to store results of hashsum computations --- ChangeLog | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 2a57fc317b..0932ae59e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2011-07-19 Ulrich Drepper + + * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add + buffer64. + * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead + of casting of buffer. + * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add + buffer32 and buffer64. + * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for + writes instead of casting of buffer. + * crypt/md5.h (struct md5_ctx): Move buffer into union and add + buffer32. + * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of + casting of buffer. + 2011-07-19 Andreas Schwab * string/strxfrm_l.c (STRXFRM): Fix alloca accounting. -- cgit 1.4.1