KEMFactory = () =>
Readonly<KEM>
Factory function that returns a KEM implementation.
The following Web Cryptography-based implementations are exported by this module:
Traditional:
- DHKEM(P-256, HKDF-SHA256)
- DHKEM(P-384, HKDF-SHA384)
- DHKEM(P-521, HKDF-SHA512)
- DHKEM(X25519, HKDF-SHA256)
- DHKEM(X448, HKDF-SHA512)
Post-quantum/Traditional (PQ/T Hybrid):
Post-quantum (PQ):
Tip
CipherSuite is not limited to using only these exported KEM implementations. Any function
returning an object conforming to the KEM interface can be used. Such implementations not
reliant on Web Cryptography are exported by
@panva/hpke-noble
Readonly<KEM>