In this paper, we first construct a one-round Diffie-Hellman key exchange protocol based on Ring-LWE. The security of our construction is based on the hardness of the Ring-LWE problem. Second, we adaptively extend our construction from Ring-LWE to LWE. Finally, we efficiently implement our key exchange protocols based on Ring-LWE and LWE