Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

EncryptedProtocolMessage

EncryptedProtocolMessage: { cipher: string; nonce: string }

Type declaration

  • cipher: string
  • nonce: string

Variables

Const symmetric

symmetric: { decrypt: (key: string, msg: EncryptedProtocolMessage) => Promise<string>; encrypt: (key: string, msg: string) => Promise<EncryptedProtocolMessage> } = ...

Type declaration

Functions

computeDiscoveryKey

  • Parameters

    Returns Promise<DiscoveryKey>

exportKey

  • exportKey(key: CryptoKey): Promise<Key>
  • Parameters

    • key: CryptoKey

    Returns Promise<Key>

generateKey

  • generateKey(): Promise<Key>
  • Returns Promise<Key>

importKey

  • importKey(key: Key | Buffer): Promise<CryptoKey>
  • Parameters

    • key: Key | Buffer

    Returns Promise<CryptoKey>

Generated using TypeDoc