// 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() }
func init() { C.ERR_load_ENGINE_strings() }