gmcrypto_core/lib.rs
1//! Constant-time-designed pure-Rust SM2 / SM3 primitives.
2//!
3//! See the workspace `README.md` for scope, threat model, and the honest
4//! framing of the in-CI `dudect`-based timing-leak regression harness.
5//!
6//! # Crate features
7//!
8//! - `default` — `no_std`, `alloc`-only.
9//! - `std` — opt-in; reserved for future file-I/O wire-format helpers (v0.3+).
10
11#![no_std]
12#![deny(missing_docs)]
13#![doc(html_root_url = "https://docs.rs/gmcrypto-core/0.1.0")]
14
15extern crate alloc;
16
17#[cfg(feature = "std")]
18extern crate std;
19
20pub mod asn1;
21pub mod sm2;
22pub mod sm3;