Section 7. Thus the Law is a kind of mirror.
As in a mirror we discover any stains upon our face, so in the Law we behold, first, our impotence; then, in consequence of it, our iniquity; and, finally, the curse, as the consequence of both...
Section 8. When the Law discloses our guilt, we should not despond, but flee to the mercy of God.
How this may be done.
But while the unrighteousness and condemnation of all are attested by the law, it does not follow (if we make the proper use of it) that we are immediately to give up all hope and rush headlong on despair. No doubt, it has some such effect upon the reprobate, but this is owing to their obstinacy. With the children of God the effect is different. The Apostle testifies that the law pronounces its sentence of condemnation in order "that every mouth may be stopped, and all the world may become guilty before God," (Rom 3: 19). In another place, however, the same Apostle declares, that "God has concluded them all in unbelief;" not that he might destroy all, or allow all to perish, but that "he might have mercy upon all," (Rom 11:32): in other words, that divesting themselves of an absurd opinion of their own virtue, they may perceive how they are wholly dependent on the hand of God; that feeling how naked and destitute they are, they may take refuge in his mercy, rely upon it, and cover themselves up entirely with it; renouncing all righteousness and merit, and clinging to mercy alone, as offered in Christ to all who long and look for it in true faith. In the precepts of the law, God is seen as the rewarder only of perfect righteousness, (a righteousness of which all are destitute), and, on the other hand, as the stern avenger of wickedness. But in Christ his countenance beams forth full of grace and gentleness towards poor unworthy sinners.
John Calvin. Institutes of the Christian Religion, Book 2.7.7 & 8