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

sm4加密是不是对报文长度有限制限制 #76

Open
tiancanfei opened this issue Jan 6, 2023 · 2 comments
Open

sm4加密是不是对报文长度有限制限制 #76

tiancanfei opened this issue Jan 6, 2023 · 2 comments

Comments

@tiancanfei
Copy link

使用ecbEncryptText:(NSString *)plaintext key:(NSString *)key加密报文超过300kb左右就直接crash了,不知道是什么问题,有没有遇到过

@muzipiao
Copy link
Owner

muzipiao commented Jan 9, 2023

可能是APP占用内存过高导致看门狗杀死了进程,加解密都在内存进行,单个应用最大占用内存,不同系统占比不一样。
解决方案,与后端协商分段加解密即可。

@tiancanfei
Copy link
Author

好的,谢谢

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