20 lines
192 B
Go
20 lines
192 B
Go
package main
|
|
|
|
import "C"
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"xdx.jelly/xgcl/sm/sm3"
|
|
)
|
|
|
|
//export Sm3
|
|
func Sm3(in []byte, out []byte) {
|
|
d := sm3.Sum(in)
|
|
copy(out, d[:])
|
|
}
|
|
|
|
func main() {
|
|
fmt.Println("...")
|
|
}
|