blob: a362c7ee3694293ec654c33824186b13218fe0b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package main
import "C"
import (
"crypto/rand"
"golang.org/x/crypto/nacl/box"
)
//export GoFn
func GoFn() {
box.GenerateKey(rand.Reader)
return
}
func main() {
}
|