crypto libraries: use stdalign
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Oct 2011 00:17:47 +0000 (17:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Oct 2011 20:05:42 +0000 (13:05 -0700)
commit2d540c2cb293bff09a2fe1b1bab9d1775d7e2832
treeefb51352db9de14c09de28670fb708f8c5a36ff2
parentbebd93f5da72542b6e867a5fd1e2c524e0fae1c1
crypto libraries: use stdalign

* lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
Do not include <stdlib.h> twice, in md4.c.
(UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
because we are accessing a pointer's bit-pattern, not a size.
* modules/crypto/gc-md4 (Depends-on): Add stdalign.
* modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
* modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
* modules/crypto/sha512: Likewise.
14 files changed:
ChangeLog
lib/md4.c
lib/md5.c
lib/sha1.c
lib/sha256.c
lib/sha512.c
modules/crypto/gc-md4
modules/crypto/gc-md5
modules/crypto/gc-sha1
modules/crypto/md4
modules/crypto/md5
modules/crypto/sha1
modules/crypto/sha256
modules/crypto/sha512