Local variables remain and offset cannot be larger than the size of
input array, so they can be 4-byte integers.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
If the input data has an odd number of elements, the last 4-byte
element has to be padded by 4-byte structure of zeros.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
The aim of the hash function is to verify consistency of the binary data
written in the snapshots.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>