Giter Site home page Giter Site logo

Comments (1)

ww-rm avatar ww-rm commented on July 29, 2024

应该暂时不计划实现,因为这里并没有规定分组密码的工作模式,文档的测试用例使用的是 CBC,但是 GB/T 17964 规定了很多种工作模式,如果要实现的话必须统一实现,并在构造函数里提供工作模式参数。

但是对于 gmalg 这个库,我只计划实现最基本的国密算法,所以 SM4 只实现了对分组进行加解密,没有实现工作模式,所以 SM9 也只实现了简单一点的序列密钥加密。

如果有需求可以自己扩展 SM4 的某一种工作模式并集成到 SM9 中,并实现对明文的填充,其他需要的功能应该都是实现了的可以直接调用。

from gmalg.

Related Issues (9)

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.