According to the source that you cited regarding the first quote, which is CCI paragraph 2834, this is taken from a book that attributes it to St. Ignatius of Loyola. The book was published in 1964 called "The Jesuits: Their Spiritual Doctrine and Practice". Available here http://jesuitsources.bc.edu/the-jesuits-their-spiritual-doctrine-and-practice-a-historical-study/
122 Attributed to St. Ignatius Loyola, cf. Joseph de Guibert, SJ, The Jesuits: Their Spiritual Doctrine and Practice, (Chicago: Loyola University Press, 1964), 148, n. 55.
There is no direct correlation, quote or anything else from St Ignatius. There is many resources available regarding his many writings and guides for prayer and interior life.
Such as the following, just to give an idea....
I have personally read many (not a majority or all) writings and reflections from St Ignatius an those that follow Ignatian Spirituality, and that quote could sum up many of the points and objectives. I feel that it could have been stated by St. Ignatius at some point, but not necessarily written down. That may not have even been what he might have said, but that may have been a paraphrasing that accurately described his message that stuck. It's much easier than remembering the 15 page letter or a 10 minute sermon he had it could have been extrapolated from.
The second quote, I have also seen attributed to St. Ignatius of Loyola and people will often just quote it as whole without a source. Again, I have not seen a direct source in any of the readings I have come across and I have found it had to even find one with direct source. Most sources will refer to Fr John Padberg, who is a an Ignatian Scholar and has written many books. All of his books are written in more modern times (1980 - today). You can find his books on Amazon, and I think in his book "Ignatius of Loyola: Letters and Instructions" is where he first attributes that quote to hi.