Starting with version 4.6, wolfCrypt includes full implementations of the XChaCha stream cipher and the XChaCha20-Poly1305 AEAD. This new AEAD supports messages with 64 bit size and immense 192 bit nonces, removing all practical limitations on size and number of messages within a cryptographic session or context. It is ideal for applications such as VPN transports, particularly when a high degree of portability is paramount.
wolfCrypt can process fully authenticated sequences of AEAD messages using a simple one-shot API, via
wc_XChaCha20Poly1305_Init() can be called directly to set up the underlying cipher for incremental processing by the existing ChaCha20 and Poly1305 interfaces.
For more information about using wolfSSL or wolfCrypt, or for questions about using wolfSSL in your project, contact us at email@example.com. wolfSSL includes support for TLS 1.3, FIPS 140-2/140-3, DO-178, and more.