Add and remove call repair.
When repairing files, decrypt output is buffered, and when finished it
calls encrypt, to make sure source file is not modified.