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-GCM怎么修改填充模式,有这个参数可以设置吗? #1757

Open
oxb2891186343 opened this issue Oct 10, 2024 · 1 comment
Open

Comments

@oxb2891186343
Copy link

像这样的
PKCS5Padding 加密数据长度不够时按特定规则填充
ISO10126Padding 加密数据长度不够时按特定规则填充
NoPadding 加密数据长度不够时不填充(该选项下注意待加密数据的长度)
ZeroPadding 加密数据长度不够时用0填充(JDK不支持该种模式)

@deatil
Copy link

deatil commented Oct 12, 2024

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

2 participants