compat with luasec support curve ecdh