Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: sha512 - Fix byte counter overflow in SHA-512
The current code only increments the upper 64 bits of the SHA-512 byte counter when the number of bytes hashed happens to hit 2^64 exactly. This patch increments the upper 64 bits whenever the lower 64 bits overflows. Signed-off-by: Kent Yoder <[email protected]> Cc: [email protected] Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information