#pki #cryptography #hardware-interface #gm

skf-rs

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

8 releases (5 breaking)

0.6.0 May 7, 2024
0.5.0 May 6, 2024
0.4.1 Apr 28, 2024
0.3.1 Apr 25, 2024
0.1.0 Jan 24, 2024

#450 in Hardware support

Download history 1/week @ 2024-09-17 15/week @ 2024-09-24 11/week @ 2024-10-01 1/week @ 2024-10-08

514 downloads per month

MIT license

190KB
3.5K SLoC

crates.io version badge Documentation

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

Usage

Listing available device:

use skf_rs::{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–5.5MB
~25K SLoC