Trent: a righteousness infused into the soul, not imputed
For Trent, the single formal cause of justification is “the justice of God, not that whereby he himself is just, but that whereby he maketh us just”: a righteousness that God pours into the soul and that remains inherent in it. It is called ours because it is in us, though Trent specifies that it is God's. Therefore it condemns anyone who says that we are justified by the sole imputation of the righteousness of Christ.
This inward righteousness is what makes possible the merit of good works. The Reformed answer is imputation.