Closed thanhpp closed 1 year ago
You need to call openssl.Init()
first to let the package find/load OpenSSL: https://pkg.go.dev/github.com/microsoft/go-crypto-openssl/openssl#Init
The repo doesn't have an example of how to use the module standalone (other than the test code) and it requires manual initialization because it's primarily designed to be used in a fork of the Go toolset as an alternative for standard library crypto.
If you don't mind me asking, what are your plans with this module, rather than using the Go standard library crypto? Just want to get a better sense what people might be using the module for and if it's worth making improvements to usability in standalone situations. 🙂
(For future reference: we're planning to migrate to https://github.com/golang-fips/openssl, which will behave mostly the same as this repo once it's ready. In the future, we'll be helping maintain the project over there as a shared resource rather than here in microsoft/go-crypto-openssl.)
You need to call
openssl.Init()
first to let the package find/load OpenSSL: https://pkg.go.dev/github.com/microsoft/go-crypto-openssl/openssl#InitThe repo doesn't have an example of how to use the module standalone (other than the test code) and it requires manual initialization because it's primarily designed to be used in a fork of the Go toolset as an alternative for standard library crypto.
If you don't mind me asking, what are your plans with this module, rather than using the Go standard library crypto? Just want to get a better sense what people might be using the module for and if it's worth making improvements to usability in standalone situations. slightly_smiling_face
(For future reference: we're planning to migrate to https://github.com/golang-fips/openssl, which will behave mostly the same as this repo once it's ready. In the future, we'll be helping maintain the project over there as a shared resource rather than here in microsoft/go-crypto-openssl.)
Thank you for getting back to me. I found benchmarks of the openssl library written in C with the standard crypto package in the spacemonkeygo/openssl repository. But it is no longer maintained and not compatible with openssl version 3.x. Then I found this library and want to try it if I can improve my application's performance.
My code panic when I try to use the library but I don't know how to fix it. Can someone help?
Go ENV
OpenSSL Version
Example code
Error log