crypto: fix bug in large buffer handling
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 May 2012 21:33:54 +0000 (14:33 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 May 2012 21:34:31 +0000 (14:34 -0700)
commitd462d9f08cc8fd534ccae14c878f9c7c18112237
tree91b88c91f4ad4e6c5b6d5c6755d5340a788cad61
parent0403c76938c7f487d303818cd19a72a1b63eb94f
crypto: fix bug in large buffer handling

* lib/sha512.c (sha512_process_block):
Don't assume the buffer length is less than 2**32.
Here, the bug is present only in the rare case where the host does
not support uint64_t; use u64size to work around the problem.
* lib/u64.h (u64size): New macro.
ChangeLog
lib/sha512.c
lib/u64.h