A fully established HPKE channel.

This channel can be used to seal and open messages between the two sides of the channel.

See UnidirectionalSenderChannel.establishBidirectionalChannel. See UnidirectionalRecipientChannel.establishBidirectionalChannel.

Properties

checkCode: HpkeCheckCode

Get the CheckCode which uniquely identifies this EstablishedHpkeChannel.

This check code can be used to verify and confirm that both sides of the session are indeed using the same shared secret.

Get our Curve25519PublicKey.

This public key needs to be sent to the other side so that it can complete the HPKE channel establishment.

Methods

  • Returns void

  • Returns void

  • Decrypt the given message using this HPKE channel.

    Parameters

    • message: string
    • aad: Uint8Array

    Returns string

  • Encrypt the given plaintext using this HPKE channel.

    Parameters

    • message: string
    • aad: Uint8Array

    Returns string