function c = GF2CCSE(g,u)
	
	N_minus_K = numel(g)-1;
	K = numel(u);
	N = K + N_minus_K;
	r = [u,zeros(1,N_minus_K)];
	for k = 1:K
		if r(k)
			r(k+(0:N_minus_K)) = mod(r(k+(0:N_minus_K))+g,2);
		end
	end
	c = [u,r(K+1:N)];
