Git Product home page Git Product logo

Comments (5)

InfoHunter avatar InfoHunter commented on May 28, 2024

这些都是内部符号,不需要导出,一般来讲上层app不应该直接使用这些结构体

from tongsuo.

InfoHunter avatar InfoHunter commented on May 28, 2024

你是啥场景需要直接引用这些结构体?

from tongsuo.

victortanjh avatar victortanjh commented on May 28, 2024

好的,感谢。主要是做基于SM2+SM3的签名和验签。因为签名之前,有一个id的hash计算过程,开始没有找到直接的实现接口。
刚刚又看了一遍帮助文档,发现了BabaSSL中封装了EVP_PKEY_CTX_set1_id,应该是这个吧?

from tongsuo.

InfoHunter avatar InfoHunter commented on May 28, 2024

是的,就是这个函数,具体的调用流程可以参考:https://babassl.github.io/manpages/man7/SM2.html

from tongsuo.

zhsnew avatar zhsnew commented on May 28, 2024

EVP_PKEY_meth_new(EVP_PKEY_SM2, flags);
然后调用下述类似函数,可以获取到成员函数的:
EVP_PKEY_meth_get_sign
EVP_PKEY_meth_get_***

from tongsuo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.