Computation of the Doppler-broadened scattering kernel and its Legendre moments