Options
All
  • Public
  • Public/Protected
  • All
Menu

Class X25519KeyAgreement

X25519 key agreement using ephemeral key pairs.

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

Hierarchy

  • X25519KeyAgreement

Implements

  • KeyAgreement

Index

Constructors

constructor

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

Properties

acceptMessageLength

acceptMessageLength: 32 = ACCEPT_MESSAGE_LENGTH

offerMessageLength

offerMessageLength: 32 = OFFER_MESSAGE_LENGTH

savedStateLength

savedStateLength: 32 = SAVED_STATE_LENGTH

sharedKeyLength

sharedKeyLength: 32 = SHARED_KEY_LENGTH

Methods

accept

  • accept(offerMsg: Uint8Array): Uint8Array

clean

  • clean(): void

finish

  • finish(acceptMsg: Uint8Array): this

getSharedKey

  • getSharedKey(): Uint8Array

offer

  • offer(): Uint8Array

restoreState

  • restoreState(savedState: Uint8Array): this

saveState

  • saveState(): Uint8Array

Generated using TypeDoc