2b9e597980
Previously, the loop threw away the calculated hash value, so the finalized hash was only the combined hash from the length plus last byte. Fix this, and also use 32-bit chunks as much as possible to reduce the number of iterations for larger typed data objects. TEST=ci Change-Id: I0c033701232f1a1299356cab0b09079f9f86c026 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/504980 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com>