Home Reference Source Test
import Hasher32le from 'crypto-api/src/hasher/hasher32le.mjs'
public interface | source

Hasher32le

Extends:

src/hasher/hasher.js~Hasher → Hasher32le

Hasher for 32 bit little endian blocks

Constructor Summary

Public Constructor
public

constructor(options: Object)

Member Summary

Private Members
private

blockUnits: number[]

Current block (only for speed optimization)

Method Summary

Protected Methods
protected

Add to message cumulative size of message in bits

protected

getStateHash(size: number): string

Get hash from state

protected

Process ready blocks

protected

processBlock(M: number[])

Process ready blocks

Public Constructors

public constructor(options: Object) source

Params:

NameTypeAttributeDescription
options Object
  • optional

Private Members

private blockUnits: number[] source

Current block (only for speed optimization)

Protected Methods

protected addLengthBits() source

Add to message cumulative size of message in bits

protected getStateHash(size: number): string source

Get hash from state

Params:

NameTypeAttributeDescription
size number
  • optional
  • default: this.state.hash.length

Limit hash size (in chunks)

Return:

string

protected process() source

Process ready blocks

protected processBlock(M: number[]) source

Process ready blocks

Params:

NameTypeAttributeDescription
M number[]