Skip to main content

encryption/guomi/
mod.rs

1// Copyright (c) 2026 erik <erik@erik.xyz> — https://erik.xyz
2
3//! 国密实现(对应 PHP 版 `Guomi/`):SM3 哈希、SM4-CBC、ZUC-128 流密码、
4//! SM2 非对称加解密,以及不提供实现的 SM1 / SM7 / SM9 占位。
5
6mod sm2;
7mod sm3;
8mod sm4;
9mod zuc;
10
11pub mod unavailable;
12
13pub use sm2::{KeyPairHex, Sm2AsymmetricCipher, Sm2Service};
14pub use sm3::Sm3Hasher;
15pub use sm4::Sm4CbcEncryptor;
16pub use zuc::Zuc128Encryptor;