From 3ac5fd7ecaeb6721d812c2b93e446bf9a31acdde Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 19 Dec 2011 01:25:09 -0600 Subject: libcrypt: add support for SHA256-CRYPT password hashing This is based on Ulrich Drepper's implementation in GLIBC, but hacked up to work in uClibc. The differences from the GLIBC version are as follows: - b64_from_24bit() has been converted into a macro - Usage of GLIBC-isms (such as libc_freeres_ptr) have been removed It is enabled by the UCLIBC_HAS_SHA256_CRYPT_IMPL configuration symbol. You must have UCLIBC_HAS_CRYPT_IMPL enabled as well. Signed-off-by: William Pitcock Signed-off-by: Bernhard Reutner-Fischer --- extra/Configs/Config.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'extra/Configs/Config.in') diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in index bbde976d0..d4960fbbf 100644 --- a/extra/Configs/Config.in +++ b/extra/Configs/Config.in @@ -1174,6 +1174,13 @@ config UCLIBC_HAS_CRYPT_IMPL help libcrypt contains crypt(), setkey() and encrypt() +config UCLIBC_HAS_SHA256_CRYPT_IMPL + bool "libcrypt SHA256 support" + depends on UCLIBC_HAS_CRYPT_IMPL + help + This adds support for SHA256 password hashing via the crypt() function. + Say N here if you do not need SHA256 crypt support. + config UCLIBC_HAS_SHA512_CRYPT_IMPL bool "libcrypt SHA512 support" depends on UCLIBC_HAS_CRYPT_IMPL -- cgit v1.2.3