A computer-readable recording medium in which is recorded a program for instructing a computer to generate error correction data, which is to be inserted into transmission data at specific insertion intervals, by calculating exclusive-OR of the transmission data, said program instructing the computer to execute the steps of:
- cumulatively calculating exclusive-OR of the transmission data, said calculation being continuously performed independent of the insertion intervals;
- and
- computing exclusive-OR between a calculation of the exclusive-OR obtained at the previous insertion occasion of the error correction data and a calculation of the exclusive-OR obtained at the scheduled time of the current insertion of the error correction data, to generate error correction data to be inserted at the present insertion occasion.