get and send diffie functions completed