skf-rs

Crates.ioskf-rs
lib.rsskf-rs
version0.6.0
sourcesrc
created_at2024-01-24 18:08:25.539928
updated_at2024-05-07 03:26:10.53779
descriptionRust wrapper for GM/T 0016-2012(Smart token cryptography application interface specification).
homepage
repositoryhttps://github.com/power4j/skf-rs
max_upload_size
id1112694
size168,361
cj (John-Chan)

documentation

https://docs.rs/skf-sys

README

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

Commit count: 82

cargo fmt