SM9
Pure Rust implementation of the SM9 identity-based cryptographic algorithms as defined in the Chinese national standard GM/T 0044-2016 as well as ISO/IEC 11770.
Usage
Add the sm9 crate to your dependencies in Cargo.toml
[]
= "0.2.3"
Examples
(See encryption.rs for the full example.)
use *;
let usr_id = b"Bob";
let txt = b"Chinese IBE standard";
let m = encrypt;
println!;
let msg = decrypt.expect;
println!;
assert_eq!;
assert_eq!;
(See signature.rs for the full example.)
use *;
let m = b"Chinese IBS standard";
let user_id = b"Alice";
let sig = sign;
println!;
println!;
assert!;
License
Licensed under either of
at your option.
Copyright 2023 John-Yu.
Authors
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.