Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZUC256MAC结果和GmSSL不一致 #264

Closed
haozekang opened this issue May 24, 2024 · 4 comments
Closed

ZUC256MAC结果和GmSSL不一致 #264

haozekang opened this issue May 24, 2024 · 4 comments

Comments

@haozekang
Copy link

ToolsFx版本及构建日期(如v1.15.1.beta2 2022-12-13):
v1.18.0 build 2024.4.29

系统版本及位数(Windows/OSX/ Linux /x86/x64/ arm):
win11 专业版 23h2 x64

Java版本(jdk 1.8.0 x86 oracle/openjdk):
你压缩包自带的

操作步骤(如运行ToolsFx.bat):
直接运行ToolsFx.exe

问题现象(如闪退):
和GmSSL结果不一致,我采用的是最新的GmSSL库
https://github.com/guanzhi/GmSSL

报错信息(命令行运行ToolsFx.bat/ToolsFx):
没有

image

@Leon406
Copy link
Owner

Leon406 commented May 24, 2024

image

基于bouncycastle实现 , 结果跟测试用例也一致
https://github.com/bcgit/bc-java/blob/main/prov/src/test/java/org/bouncycastle/jce/provider/test/ZucTest.java

@Leon406
Copy link
Owner

Leon406 commented May 24, 2024

不懂ZUC算法,纯调包,如果实现有问题的,可以向bc官方反馈

@haozekang
Copy link
Author

好的,谢了,我今天上午查阅了一下,目前已经给GmSSL项目提交issue了
guanzhi/GmSSL#1686

@haozekang
Copy link
Author

目前来看,可能BC是对的,但是还需要找专家验证一下。国家密码管理局目前没有ZUC256MAC的源码示例,中国科学院软件研究所公布的也只是草案。

@Leon406 Leon406 closed this as completed Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants