gm-sm3

Crates.iogm-sm3
lib.rsgm-sm3
version0.10.0
sourcesrc
created_at2023-04-17 02:58:10.165954
updated_at2023-04-17 03:10:32.127406
descriptionA Rust Implementation of China's Standards of Encryption Algorithms SM3
homepagehttps://github.com/CrayfishGo/gm-rs.git
repository
max_upload_size
id841106
size7,429
(CrayfishGo)

documentation

https://docs.rs/gm-sm3/

README

gm-sm3

A Pure Rust High-Performance Implementation of China's Standards of Encryption Algorithms SM3

Example

use crate::sm3_hash;

fn main() {
    let hash = sm3_hash(b"abc");
    let r = hex::encode(hash.as_ref().unwrap());
    assert_eq!("66c7f0f462eeedd9d1f2d46bdc10e4e24167c4875cf2f7a2297da02b8f4ba8e0", r);
}

Commit count: 0

cargo fmt