Fixed encryption of the large files 4GB+

Fixed offset calculation.