FISCO-BCOS / FISCO-BCOS/java-sdk

SM2签名为什么不能直接传m而是传的m的哈希值?

Open
#310 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
58
Forks
62
PR merge metrics
No merged PRs in 30d

Description

根据sm2算法规范
![image](https://user-images.githubusercontent.com/24404366/120579386-02eb2e00-c45a-11eb-8f59-f3ea89a7e61a.png)
是先计算Z_A,然后拼接m做哈希
如果传参是m的sm3哈希,而不是m本身,会不会不太符合SM2算法规范?

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no source file, entry point, or test. Start by locating the SM2 signing API and comparing its expected input with the SM2 specification and the reported pre-hashed m behavior; done means the behavior is confirmed as compliant or corrected and covered by an appropriate test or explanation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cryptography
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.