c/openssl: bignum, rsa

This commit is contained in:
xushiwei
2024-07-31 22:34:13 +08:00
parent 85509c777d
commit 79d8b00b27
4 changed files with 420 additions and 0 deletions

View File

@@ -16,10 +16,22 @@
package openssl
import (
"unsafe"
"github.com/goplus/llgo/c"
)
// -----------------------------------------------------------------------------
const (
LLGoPackage = "link: $(pkg-config --libs openssl); -lssl -lcrypto"
)
//go:linkname Free C.OPENSSL_free
func Free(ptr unsafe.Pointer)
//go:linkname FreeCStr C.OPENSSL_free
func FreeCStr(ptr *c.Char)
// -----------------------------------------------------------------------------