Module: js

Wrapper for enums

Source:

Requires

Methods

getName() → {string}

Get the name of the enum entry

Source:
Returns:

The name string

Type
string

getValue() → {Number}

Get the integer value of the enum entry

Source:
Returns:

The integer value

Type
Number

read(input)

Read an enum entry

Parameters:
Name Type Description
input Uint8Array

Where to read the symmetric algo from

Source:

write() → {Uint8Array}

Write an enum as an integer

Source:
Returns:

An integer representing the algorithm

Type
Uint8Array