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

C语言怎么把将Hex格式密钥转换为PEM格式密钥(sm2p256v1) #2

Open
ZH-YL opened this issue Apr 18, 2022 · 1 comment
Open

Comments

@ZH-YL
Copy link

ZH-YL commented Apr 18, 2022

您好! 我目前在实现SM2解密功能。想跟您请教一下,C语言怎么将Hex格式密钥转换为PEM格式密钥(sm2p256v1)呢 ?

@cbanor
Copy link
Owner

cbanor commented Apr 19, 2022

可以用手动暴力拼装:拿任意 sm2p255v1 的pem密钥,直接替换原有的 私钥及公钥部分。他们的位置和长度都是固定的

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

2 participants