Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @stablelib/poly1305

Index

Classes

Variables

Functions

Variables

DIGEST_LENGTH: 16 = 16

Functions

  • equal(a: Uint8Array, b: Uint8Array): boolean
  • Returns true if two authenticators are 16-byte long and equal. Uses contant-time comparison to avoid leaking timing information.

    Parameters

    • a: Uint8Array
    • b: Uint8Array

    Returns boolean

  • oneTimeAuth(key: Uint8Array, data: Uint8Array): Uint8Array
  • Returns 16-byte authenticator of data using a one-time 32-byte key.

    Important: key should be used for only one message, it should never repeat.

    Parameters

    • key: Uint8Array
    • data: Uint8Array

    Returns Uint8Array

Generated using TypeDoc