summaryrefslogtreecommitdiffstats
path: root/libcrypt/sha256-crypt.c
Commit message (Collapse)AuthorAgeFilesLines
* libcrypt: add support for SHA256-CRYPT password hashingWilliam Pitcock2011-12-231-0/+326
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 <nenolod@dereferenced.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> (cherry picked from commit 3ac5fd7ecaeb6721d812c2b93e446bf9a31acdde)