mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-11 19:06:27 +08:00
25 lines
306 B
Go
25 lines
306 B
Go
/* +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 {
|
|
}
|