All steps of Diffie-Hellman completed and tested

Note that only the functions related to the completion of steps 1 to 7
in the form are implemented. Clear, Save, Reset havent been touched.