Crates.io | gm-sm3 |
lib.rs | gm-sm3 |
version | 0.10.0 |
source | src |
created_at | 2023-04-17 02:58:10.165954 |
updated_at | 2023-04-17 03:10:32.127406 |
description | A Rust Implementation of China's Standards of Encryption Algorithms SM3 |
homepage | https://github.com/CrayfishGo/gm-rs.git |
repository | |
max_upload_size | |
id | 841106 |
size | 7,429 |
A Pure Rust High-Performance Implementation of China's Standards of Encryption Algorithms SM3
use crate::sm3_hash;
fn main() {
let hash = sm3_hash(b"abc");
let r = hex::encode(hash.as_ref().unwrap());
assert_eq!("66c7f0f462eeedd9d1f2d46bdc10e4e24167c4875cf2f7a2297da02b8f4ba8e0", r);
}