Remove alignment constraint from the sha*_read_ctx functions.
authorJim Meyering <meyering@redhat.com>
Thu, 31 Jan 2008 12:51:10 +0000 (13:51 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 31 Jan 2008 13:45:02 +0000 (14:45 +0100)
commit1d6931a643e826cc18cf040a992d23bb5e2af003
tree1271af281d43313213abaecc9a8c033af21ffa80
parentffd3ba280554960db57bd8f949c72463536eab2a
Remove alignment constraint from the sha*_read_ctx functions.

* lib/sha256.c (set_uint32): New function.
(sha256_read_ctx, sha224_read_ctx): Use it.
* lib/sha512.c (set_uint64): New function.
(sha512_read_ctx, sha384_read_ctx): Use it.
* lib/sha256.h: Remove warning about alignment constraint.
* lib/sha512.h: Likewise.
Prompted by similar changes in gnulib's sha1 and md[45] modules.
ChangeLog
lib/sha256.c
lib/sha256.h
lib/sha512.c
lib/sha512.h