mkpasswd: support the Chinese algorithms

This commit is contained in:
Marco d'Itri 2026-02-16 02:19:57 +01:00
parent 15883e61b2
commit 9d8f93b3c2
No known key found for this signature in database
GPG Key ID: CB3EC33AE1DED781

View File

@ -138,6 +138,10 @@ static const struct crypt_method methods[] = {
#endif
{ "descrypt", "", 2, 2, 0,
N_("standard 56 bit DES-based crypt(3)") },
#if XCRYPT_VERSION_NUM >= ((4 << 16) | 5)
{ "sm3crypt", "$sm3$", 0, 0, 1, "ShangMi 3" },
{ "sm3_yescrypt", "$sm3y$", 0, 0, 1, "ShangMi 3 Yescrypt" },
#endif
#if XCRYPT_VERSION_NUM >= ((4 << 16) | 4)
{ "gost-yescrypt", "$gy$", 0, 0, 1, "GOST Yescrypt" },
#endif