Methods
(async, static) aes_webgpu_transform_ctr(expandedKey, counter, srcBuffer, srcOffset, destBuffer, destOffset, count)
Transform the data using AES-256 CTR mode.
Parameters:
| Name | Type | Description |
|---|---|---|
expandedKey |
The expanded AES-256 key (240 bytes), see aes_key_expand() | |
counter |
The counter. | |
srcBuffer |
The source array to transform. | |
srcOffset |
The source offset. | |
destBuffer |
The source array to transform. | |
destOffset |
The destination offset | |
count |
The number of bytes to transform |
Returns:
The number of bytes transformed.
(async, static) init_webgpu()
Initializes web gpu
(async, static) isSupported() → {boolean}
Checks support of gpu in browser
Returns:
True if browser supports WebGPU
- Type
- boolean