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
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
i_skey_dummy.c
idea.inc
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
md5.inc upgrade openssl to 0.9.7b. (AES is now supported) 2003-07-24 14:16:30 +00:00
mdc2.inc
mdc2dgst_dummy.c
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
rc5_skey_dummy.c
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
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