Crates.io | skf-rs |
lib.rs | skf-rs |
version | 0.6.0 |
source | src |
created_at | 2024-01-24 18:08:25.539928 |
updated_at | 2024-05-07 03:26:10.53779 |
description | Rust wrapper for GM/T 0016-2012(Smart token cryptography application interface specification). |
homepage | |
repository | https://github.com/power4j/skf-rs |
max_upload_size | |
id | 1112694 |
size | 168,361 |
Rust wrapper for GM/T 0016-2012(Smart token cryptography application interface specification).
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));
}
There are several included examples, which help demonstrate the functionality of this library and can help debug software or hardware errors.
To run the examples (or your application build on this library),The vendor library must be installed.The LibLoader
load the library dynamically.