Thanks to visit codestin.com
Credit goes to lib.rs

#gm #pki #cryptography

gm-hsm-skf

Rust wrapper for GM/T 0016-2012(Smart token cryptography application interface specification)

2 unstable releases

0.2.0-beta.1 Dec 2, 2025
0.1.1 Nov 25, 2025

#723 in Hardware support

MIT license

245KB
4.5K SLoC

crates.io version badge Documentation

Rust wrapper for GM/T 0016-2012(Smart token cryptography application interface specification).

gm-key

Usage

Listing available device:

use gm_hsm_skf::{Engine, LibLoader};

fn main() {
    let engine = Engine::new(LibLoader::env_lookup().unwrap());
    let manager = engine.device_manager().unwrap();
    let list = manager.enum_device(true).unwrap();
    list.iter().for_each(|name| println!("{}", name));
}

Examples

There are several included examples, which help demonstrate the functionality of this library and can help debug software or hardware errors.

Native Dependencies

To run the examples (or your application build on this library),The vendor library must be installed.The LibLoader load the library dynamically.

Resources

Special Thanks

Dependencies

~0.7–1.2MB
~23K SLoC