Type Definition crypto_secretbox::XChaCha20Poly1305
source · pub type XChaCha20Poly1305 = SecretBox<ChaCha20>;
Available on crate feature
chacha20
only.Expand description
crypto_secretbox
instantiated with the XChaCha20 stream cipher.
NOTE: this is a legacy construction which is missing modern features like additional associated data.
We do not recommend using it in greenfield applications, and instead only
using it for interop with legacy applications which require use of the
crypto_secretbox
construction instantiated with XChaCha20.
For new applications, we recommend using the AEAD_XChaCha20_Poly1305
construction as described in draft-irtf-cfrg-xchacha
. An implementation
of this IETF flavor of XChaCha20Poly1305 can be found in
chacha20poly1305::XChaCha20Poly1305
.