Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "blake2s/blake2s"

Index

Type aliases

Config

Config: object

Configuration for hash function.

Type declaration

SavedState

SavedState: object

Type declaration

Tree

Tree: object

Tree hashing parameters.

Type declaration

Variables

Const BLOCK_SIZE

BLOCK_SIZE: 64 = 64

Const DIGEST_LENGTH

DIGEST_LENGTH: 32 = 32

Const KEY_LENGTH

KEY_LENGTH: 32 = 32

Const MAX_FANOUT

MAX_FANOUT: 255 = 255

Const MAX_LEAF_SIZE

MAX_LEAF_SIZE: number = Math.pow(2, 32) - 1

Const MAX_MAX_DEPTH

MAX_MAX_DEPTH: 255 = 255

Const MAX_NODE_OFFSET

MAX_NODE_OFFSET: number = Math.pow(2, 48) - 1

Const PERSONALIZATION_LENGTH

PERSONALIZATION_LENGTH: 8 = 8

Const SALT_LENGTH

SALT_LENGTH: 8 = 8

Functions

hash

  • hash(data: Uint8Array, digestLength?: number, config?: Config): Uint8Array
  • Parameters

    • data: Uint8Array
    • Default value digestLength: number = DIGEST_LENGTH
    • Optional config: Config

    Returns Uint8Array

Generated using TypeDoc