DH Generation and eof for Session