Hasher8
Extends:
Hasher for 8 bit blocks
Constructor Summary
| Public Constructor | ||
| public |
constructor(options: Object) |
|
Member Summary
| Public Members | ||
| public |
blockSizeInBytes: number Size of block in bytes |
|
| public |
unitSize: number Size of unit = 1 byte |
|
| Private Members | ||
| private |
blockUnits: number[] Current block (only for speed optimization) |
|
Method Summary
| Public Methods | ||
| public |
process() Process ready blocks |
|
| Protected Methods | ||
| protected |
getStateHash(size: number): string Get hash from state |
|
| protected |
processBlock(M: number[]) Process ready blocks |
|
Public Constructors
public constructor(options: Object) source
Params:
| Name | Type | Attribute | Description |
| options | Object |
|
Public Members
Private Members
Public Methods
Protected Methods
protected getStateHash(size: number): string source
Get hash from state
Params:
| Name | Type | Attribute | Description |
| size | number |
|
Limit hash size (in chunks) |
Return:
| string |
protected processBlock(M: number[]) source
Process ready blocks
Params:
| Name | Type | Attribute | Description |
| M | number[] |
