Coder Social home page Coder Social logo

Comments (3)

lpilp avatar lpilp commented on June 12, 2024

https://github.com/JuneAndGreen/sm-crypto 这个的挺好

from gmssl.

Rendtime avatar Rendtime commented on June 12, 2024

https://github.com/JuneAndGreen/sm-crypto 这个的挺好

谢谢,我试过这个,但是和C++的结果不一致,我需要C++和JS的算法结果具有一致性。不晓得是不是我姿势不对

from gmssl.

lpilp avatar lpilp commented on June 12, 2024

算法是一样的,就是最后的结果的表达式不一样而已, 如签名的结果是 r,s , 有些项目返回的是 asn1(r,s ) ,有些是返回 r+s 的字符串,还有最后 base64的还是hex的, 还有非对称加密 返回c1c3c2或是c1c2c3还有就是 asn1(c1x,c1y,c3,c2), 你看下你的c++里返回的是什么样的就行了,然后中间转换下,总之: 这些项目都是经过实践检测的,主体算法没问题。统一下输入输出的数据表达形式是肯定可以互通的

from gmssl.

Related Issues (20)

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.