In message <[EMAIL PROTECTED]> on Wed, 7 Jul 2004 20:21:34 -0700, Ben Weintraub 
<[EMAIL PROTECTED]> said:

orinjus> Hello,
orinjus> I am using EVP_BytesToKey() in order to generate a key from a password
orinjus> and a random salt, and reading through the documentation for the
orinjus> function at http://www.openssl.org/docs/crypto/EVP_BytesToKey.html , 
orinjus> I noticed it says:
orinjus> 
orinjus> Newer applications should use more standard algorithms such as PKCS#5
orinjus> v2.0 for key derivation.
orinjus> 
orinjus> But doesn't say if this is possible in OpenSSL.  So my question is, is
orinjus> there an implementation of PKCS#5 v2.0 in OpenSSL, or will I have to
orinjus> write my own?

PKCS5_v2_PBE_keyivgen(), declared in <openssl/evp.h>.  Unfortunately,
it is undocumented, for now.

You can also use PKCS5_PBKDF2_HMAC_SHA1(), declared in the same header
file (and also undocumented...).

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte   \ Tunnlandsvägen 52 \ [EMAIL PROTECTED]
[EMAIL PROTECTED]  \ S-168 36  BROMMA  \ T: +46-708-26 53 44
                    \      SWEDEN       \
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to