On the acceleration of energetic particles in the interplanetary medium