Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V-sm3

A SM3 hash function for vlang.

Env

  • vlang >= 0.5.2

Adding v-sm3 as a dependency

Add the dependency to your project:

v install deatil.sm3

or

v install --git https://github.com/deatil/v-sm3

The v-sm3 structure can be imported in your application with:

import deatil.sm3

Get Starting

module main

import deatil.sm3

fn main() {
    mut d := sm3.new()
    d.write("abc".bytes()) or { panic(err) }
    out := d.sum([])
    
    // output: 66c7f0f462eeedd9d1f2d46bdc10e4e24167c4875cf2f7a2297da02b8f4ba8e0
    println("output: ${out.hex()}")
}

LICENSE

  • The library LICENSE is Apache2, using the library need keep the LICENSE.

Copyright

About

A SM3 hash function for vlang.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Contributors

Languages