Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 954167 - sys-libs/libxcrypt: add sm3crypt support
Summary: sys-libs/libxcrypt: add sm3crypt support
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-04-21 23:55 UTC by Hank Leininger
Modified: 2025-04-25 06:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hank Leininger 2025-04-21 23:55:36 UTC
sm3crypt is used by some Linux distros for password hashing ($sm3$ hash type). It would be nice if Gentoo supported it for the sake of interoperability.

I'll prep a PR that adapts from https://gitee.com/src-openeuler/libxcrypt/blob/master/add-sm3-crypt-support.patch to add sm3crypt support (doesn't change the defaults, should not change behavior unless asked).
Comment 1 Mike Gilbert gentoo-dev 2025-04-22 16:07:47 UTC
I think this will be included in the next libxcrypt release (see upstream PR).

Is there some reason you need it sooner?
Comment 2 Hank Leininger 2025-04-25 06:30:36 UTC
(In reply to Mike Gilbert from comment #1)
> I think this will be included in the next libxcrypt release (see upstream
> PR).
> 
> Is there some reason you need it sooner?

Oh! Good call. I have been carrying these around in a local overlay for a while, didn't realize upstream had merged support for this.

I'll just keep this in my overlay until a release that includes them is out, thanks!