Code Monkey home page Code Monkey logo

Comments (6)

ZZMarquis avatar ZZMarquis commented on July 17, 2024

hash指什么的hash?

from gm.

caoliangccut20121192 avatar caoliangccut20121192 commented on July 17, 2024

就是国密把公钥X,和公钥Y全hash方法

from gm.

caoliangccut20121192 avatar caoliangccut20121192 commented on July 17, 2024

e := calculateE(digest, &priv.Curve, pubX, pubY, userId, in) 假如我知道这个值,是否可以恢复公钥

from gm.

ZZMarquis avatar ZZMarquis commented on July 17, 2024

你是说知道e,能不能把pubX和pubY反推出来?
我觉得是不行的,hash算法是不可逆的。

from gm.

caoliangccut20121192 avatar caoliangccut20121192 commented on July 17, 2024

你写的那个签名r和s出来有时候为什么是31字节啊

from gm.

ZZMarquis avatar ZZMarquis commented on July 17, 2024

R和S实际都是一个大数,如果恰巧是一个较小的数转成字节数组时就有可能是31字节,如果你需要32字节,在前面再加上一个0x00字节就行。

from gm.

Related Issues (17)

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.