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

SM3对大文件提取hash内存溢出 #16

Open
yiyuankafei opened this issue Feb 20, 2021 · 0 comments
Open

SM3对大文件提取hash内存溢出 #16

yiyuankafei opened this issue Feb 20, 2021 · 0 comments

Comments

@yiyuankafei
Copy link

所有分支最终都是通过获取完整的byte[]来生成hash,处理大文件会溢出,可以先获取输入流,每次读取64字节,最后一次不足64再做padding补齐

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

1 participant