Fixed bug in update and finalize handlers for encrypt using accumulator command.