Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @stablelib/blake2b

Index

Type aliases

Config: { key?: Uint8Array; personalization?: Uint8Array; salt?: Uint8Array; tree?: Tree }

Configuration for hash function.

Type declaration

  • Optional key?: Uint8Array
  • Optional personalization?: Uint8Array
  • Optional salt?: Uint8Array
  • Optional tree?: Tree
SavedState: { buffer: Uint8Array; bufferLength: number; ctr: Uint32Array; flag: Uint32Array; initialState: Uint32Array; lastNode: boolean; paddedKey: Uint8Array | undefined; state: Uint32Array }

Type declaration

  • buffer: Uint8Array
  • bufferLength: number
  • ctr: Uint32Array
  • flag: Uint32Array
  • initialState: Uint32Array
  • lastNode: boolean
  • paddedKey: Uint8Array | undefined
  • state: Uint32Array
Tree: { fanout: number; innerDigestLength: number; lastNode: boolean; leafSize: number; maxDepth: number; nodeDepth: number; nodeOffsetHighBits: number; nodeOffsetLowBits: number }

Tree hashing parameters.

Type declaration

  • fanout: number
  • innerDigestLength: number
  • lastNode: boolean
  • leafSize: number
  • maxDepth: number
  • nodeDepth: number
  • nodeOffsetHighBits: number
  • nodeOffsetLowBits: number

Variables

BLOCK_SIZE: 128 = 128
DIGEST_LENGTH: 64 = 64
KEY_LENGTH: 64 = 64
MAX_FANOUT: 255 = 255
MAX_LEAF_SIZE: number = ...
MAX_MAX_DEPTH: 255 = 255
PERSONALIZATION_LENGTH: 16 = 16
SALT_LENGTH: 16 = 16

Functions

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

Generated using TypeDoc