Creating a class to wrap TCPSocket and use openssl to perform a DH exchange/AES encryption