gmcrypto-core 0.1.0

Constant-time-designed pure-Rust SM2/SM3 primitives (no_std + alloc) with an in-CI dudect timing-leak regression harness
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! SM2 elliptic curve cryptography (GB/T 32918-2017).

pub mod curve;
pub mod point;
pub mod private_key;
pub mod public_key;
pub mod scalar_mul;
pub mod sign;
pub mod verify;

pub use curve::{Fn, Fp};
pub use point::ProjectivePoint;
pub use private_key::Sm2PrivateKey;
pub use public_key::Sm2PublicKey;
pub use scalar_mul::{mul_g, mul_var};
pub use sign::{compute_z, sign_raw_with_id, sign_with_id, SignError, DEFAULT_SIGNER_ID};
pub use verify::verify_with_id;