update go api

This commit is contained in:
Zhi Guan
2017-05-20 09:04:46 +08:00
parent cb44612ccd
commit 2299b8ff22
4 changed files with 148 additions and 10 deletions

View File

@@ -1,2 +1,24 @@
/* +build cgo */
package gmssl
/*
#include <openssl/otp.h>
*/
import "C"
import (
"errors"
"fmt"
"runtime"
"unsafe"
)
func GetOTPAlgors(aliases bool) []string {
return []string{"sms4-cbc", "aes-128-cbc", "aes-256-cbc"}
}
func GenerateOTPKey() []byte {
}
func GenerateOneTimePassword() string {
}