#pki #gm #hardware-interface #cryptography

skf-rs

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

8 releases (5 breaking)

new 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

#225 in Hardware support

Download history 124/week @ 2024-02-12 13/week @ 2024-02-19 28/week @ 2024-02-26 38/week @ 2024-03-11 122/week @ 2024-03-25 69/week @ 2024-04-01 285/week @ 2024-04-22 40/week @ 2024-04-29 313/week @ 2024-05-06

638 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–6.5MB
~27K SLoC