Skip to main content

gmssl_rs/
lib.rs

1// gmssl: Safe, idiomatic Rust wrapper for the GmSSL cryptographic library
2//
3// Provides RAII-based types for SM3 (hash), SM4 (block cipher), SM2 (public key),
4// SM9 (identity-based), X.509 (certificates), and ZUC (stream cipher).
5
6pub mod error;
7pub mod pem_helpers;
8pub mod rand;
9pub mod sm2;
10pub mod sm3;
11pub mod sm4;
12pub mod sm9;
13pub mod x509;
14pub mod zuc;
15
16// Re-exports for convenience
17pub use error::GmsslError;
18pub use rand::rand_bytes;
19pub use sm2::{Sm2Key, Sm2Signer, Sm2Verifier};
20pub use sm3::{Sm3, Sm3Hmac};
21pub use sm4::{Sm4Cbc, Sm4Ctr, Sm4Gcm, Sm4Key};
22pub use sm9::{Sm9EncKey, Sm9EncMasterKey, Sm9SignKey, Sm9SignMasterKey};
23pub use x509::{X509Cert, X509CertChain};
24pub use zuc::Zuc;