encryption-rust 1.2.0

可插拔密码学组件库的 Rust 实现:在统一契约下提供对称加密、非对称加密、哈希、密钥派生(HKDF / PBKDF2 / Argon2 / scrypt)、签名(SM2 / ECDSA / Ed25519)、密钥协商(ECDH / X25519)与后量子密钥封装(ML-KEM),包含 AES/Sodium 与国密 SM2/SM3/SM4/ZUC 等实现
Documentation
// Copyright (c) 2026 erik <erik@erik.xyz> — https://erik.xyz

//! 对称加密实现(对应 PHP 版 `Encryptor/`)。

mod aes256cbc;
mod aes256gcm;
mod aes256gcm_siv;
mod aria256cbc;
mod camellia256cbc;
mod chacha20poly1305_ietf;
mod kuznyechikcbc;
mod salsa20;
mod sodium_xchacha20;
mod threefish512cbc;

pub use aes256cbc::Aes256CbcEncryptor;
pub use aes256gcm::Aes256GcmEncryptor;
pub use aes256gcm_siv::Aes256GcmSivEncryptor;
pub use aria256cbc::Aria256CbcEncryptor;
pub use camellia256cbc::Camellia256CbcEncryptor;
pub use chacha20poly1305_ietf::ChaCha20Poly1305IetfEncryptor;
pub use kuznyechikcbc::Kuznyechik256CbcEncryptor;
pub use salsa20::Salsa20Encryptor;
pub use sodium_xchacha20::SodiumXChaCha20Encryptor;
pub use threefish512cbc::Threefish512CbcEncryptor;