Skip to main content

Module cipher

Module cipher 

Source
Expand description

Symmetric ciphers: AES, DES, 3DES.

Re-exports§

pub use aes::Aes;
pub use aes::Aes128;
pub use aes::Aes192;
pub use aes::Aes256;
pub use ccm::AesCcm;
pub use chacha20::ChaCha20;
pub use chacha20poly1305::ChaCha20Poly1305;
pub use des::Des;
pub use des::TripleDes;
pub use poly1305::Poly1305;
pub use xchacha20poly1305::XChaCha20Poly1305;
pub use xts::AesXts;

Modules§

aes
AES (FIPS 197) block cipher — single-block API.
ccm
AES-CCM AEAD (NIST SP 800-38C, RFC 3610).
chacha20
ChaCha20 stream cipher (RFC 8439).
chacha20poly1305
ChaCha20-Poly1305 AEAD (RFC 8439).
ctx
Stateful streaming cipher context (init / update / finalize) with padding, on top of the existing block-cipher and mode primitives.
des
DES (FIPS 46-3) and Triple-DES (3DES / TDEA) block cipher implementations.
modes
Block cipher modes of operation: ECB, CBC, CTR, GCM (NIST SP 800-38A and SP 800-38D for GCM).
poly1305
Poly1305 one-time message authentication code (RFC 8439 §2.5).
xchacha20poly1305
XChaCha20-Poly1305 AEAD (draft-irtf-cfrg-xchacha).
xts
AES-XTS tweakable block cipher (IEEE 1619, NIST SP 800-38E).