#pki #cryptography #hardware-interface #gm

skf-rs

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

9 releases (breaking)

0.7.0 Dec 4, 2024
0.6.0 May 7, 2024
0.5.0 May 6, 2024
0.4.1 Apr 28, 2024
0.1.0 Jan 24, 2024

#273 in Hardware support

Download history 15/week @ 2024-09-23 12/week @ 2024-09-30 1/week @ 2024-10-07 128/week @ 2024-12-02

128 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–5.5MB
~26K SLoC