Expand description
Ciphern 加密库
企业级、安全优先的 Rust 加密库。
Re-exports§
pub use random::detect_hardware_rng;pub use random::hardware_fill_bytes;pub use random::is_rdseed_available;pub use random::rdseed_fill_bytes;pub use random::BulkHardwareRng;pub use random::SeedGenerator;pub use random::is_hardware_rng_available;pub use random::EntropySource;pub use random::HardwareRng;pub use random::SecureRandom;
Modules§
Macros§
- impl_
cipher_ provider - Macro to implement common provider functionality
Structs§
- Argon2id
- Button
- Cipher
- High-level Cipher API
- Fips
Context - FIPS 上下文管理器
- Form
Field - Hasher
- High-level Hashing API
- Hkdf
- Hmac
- High-level MAC API
- Key
- 密钥结构,包含完整的生命周期信息
- KeyManager
- 增强的密钥管理器,支持完整的生命周期管理
- Label
- Localized
Message - Menu
Item - Notification
- Pbkdf2
- Signer
- High-level Digital Signature API
- Sm3Kdf
- SM3 密钥派生函数 (KDF) 实现
- Translation
Service - UIElement
Enums§
Traits§
Functions§
- accelerated_
aes_ decrypt_ cpu - accelerated_
aes_ encrypt_ cpu - accelerated_
batch_ aes_ decrypt_ cpu - accelerated_
batch_ aes_ encrypt_ cpu - accelerated_
batch_ hash_ cpu - accelerated_
batch_ sm4_ cpu - accelerated_
hash_ cpu - accelerated_
sm4_ decrypt_ cpu - accelerated_
sm4_ encrypt_ cpu - get_
cpu_ capabilities - get_
fips_ approved_ algorithms - 获取 FIPS 批准的算法列表
- get_
hardware_ info - Get the hardware acceleration status
- get_
locale - get_
localized_ error - get_
localized_ message - get_
localized_ title - get_
supported_ locales - has_
aes_ ni - Check if AES-NI is available
- has_
avx2 - Check if AVX2 is available
- has_
sha_ ni - Check if SHA-NI is available
- init
- Initialize the library (e.g., FIPS self-tests)
- is_
fips_ enabled - 检查是否启用 FIPS 模式
- is_
hardware_ acceleration_ available - is_
locale_ supported - reset_
for_ testing - set_
locale - translate
- translate_
safe - translate_
with_ args