Methods
(static) getEnabledAlgorithms() → {Array.<KEMs.Algorithm>}
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}
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
The different KEM algorithms that can be used. Use KEMs.getEnabledAlgorithms for an array of available algorithms.
Type:
- string