Options
All
  • Public
  • Public/Protected
  • All
Menu

X25519 key agreement using ephemeral key pairs.

Note that unless this key agreement is combined with an authentication method, such as public key signatures, it's vulnerable to man-in-the-middle attacks.

Hierarchy

  • X25519Session

Implements

  • KeyAgreement

Index

Constructors

  • new X25519Session(secretSeed?: Uint8Array, prng?: RandomSource): X25519Session

Properties

acceptMessageLength: 32 = ACCEPT_MESSAGE_LENGTH
offerMessageLength: 32 = OFFER_MESSAGE_LENGTH
savedStateLength: 32 = SAVED_STATE_LENGTH
sharedKeyLength: 32 = SHARED_KEY_LENGTH

Methods

  • accept(offerMsg: Uint8Array): Uint8Array
  • clean(): void
  • getSharedKey(): Uint8Array
  • offer(): Uint8Array
  • saveState(): Uint8Array

Generated using TypeDoc