/ fm / liveswitch / Sha256
Class: Sha256
fm.liveswitch.Sha256
Table of contents
Constructors
Properties
Methods
Constructors
constructor
+ new Sha256(): Sha256
Returns: Sha256
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:101
Properties
blockSize
• blockSize: number
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:92
buffer
• Private
buffer: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:97
bufferLength
• Private
bufferLength: number= 0
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:98
bytesHashed
• Private
bytesHashed: number= 0
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:99
digestLength
• digestLength: number
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:91
finished
• finished: boolean= false
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:101
state
• Private
state: Int32Array
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:95
temp
• Private
temp: Int32Array
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:96
Methods
_restoreState
▸ _restoreState(from
: Uint32Array, bytesHashed
: number): void
Parameters:
Name | Type |
---|---|
from |
Uint32Array |
bytesHashed |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:223
_saveState
▸ _saveState(out
: Uint32Array): void
Parameters:
Name | Type |
---|---|
out |
Uint32Array |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:216
clean
▸ clean(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:125
digest
▸ digest(): Uint8Array
Returns: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:209
finish
▸ finish(out
: Uint8Array): Sha256
Parameters:
Name | Type |
---|---|
out |
Uint8Array |
Returns: Sha256
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:172
reset
▸ reset(): Sha256
Returns: Sha256
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:109
update
▸ update(data
: Uint8Array, dataLength?
: number): Sha256
Parameters:
Name | Type |
---|---|
data |
Uint8Array |
dataLength |
number |
Returns: Sha256
Defined in: Generated/TypeScript/fm.liveswitch/Sha256.ts:142