Comments (5)
这些都是内部符号,不需要导出,一般来讲上层app不应该直接使用这些结构体
from tongsuo.
你是啥场景需要直接引用这些结构体?
from tongsuo.
好的,感谢。主要是做基于SM2+SM3的签名和验签。因为签名之前,有一个id的hash计算过程,开始没有找到直接的实现接口。
刚刚又看了一遍帮助文档,发现了BabaSSL中封装了EVP_PKEY_CTX_set1_id,应该是这个吧?
from tongsuo.
是的,就是这个函数,具体的调用流程可以参考:https://babassl.github.io/manpages/man7/SM2.html
from tongsuo.
EVP_PKEY_meth_new(EVP_PKEY_SM2, flags);
然后调用下述类似函数,可以获取到成员函数的:
EVP_PKEY_meth_get_sign
EVP_PKEY_meth_get_***
from tongsuo.
Related Issues (20)
- Legacy X25519 PKEY fails in SSL handshake for parameter "group" HOT 4
- pkey_ecx_keygen issue HOT 1
- centos 7.9 编译Tongsuo-8.3.3报错:include/crypto/sm4.h:53:48: error: missing binary operator before token "(" HOT 2
- 集群通信加密的话该如何配置证书?
- 与angie集成问题 HOT 1
- engine实现了ec_key_meth,但ntls连接时未使用engine的ec签名方法
- verify client.crt by ca.crt failed HOT 1
- SM4硬件加速的验证方法 HOT 7
- 8.4-stable最新代码 windows编译加上 --symbol-prefix=BABA_ 报错 libcrypto.def : error LNK2001: 无法解析的外部符号 BABA_ACCESS_DESCRIPTION_free HOT 1
- Tongsuo支持StrongSwan实现国密IPSec协议吗? HOT 1
- tongsuo是否支持QUIC? HOT 4
- 双向认证时,未发送客户端证书,但是在代码中调用SSL_do_handshake依然返回了成功,如何能判断是否真的成功? HOT 2
- 提高Tongsuo和OpenSSL的兼容性 HOT 2
- tongsuo签名结果与openssl签名结果不互通 HOT 5
- 密码卡适配Tongsuo 8.4 Engine,有适配Tongsuo 8.4 Engine的相关例子代码吗?
- SSL_enable_ntls后无法在client_hello_cb 或 server_name_cb中设置新的SSL CTX HOT 2
- 支持配置证书预压缩功能? HOT 5
- 缺乏ALPN的支持。
- 请问对称加密是否考虑支持 sm4-gcm HOT 2
- sm2 failure and Legacy X25519 PKEY fails in SSL handshake HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tongsuo.