Fixed bug where dhE was being used as shared secret.