gm-hsm-skf

Crates.iogm-hsm-skf
lib.rsgm-hsm-skf
version0.2.0-beta.1
created_at2025-11-25 11:33:05.90932+00
updated_at2025-12-02 03:13:46.711559+00
descriptionRust wrapper for GM/T 0016-2012(Smart token cryptography application interface specification).
homepage
repositoryhttps://github.com/power4j/gm-hsm
max_upload_size
id1949603
size148,741
cj (John-Chan)

documentation

https://docs.rs/gm-hsm-skf

README

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

Commit count: 0

cargo fmt