Crate ciphern

Crate ciphern 

Source
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§

hardware
random

Macros§

impl_cipher_provider
Macro to implement common provider functionality

Structs§

Argon2id
Button
Cipher
High-level Cipher API
FipsContext
FIPS 上下文管理器
FormField
Hasher
High-level Hashing API
Hkdf
Hmac
High-level MAC API
Key
密钥结构,包含完整的生命周期信息
KeyManager
增强的密钥管理器,支持完整的生命周期管理
Label
LocalizedMessage
MenuItem
Notification
Pbkdf2
Signer
High-level Digital Signature API
Sm3Kdf
SM3 密钥派生函数 (KDF) 实现
TranslationService
UIElement

Enums§

Algorithm
CryptoError
FipsError
FIPS 错误状态
FipsMode
FIPS 模式状态
I18nError
KeyState
密钥状态枚举

Traits§

LocalizedError

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

Type Aliases§

Result