diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-10-16 17:17:47 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-10-27 13:05:42 -0700 |
commit | 2d540c2cb293bff09a2fe1b1bab9d1775d7e2832 (patch) | |
tree | efb51352db9de14c09de28670fb708f8c5a36ff2 /modules/crypto | |
parent | bebd93f5da72542b6e867a5fd1e2c524e0fae1c1 (diff) | |
download | gnulib-2d540c2cb293bff09a2fe1b1bab9d1775d7e2832.tar.gz |
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.
Diffstat (limited to 'modules/crypto')
-rw-r--r-- | modules/crypto/gc-md4 | 1 | ||||
-rw-r--r-- | modules/crypto/gc-md5 | 1 | ||||
-rw-r--r-- | modules/crypto/gc-sha1 | 1 | ||||
-rw-r--r-- | modules/crypto/md4 | 1 | ||||
-rw-r--r-- | modules/crypto/md5 | 1 | ||||
-rw-r--r-- | modules/crypto/sha1 | 1 | ||||
-rw-r--r-- | modules/crypto/sha256 | 1 | ||||
-rw-r--r-- | modules/crypto/sha512 | 1 |
8 files changed, 8 insertions, 0 deletions
diff --git a/modules/crypto/gc-md4 b/modules/crypto/gc-md4 index cdc600590b..e527db5897 100644 --- a/modules/crypto/gc-md4 +++ b/modules/crypto/gc-md4 @@ -8,6 +8,7 @@ lib/md4.c m4/md4.m4 Depends-on: +stdalign stdint crypto/gc diff --git a/modules/crypto/gc-md5 b/modules/crypto/gc-md5 index a1075b8693..efa1c1832e 100644 --- a/modules/crypto/gc-md5 +++ b/modules/crypto/gc-md5 @@ -8,6 +8,7 @@ lib/md5.c m4/md5.m4 Depends-on: +stdalign stdint crypto/gc diff --git a/modules/crypto/gc-sha1 b/modules/crypto/gc-sha1 index b9efddaad7..4ee0a221f8 100644 --- a/modules/crypto/gc-sha1 +++ b/modules/crypto/gc-sha1 @@ -8,6 +8,7 @@ lib/sha1.c m4/sha1.m4 Depends-on: +stdalign stdint crypto/gc diff --git a/modules/crypto/md4 b/modules/crypto/md4 index 0a4d061698..e0b2b0443a 100644 --- a/modules/crypto/md4 +++ b/modules/crypto/md4 @@ -7,6 +7,7 @@ lib/md4.c m4/md4.m4 Depends-on: +stdalign stdint configure.ac: diff --git a/modules/crypto/md5 b/modules/crypto/md5 index 8cad978273..4ae0c57faa 100644 --- a/modules/crypto/md5 +++ b/modules/crypto/md5 @@ -7,6 +7,7 @@ lib/md5.c m4/md5.m4 Depends-on: +stdalign stdint configure.ac: diff --git a/modules/crypto/sha1 b/modules/crypto/sha1 index 2a347b0b38..8d00f312b6 100644 --- a/modules/crypto/sha1 +++ b/modules/crypto/sha1 @@ -7,6 +7,7 @@ lib/sha1.c m4/sha1.m4 Depends-on: +stdalign stdint configure.ac: diff --git a/modules/crypto/sha256 b/modules/crypto/sha256 index a5732bd83b..f3f1d6460d 100644 --- a/modules/crypto/sha256 +++ b/modules/crypto/sha256 @@ -7,6 +7,7 @@ lib/sha256.c m4/sha256.m4 Depends-on: +stdalign stdint configure.ac: diff --git a/modules/crypto/sha512 b/modules/crypto/sha512 index 9d871d46df..a5065c4563 100644 --- a/modules/crypto/sha512 +++ b/modules/crypto/sha512 @@ -7,6 +7,7 @@ lib/sha512.c m4/sha512.m4 Depends-on: +stdalign stdint u64 |