Update checksum calulation during encryption