The acceleration of cosmic rays in shock fronts - I | Synapse