Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 773 Bytes

File metadata and controls

21 lines (12 loc) · 773 Bytes

Variable: AEAD_ChaCha20Poly1305

const AEAD_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

See

HPKE AEAD Identifiers