mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-10 07:53:57 +08:00
update go api
This commit is contained in:
21
go/gmssl/pbkdf.go
Normal file
21
go/gmssl/pbkdf.go
Normal file
@@ -0,0 +1,21 @@
|
||||
/* +build cgo */
|
||||
package gmssl
|
||||
|
||||
/*
|
||||
#include <openssl/evp.h>
|
||||
*/
|
||||
import "C"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
func GetKeyDeriveFunctions(aliases bool) []string {
|
||||
return []string{"PBKDF2v1", "PBKDFv2", "scrypt"}
|
||||
}
|
||||
|
||||
func DeriveKeyFromPassword(scheme string, args map[string]string, password string, salt []byte) ([]byte, error) {
|
||||
return nil, errors.New("Not implemented")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user