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

Request for Unix SM3 Algorithm Support #3987

Open
zhouhaocheng opened this issue Apr 16, 2024 · 1 comment
Open

Request for Unix SM3 Algorithm Support #3987

zhouhaocheng opened this issue Apr 16, 2024 · 1 comment

Comments

@zhouhaocheng
Copy link

Currently, some Chinese operating systems are gradually adopting the SM3 algorithm for system user encryption. The encrypted shadow value is provided below:

testuser:$sm3$wnY86eyUlB5946gU$99LlMr0ddeZNDqnB2KRxn9f30SFCCvMv1WN1cFdsKJ2:19219:0:90:7:35::

The system-auth configuration is as follows:

$ cat /etc/pam.d/system-auth
......
password sufficient pam_unix.so sm3 shadow nullok try_first_pass use_authtok
......

This configuration allows the use of the SM3 algorithm with the shadow file for system user password encryption.

@zhouhaocheng
Copy link
Author

Attempting to use -m 31100, but it is not recognized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant