crypto: hash - Fix handling of small unaligned buffers