This poem is reminiscent of Shakespeare's Sonnet #138, which ends as follows:
11. O! love's best habit is in seeming trust,
12. And age in love, loves not to have years told:
13. Therefore I lie with her, and she with me,
14. And in our faults by lies we flattered be.
The Sonnet deals with lies about the lover's age, but the idea of an amorous relationship based (successfully) on mutal lies may be the inspiration for Dryden's poem. I wonder if this theme is repeated elsewhere in renaissance English poetry?