Diffusive propagation of fast particles in the presence of a moving shock wave