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

sm4gcm解密数组越界 #172

Open
tokingHong opened this issue Aug 17, 2022 · 3 comments
Open

sm4gcm解密数组越界 #172

tokingHong opened this issue Aug 17, 2022 · 3 comments

Comments

@tokingHong
Copy link

image

@tokingHong
Copy link
Author

testcase的明文密文长度只有16 没有覆盖到

@hcbb199
Copy link

hcbb199 commented Jun 5, 2023

有解决方法了么?

@emmansun
Copy link

类似问题#198,解决方案:

  • 不用这个库。
  • 使用Go语言自己的gcm加密模式和这个库SM4实现的cipher.Block,Go语言实现的gcm模式比本库的实现性能好,正确性有保证。

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

3 participants