Comments (3)
发现了里面的c3和c2部分还有asn头,c3部分是0420,c2部分是04xx。
又有新问题了,现在加密结果和全大端序格式的芯片不能互相加解密,只能各自解各自的,而这个芯片可以和其它厂商芯片互通。尝试对硬件密文4字节和8字节还有整个c123端序翻转,还是无法软仿解密它
from gmssl.
BER/DER不都是TLV结构吗?你要解析ASN1密文应该调用本库的sm9_ciphertext_from_der方法吧。
from gmssl.
BER/DER不都是TLV结构吗?你要解析ASN1密文应该调用本库的sm9_ciphertext_from_der方法吧。
十分感谢,才发现我应该用sm9_do_encrypt就没有asn头了
from gmssl.
Related Issues (20)
- sm2验签返回-1该如何排错 HOT 2
- unknown OID was met when running cmsparse HOT 6
- GmSSL 3.1.1 命令行未提供sm4 xts支持 HOT 1
- gmssl ecparam -out device.key -name SM2 -genkey 更新为V3版本之后可以用那个命令替代? HOT 2
- 配合SoftSDF编译失败问题,提示-fPIC地址重定位问题
- 命令行下如何实现X509证书格式转换
- 按照国密sm9官方参数文档里的值来计算加密里的hmac的C3结果是不一致的 HOT 20
- sm3 对文件目录摘要,目录内容发生变法后。摘要未变化 HOT 5
- 我能否为sm9加解密增加一个分组模式,再加一个mac计算选择功能 HOT 3
- SM4 cbc performance issue HOT 3
- windows下编译GmSSL报错
- when I use gmssl and curl in my project. sm3's result is different with only use gmssl in my project. why ?
- 在windows下使用源码编译nginx
- gmssl certgen reqgen: illegal option '-days'
- vs2015编译各种报错未声明标识符,vs2022正常,怎么解决
- GmSSL 3 如何通过配置文件方式生成p10格式请求证书,因为主题信息有自定义的部分
- 保存公钥到本地der文件
- 如何移植到Android源码中,有没有什么步骤
- 报错:CMake Error at CMakeLists.txt,有没有同学遇到,知道怎么解决么?
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 gmssl.