constAEAD_ChaCha20Poly1305:AEADFactory
ChaCha20-Poly1305 Authenticated Encryption with Associated Data (AEAD).
Uses ChaCha20 stream cipher with Poly1305 MAC.
Depends on the following Web Cryptography algorithms being supported in the runtime:
- ChaCha20-Poly1305 encryption and decryption
This is a factory function that must be passed to the CipherSuite constructor.
Tip
An implementation of this algorithm not reliant on Web Cryptography is also exported by
@panva/hpke-noble