crypto.createECDH(curveName)
使用由 curveName 字符串指定的预定义曲线创建一个椭圆曲线迪菲-赫尔曼(ECDH)密钥交换对象。使用 crypto.getCurves() 可以获取可用曲线名称的列表。在最近的 OpenSSL 版本中,openssl ecparam -list_curves 也会显示每个可用椭圆曲线的名称和描述。
【Creates an Elliptic Curve Diffie-Hellman (ECDH) key exchange object using a
predefined curve specified by the curveName string. Use
crypto.getCurves() to obtain a list of available curve names. On recent
OpenSSL releases, openssl ecparam -list_curves will also display the name
and description of each available elliptic curve.】