Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto/objects/objects.txt 格式怎么理解呢?谢谢 #6

Open
ygm521 opened this issue Aug 23, 2019 · 4 comments
Open

crypto/objects/objects.txt 格式怎么理解呢?谢谢 #6

ygm521 opened this issue Aug 23, 2019 · 4 comments

Comments

@ygm521
Copy link

ygm521 commented Aug 23, 2019

像gmssl库添加了如下信息,不知道具体啥意思?麻烦指点,谢谢!

SM2 OIDs

sm-scheme 301 : sm2p256v1
sm-scheme 301 1 : sm2sign
sm-scheme 301 2 : sm2exchange
sm-scheme 301 3 : sm2encrypt
sm-scheme 501 : SM2Sign-with-SM3 : sm2sign-with-sm3
sm-scheme 502 : SM2Sign-with-SHA1 : sm2sign-with-sha1

@mrpre
Copy link
Owner

mrpre commented Aug 23, 2019

./config 时会调用perl处理这个文件,然后生成obj_mac.h文件的宏。sm2p256v1是 "sm-scheme 301" 又是 其他的数字。

@ygm521
Copy link
Author

ygm521 commented Aug 23, 2019

obj_objs[] 数组中成员值为 1125 对应基于SM2算法和SM3算法的签名:
/* OBJ_sm2sign_with_sm3 1 2 156 10197 1 501 */
是怎么通过 1 2 156 10197 1 501 计算的1125?

@wwwlkk
Copy link

wwwlkk commented Sep 16, 2019

现在gmssl和tassl都支持国密tls,你这个项目还会继续维护吗?最初是由于什么原因开发这个项目的?

@ygm521
Copy link
Author

ygm521 commented Sep 17, 2019

@wwwlkk 问的好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants