NetBSD/usr.bin/passwd
sjg 3a0c68edfd Add support for SHA1 hashed passwords.
The algorithm used is essentially PBKDF1 from RFC 2898 but using
hmac_sha1 rather than SHA1 directly (suggested by smb@research.att.com).

 * The format of the encrypted password is:
 * $<tag>$<iterations>$<salt>$<digest>
 *
 * where:
 *      <tag>           is "sha1"
 *      <iterations>    is an unsigned int identifying how many rounds
 *                      have been applied to <digest>.  The number
 *                      should vary slightly for each password to make
 *                      it harder to generate a dictionary of
 *                      pre-computed hashes.  See crypt_sha1_iterations.
 *      <salt>          up to 64 bytes of random data, 8 bytes is
 *                      currently considered more than enough.
 *      <digest>        the hashed password.

hmac.c implementes HMAC as defined in RFC 2104 and includes a unit
test for both hmac_sha1 and hmac_sha1 using a selection of the Known
Answer Tests from RFC 2202.

It is worth noting that to be FIPS compliant the hmac key (password)
should be 10-20 chars.
2004-07-02 00:05:23 +00:00
..
Makefile Add support for SHA1 hashed passwords. 2004-07-02 00:05:23 +00:00
extern.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
krb5_passwd.c upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
local_passwd.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
passwd.1 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
passwd.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
pwd_gensalt.c Add support for SHA1 hashed passwords. 2004-07-02 00:05:23 +00:00
yp_passwd.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00