Class: WebGPU

WebGPU()

Utility class for platform specifics.

Constructor

new WebGPU()

Source:

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
Source:
Returns:
The number of bytes transformed.

(async, static) init_webgpu()

Initializes web gpu
Source:

(async, static) isSupported() → {boolean}

Checks support of gpu in browser
Source:
Returns:
True if browser supports WebGPU
Type
boolean