Skip to content

ECDH

[<Interface>]
type ECDH =
    abstract member computeSecret (otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding) : string
    abstract member computeSecret (otherPublicKey: ArrayBufferView, outputEncoding: BinaryToTextEncoding) : string
    abstract member computeSecret (otherPublicKey: string, inputEncoding: BinaryToTextEncoding) : NonSharedBuffer
    abstract member computeSecret (otherPublicKey: ArrayBufferView) : NonSharedBuffer
    static member inline convertKey (key: ArrayBufferView, curve: string, ?inputEncoding: BinaryToTextEncoding, ?outputEncoding: outputEncoding, ?format: format) : U2<NonSharedBuffer,string>
    static member inline convertKey (key: string, curve: string, ?inputEncoding: BinaryToTextEncoding, ?outputEncoding: outputEncoding, ?format: format) : U2<NonSharedBuffer,string>
    abstract member generateKeys (encoding: BinaryToTextEncoding, ?format: ECDHKeyFormat) : string
    abstract member generateKeys () : NonSharedBuffer
    abstract member getPrivateKey (encoding: BinaryToTextEncoding) : string
    abstract member getPrivateKey () : NonSharedBuffer
    abstract member getPublicKey (encoding: BinaryToTextEncoding, ?format: ECDHKeyFormat) : string
    abstract member getPublicKey (?encoding: obj, ?format: ECDHKeyFormat) : NonSharedBuffer
    abstract member setPrivateKey (privateKey: string, encoding: BinaryToTextEncoding) : unit
    abstract member setPrivateKey (privateKey: ArrayBufferView) : unit
AssemblyGlutinum.Node
Inheritsobj \| null
Attributes[<AllowNullLiteral>] [<Interface>] [<Import>]

Declared inside

convertKey__

Methods

abstract member computeSecret (otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding) : string
abstract member computeSecret (otherPublicKey: ArrayBufferView, outputEncoding: BinaryToTextEncoding) : string
abstract member computeSecret (otherPublicKey: string, inputEncoding: BinaryToTextEncoding) : NonSharedBuffer
abstract member computeSecret (otherPublicKey: ArrayBufferView) : NonSharedBuffer
static member inline convertKey (key: ArrayBufferView, curve: string, ?inputEncoding: BinaryToTextEncoding, ?outputEncoding: outputEncoding, ?format: format) : U2<NonSharedBuffer,string>
static member inline convertKey (key: string, curve: string, ?inputEncoding: BinaryToTextEncoding, ?outputEncoding: outputEncoding, ?format: format) : U2<NonSharedBuffer,string>
abstract member generateKeys (encoding: BinaryToTextEncoding, ?format: ECDHKeyFormat) : string
abstract member generateKeys () : NonSharedBuffer
abstract member getPrivateKey (encoding: BinaryToTextEncoding) : string
abstract member getPrivateKey () : NonSharedBuffer
abstract member getPublicKey (encoding: BinaryToTextEncoding, ?format: ECDHKeyFormat) : string
abstract member getPublicKey (?encoding: obj, ?format: ECDHKeyFormat) : NonSharedBuffer
abstract member setPrivateKey (privateKey: string, encoding: BinaryToTextEncoding) : unit
abstract member setPrivateKey (privateKey: ArrayBufferView) : unit