Interface ECDH1

A structure that provides the parameters for the CKM_ECDH1_DERIVE and CKM_ECDH1_COFACTOR_DERIVE key derivation mechanisms, where each party contributes one key pair

interface ECDH1 {
    kdf: number;
    publicData: Buffer;
    sharedData?: Buffer;
    type: number;
}

Hierarchy (view full)

Properties

kdf: number

Key derivation function used on the shared secret value

publicData: Buffer

The other party's EC public key

sharedData?: Buffer

Some data shared between the two parties

type: number

Type of crypto param. Uses constants CK_PARAMS_*