KEMs

KEMs

Source:

Methods

(static) getEnabledAlgorithms() → {Array.<KEMs.Algorithm>}

Source:

Gets an array of KEM algorithms that were enabled at compile-time and are available for use.

Returns:
  • A list of enabled KEM algorithms.
Type
Array.<KEMs.Algorithm>

(static) isAlgorithmEnabled(algorithm) → {boolean}

Source:

Checks if an algorithm was enabled at compile-time and is available for use.

Parameters:
Name Type Description
algorithm KEMs.Algorithm

The algorithm to check.

Throws:

Will throw an error if any argument is invalid.

Type
TypeError
Returns:
  • Whether the algorithm is enabled.
Type
boolean

Type Definitions

Algorithm

Source:

The different KEM algorithms that can be used. Use KEMs.getEnabledAlgorithms for an array of available algorithms.

Type:
  • string