Expand description
对称加密实现(对应 PHP 版 Encryptor/)。
CBC + HMAC(encrypt-then-MAC)一族共用一个泛型实现 cbc_hmac::CbcHmacEncryptor:
AES / Camellia / ARIA / Kuznyechik / Threefish-512 / SM4 只是泛型参数不同,
各自的历史类型名由 cbc_hmac 里的别名保持。
Re-exports§
pub use aes256cbc::Aes256CbcEncryptor;pub use aria256cbc::Aria256CbcEncryptor;pub use camellia256cbc::Camellia256CbcEncryptor;pub use kuznyechikcbc::Kuznyechik256CbcEncryptor;pub use threefish512cbc::Threefish512CbcEncryptor;
Modules§
- cbc_
hmac - CBC + HMAC-SHA256(encrypt-then-MAC,PKCS#7 填充)的唯一实现。
Structs§
- Aes256
GcmEncryptor - AES-256-GCM 加密器。
- Aes256
GcmSiv Encryptor - AES-256-GCM-SIV 加密器。
- ChaCha20
Poly1305 Ietf Encryptor - IETF ChaCha20-Poly1305 加密器。
- Salsa20
Encryptor - Salsa20/20 加密器。
- SodiumX
ChaCha20 Encryptor - XChaCha20-Poly1305 加密器。