NetBSD/lib/libcrypto
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
..
arch avoid bswapl, which is post-i486 (including i486) insn. markus@openbsd 2003-11-13 19:36:31 +00:00
man update documentation from 0.9.7b to 0.9.7d 2004-03-20 21:48:44 +00:00
aes.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
asn1.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
bf.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
bio.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
bn.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
buffer.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
cast.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
comp.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
conf.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
crypto.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
des.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
dh.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
dsa.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
dso.inc use openssl 0.9.6a. shlib major # is bumped for libcrypto, libssl and 2001-04-12 07:48:03 +00:00
ec.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
engine.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
err.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
evp.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
hmac.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
i_cbc_dummy.c use weak_alias to make libcrypto_{idea,rc5} actually useful. 2002-06-09 02:14:30 +00:00
i_skey_dummy.c use weak_alias to make libcrypto_{idea,rc5} actually useful. 2002-06-09 02:14:30 +00:00
idea.inc repair openssl (libcrypto) for non-32bit architecture. 2000-09-30 00:23:28 +00:00
krb5.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
lhash.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
Makefile Add support for SHA1 hashed passwords. 2004-07-02 00:05:23 +00:00
man.inc Actually install the new man pages. 2004-03-22 00:48:04 +00:00
md2.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
md4.inc use openssl 0.9.6a. shlib major # is bumped for libcrypto, libssl and 2001-04-12 07:48:03 +00:00
md5.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
mdc2.inc MDC2 is a patented algorithm; don't ship it in default libcrypto. 2002-09-26 13:05:54 +00:00
mdc2dgst_dummy.c dummy funtion decls 2002-09-26 13:06:25 +00:00
objects.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
ocsp.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
pem.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
pkcs7.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
pkcs12.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
rand.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
rc2.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
rc4.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
rc5_enc_dummy.c use weak_alias to make libcrypto_{idea,rc5} actually useful. 2002-06-09 02:14:30 +00:00
rc5_skey_dummy.c use weak_alias to make libcrypto_{idea,rc5} actually useful. 2002-06-09 02:14:30 +00:00
rc5.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
ripemd.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
rnd_keys.c use more standard %lld in favour of %qd 2001-01-04 15:35:22 +00:00
rsa.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
sha.inc accelerate sha1 by using asm (i386). markus@openbsd. 2003-11-13 02:10:00 +00:00
shlib_version sync w/ openssl 0.9.7c. shlib minor bump for libcrypto. 2003-11-04 23:54:26 +00:00
srcs.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
stack.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
txt_db.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
ui.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
x509.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
x509v3.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00