- Preparing search index...
- The search index is not available
bun-types
Function createDiffieHellman
- createDiffieHellman(primeLength: number, generator?: number | ArrayBufferView): "crypto".DiffieHellman
-
Parameters
-
primeLength: number
-
Optional
generator: number | ArrayBufferView
- createDiffieHellman(prime: ArrayBufferView): "crypto".DiffieHellman
-
- createDiffieHellman(prime: string, primeEncoding: "crypto".BinaryToTextEncoding): "crypto".DiffieHellman
-
- createDiffieHellman(prime: string, primeEncoding: "crypto".BinaryToTextEncoding, generator: number | ArrayBufferView): "crypto".DiffieHellman
-
Parameters
-
prime: string
-
-
generator: number | ArrayBufferView
- createDiffieHellman(prime: string, primeEncoding: "crypto".BinaryToTextEncoding, generator: string, generatorEncoding: "crypto".BinaryToTextEncoding): "crypto".DiffieHellman
-
Parameters
-
prime: string
-
-
generator: string
-
- createDiffieHellman(primeLength: number, generator?: number | ArrayBufferView): "crypto".DiffieHellman
-
Parameters
-
primeLength: number
-
Optional
generator: number | ArrayBufferView
- createDiffieHellman(prime: ArrayBufferView): "crypto".DiffieHellman
-
- createDiffieHellman(prime: string, primeEncoding: "crypto".BinaryToTextEncoding): "crypto".DiffieHellman
-
- createDiffieHellman(prime: string, primeEncoding: "crypto".BinaryToTextEncoding, generator: number | ArrayBufferView): "crypto".DiffieHellman
-
Parameters
-
prime: string
-
-
generator: number | ArrayBufferView
- createDiffieHellman(prime: string, primeEncoding: "crypto".BinaryToTextEncoding, generator: string, generatorEncoding: "crypto".BinaryToTextEncoding): "crypto".DiffieHellman
-
Parameters
-
prime: string
-
-
generator: string
-
Creates a
DiffieHellman
key exchange object using the suppliedprime
and an optional specificgenerator
.The
generator
argument can be a number, string, orBuffer
. Ifgenerator
is not specified, the value2
is used.If
primeEncoding
is specified,prime
is expected to be a string; otherwise aBuffer
,TypedArray
, orDataView
is expected.If
generatorEncoding
is specified,generator
is expected to be a string; otherwise a number,Buffer
,TypedArray
, orDataView
is expected.