Function: hpkeEncrypt()

hpkeEncrypt(params): Uint8Array

Defined in: crypto.ts:71

HPKE Encrypt Function Encrypts data using Hybrid Public Key Encryption (HPKE) standard https://datatracker.ietf.org/doc/rfc9180/.

Parameters

params

HpkeEncryptParams

The encryption parameters including plain text, encapsulated key, and sender private key.

Returns

Uint8Array

  • The encrypted data.

Function: hpkeEncrypt()

hpkeEncrypt(params): Uint8Array

Defined in: crypto.ts:71

HPKE Encrypt Function Encrypts data using Hybrid Public Key Encryption (HPKE) standard https://datatracker.ietf.org/doc/rfc9180/.

Parameters

params

HpkeEncryptParams

The encryption parameters including plain text, encapsulated key, and sender private key.

Returns

Uint8Array

  • The encrypted data.