They are only used under src/home/, but I want to add tests in test-libcrypt-util.c. And the functions are almost trivial, so I think it is OK to move them to shared.
See 3f9a0a522f for justification.
3f9a0a522f
That way we can use it from other modules too. Just some shifting around, no change in behaviour.
Fixes more or less: https://bugs.freedesktop.org/show_bug.cgi?id=67474