Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ww-rm committed May 21, 2024
1 parent eb537b2 commit fe264f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ print(sm9.decrypt(cipher))

更多详细用法可以查看[文档](https://gmalg.readthedocs.io).

## 关于密文顺序

无论是 SM2 还是 SM9, 均遵循国标要求按照 `C1|C3|C2` 的顺序构造和解析密文**字节流**.

但是在计算各部分数值的时候, 代码里是没有顺序的, 仅仅按照三个独立的 `C1`, `C2`, `C3` 对象返回, 这与密文字节流的构造是分开的.

---

*If you think this project is helpful to you, :star: it and let more people see!*

0 comments on commit fe264f4

Please sign in to comment.