Skip to main content
createECDH - node__crypto.d.ts - Node documentation
function createECDH

Usage in Deno

```typescript import { createECDH } from "node:node__crypto.d.ts"; ```
createECDH(curveName: string): ECDH
Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a predefined curve specified by the `curveName` string. Use [getCurves](../.././node__crypto.d.ts/~/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.

Parameters

curveName: string

Return Type