示例#1
0
文件: engines.go 项目: postfix/go-ssl
// Package engines provides an interface to the OpenSSL engines api.
// Mostly useful for enabling disabling hardware acceleration afaik.
// See http://www.openssl.org/docs/crypto/engine.html
package engines

/*
#cgo pkg-config: openssl
#include "openssl/engine.h"
*/
import "C"
import "fmt"
import "unsafe"
import "runtime"

var Init int = func() int {
	C.ERR_load_ENGINE_strings()
	return 1
}()

func LoadBuiltinEngines() {
	C.ENGINE_load_builtin_engines()
}
func LoadCryptodev() {
	C.ENGINE_load_cryptodev()
}
func LoadRsax() {
	C.ENGINE_load_rsax()
}
func LoadRdrand() {
	C.ENGINE_load_rdrand()
}
示例#2
0
文件: engine.go 项目: vbatts/gossl
func init() {
	C.ERR_load_ENGINE_strings()
}