comparison ChangeLog @ 10129:4c9de4cfa188

sha256: do not artificially restrict buffer length to be < 2^32 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from uint32_t to size_t. * lib/sha256.c (sha256_conclude_ctx): Change type of a local to match.
author Jim Meyering <meyering@redhat.com>
date Mon, 26 May 2008 19:29:50 +0200
parents 92a80b637ea1
children 7581db129a32
comparison
equal deleted inserted replaced
10128:92a80b637ea1 10129:4c9de4cfa188
1 2008-05-26 Jim Meyering <meyering@redhat.com> 1 2008-05-26 Jim Meyering <meyering@redhat.com>
2
3 sha256: do not artificially restrict buffer length to be < 2^32
4 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
5 uint32_t to size_t.
6 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
7 to match.
2 8
3 avoid unaligned access errors, e.g., on sparc 9 avoid unaligned access errors, e.g., on sparc
4 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than 10 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
5 direct access through a possibly-unaligned uint64* pointer. 11 direct access through a possibly-unaligned uint64* pointer.
6 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than 12 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than