OSDN Git Service

libcrypt: add support for SHA512-CRYPT password hashing
authorWilliam Pitcock <nenolod@dereferenced.org>
Mon, 19 Dec 2011 07:24:16 +0000 (01:24 -0600)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 22 Dec 2011 12:59:24 +0000 (13:59 +0100)
commit4c24dabb9cea4c8148d7a7efc7a1df694424c483
treeae1bedb28f62aef846c8c34463704d4aebfe609a
parent40c426ae8f032d794d15f4a7fca8dc17cdc9899d
libcrypt: add support for SHA512-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_SHA512_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>
extra/Configs/Config.in
libcrypt/Makefile.in
libcrypt/crypt.c
libcrypt/libcrypt.h
libcrypt/sha512-crypt.c [new file with mode: 0644]
libcrypt/sha512.c [new file with mode: 0644]
libcrypt/sha512.h [new file with mode: 0644]