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

Hasher32be

Extends:

src/hasher/hasher.js~Hasher → Hasher32be

Hasher for 32 bit big endian blocks

Constructor Summary

Public Constructor
public

constructor(options: Object)

Member Summary

Public Members
public

unitOrder: number

Reverse order of bytes

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

Public Members

public unitOrder: number source

Reverse order of bytes

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[]