Comments (1)
应该暂时不计划实现,因为这里并没有规定分组密码的工作模式,文档的测试用例使用的是 CBC,但是 GB/T 17964
规定了很多种工作模式,如果要实现的话必须统一实现,并在构造函数里提供工作模式参数。
但是对于 gmalg 这个库,我只计划实现最基本的国密算法,所以 SM4 只实现了对分组进行加解密,没有实现工作模式,所以 SM9 也只实现了简单一点的序列密钥加密。
如果有需求可以自己扩展 SM4 的某一种工作模式并集成到 SM9 中,并实现对明文的填充,其他需要的功能应该都是实现了的可以直接调用。
from gmalg.
Related Issues (9)
- sm2的实现有两个问题 HOT 17
- SM2由私钥计算公钥的实现不对 HOT 3
- SM2解密相关 HOT 1
- SM9密文顺序问题 HOT 8
- SM2密钥交换 HOT 1
- sm2密钥交换问题
- sm2私钥计算公钥问题 HOT 2
- 当SM9签名和验签分开在不同请求时,验签失败,请问是什么原因呢? HOT 1
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 gmalg.