Skip to content

fix(sm4_gcm): 修复GHASH逻辑错误造成GCM模式下tag错误#179

Open
wond4 wants to merge 1 commit intotjfoc:masterfrom
wond4:master
Open

fix(sm4_gcm): 修复GHASH逻辑错误造成GCM模式下tag错误#179
wond4 wants to merge 1 commit intotjfoc:masterfrom
wond4:master

Conversation

@wond4
Copy link
Copy Markdown

@wond4 wond4 commented Oct 13, 2022

问题描述请参考 #178
经排查是 GHASH 函数未对A、C长度移位,已修复。
修复后运行截图如下:
image
image

PS: 增加了 GHASH 函数的单元测试(来自GMSSL测试代码

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

Successfully merging this pull request may close these issues.

1 participant