Interface SenderContextParams

The parameters used to setup the SenderContext.

interface SenderContextParams {
    ekm?: ArrayBuffer | CryptoKeyPair;
    info?: ArrayBuffer;
    psk?: PreSharedKey;
    recipientPublicKey: CryptoKey;
    senderKey?: CryptoKeyPair | CryptoKey;
}

Hierarchy

  • KeyScheduleParams
    • SenderContextParams

Properties

ekm?: ArrayBuffer | CryptoKeyPair

DO NOT USE. FOR DEBUGGING/TESTING PURPOSES ONLY.

info?: ArrayBuffer

Application supplied information. The maximum length is 128 bytes.

A pre-shared key (PSK) held by both the sender and recipient. The PSK should have at least 32 bytes :and the maxmum length of the PSK is 128 bytes.

recipientPublicKey: CryptoKey

A recipient public key.

senderKey?: CryptoKeyPair | CryptoKey

A sender private key or a key pair for Auth mode.