Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "nacl/box"

Index

Functions

box

  • box(theirPublicKey: Uint8Array, mySecretKey: Uint8Array, nonce: Uint8Array, data: Uint8Array): Uint8Array
  • Parameters

    • theirPublicKey: Uint8Array
    • mySecretKey: Uint8Array
    • nonce: Uint8Array
    • data: Uint8Array

    Returns Uint8Array

openBox

  • openBox(theirPublicKey: Uint8Array, mySecretKey: Uint8Array, nonce: Uint8Array, data: Uint8Array): Uint8Array | null
  • Parameters

    • theirPublicKey: Uint8Array
    • mySecretKey: Uint8Array
    • nonce: Uint8Array
    • data: Uint8Array

    Returns Uint8Array | null

precomputeSharedKey

  • precomputeSharedKey(theirPublicKey: Uint8Array, mySecretKey: Uint8Array): Uint8Array
  • Parameters

    • theirPublicKey: Uint8Array
    • mySecretKey: Uint8Array

    Returns Uint8Array

Generated using TypeDoc