NetBSD/share
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
..
dict put 'Czechoslovak' and 'Czechoslovakian' back; even through the country 2003-05-24 16:48:31 +00:00
doc Add missing NetBSD ID tags 2004-06-30 03:26:26 +00:00
examples Spell removable with only two es. Inspired by jmc@openbsd. 2004-04-19 12:44:09 +00:00
i18n Rework how MAKEVERBOSE operates: 2003-10-21 10:01:19 +00:00
locale for platforms that has problem with c++ comment, switch to good old /* */ 2004-06-24 03:28:50 +00:00
man Add support for SHA1 hashed passwords. 2004-07-02 00:05:23 +00:00
me Don't remove ${.TARGET} - thanks Alexander for pointing it out. 2004-03-20 20:41:33 +00:00
misc Add TNF. 2004-06-29 18:12:13 +00:00
mk check for defined before checking for empty to ease a 1.6 transition 2004-06-25 02:05:39 +00:00
nls Add slovak language libc message catalog. 2003-04-14 05:21:47 +00:00
pf Add missing NetBSD ID tags 2004-06-30 03:26:26 +00:00
sushi Fixes to sushi for handling ipv6 autoconfiguration mode in the rc.conf 2004-03-24 18:47:08 +00:00
tabset
termcap Add xpterm and hpterm as aliases for xhpterm. 2004-06-23 22:48:56 +00:00
tmac Add README detailing where current versions of the files 2004-03-29 21:36:45 +00:00
wscons Convert to usage of UUDECODE_FILES and standardize on filename extension 2004-03-19 08:07:22 +00:00
zoneinfo Ignore errors on some rm -rf's for platforms that aren't quite 2004-06-21 18:20:08 +00:00
Makefile Citrus iconv support(5) 2003-06-27 08:39:59 +00:00
Makefile.inc