#pki #gm #hardware-interface #cryptography

skf-rs

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

6 releases (3 breaking)

new 0.4.1 Apr 28, 2024
0.4.0 Apr 25, 2024
0.3.1 Apr 25, 2024
0.3.0 Mar 31, 2024
0.1.0 Jan 24, 2024

#256 in Hardware support

Download history 115/week @ 2024-02-10 21/week @ 2024-02-17 27/week @ 2024-02-24 2/week @ 2024-03-02 34/week @ 2024-03-09 4/week @ 2024-03-16 186/week @ 2024-03-30 5/week @ 2024-04-06 175/week @ 2024-04-20

366 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.8–7MB
~27K SLoC