Skip to content

@pqc-sdk/core / KEM_NAMES

Variable: KEM_NAMES

const KEM_NAMES: string[]

Names of the KEM algorithms pqc.encrypt/pqc.decrypt accept, for introspection — e.g. validating a key file holds an encryption key rather than a signing key, without hardcoding the list.

Example

ts
import { KEM_NAMES } from '@pqc-sdk/core';

KEM_NAMES.includes('x-wing'); // true