Class: SalmonNativeTransformer

SalmonNativeTransformer()

Generic Native AES transformer. Extend this with your specific native transformer.

Constructor

new SalmonNativeTransformer()

Source:

Methods

(async) decryptData(srcBuffer, srcOffset, destBuffer, destOffset, count) → {Promise.<number>}

Decrypt the data.
Parameters:
Name Type Description
srcBuffer Uint8Array The source byte array.
srcOffset number The source byte offset.
destBuffer Uint8Array The destination byte array.
destOffset number The destination byte offset.
count number The number of bytes to transform.
Source:
Returns:
The number of bytes transformed.
Type
Promise.<number>

(async) encryptData(srcBuffer, srcOffset, destBuffer, destOffset, count)

Encrypt the data.
Parameters:
Name Type Description
srcBuffer Uint8Array The source byte array.
srcOffset number The source byte offset.
destBuffer Uint8Array The destination byte array.
destOffset number The destination byte offset.
count number The number of bytes to transform.
Source:
Returns:
The number of bytes transformed.

(static) getNativeProxy() → {INativeProxy}

The current proxy used for loading native library.
Source:
Returns:
The proxy.
Type
INativeProxy

(static) setNativeProxy(proxy)

The native proxy to use for loading libraries for different platforms and operating systems.
Parameters:
Name Type Description
proxy INativeProxy The proxy.
Source: