On Wed, Sep 24, 2003, Lule Chen wrote: > Hi, I am new to the OpenSSL. I have a java program that uses the jce sample > of Password-based encryption with md5 and cbc. It uses a fixed salt and > count. And the algorithm is the password-based encryption algorithm as > defined in RSA Laboratories, "PKCS #5: Password-Based encryption Standard, > version 1.5, Nov 1993. My question is how can I implement the same > encrption/decryption in C++ by using OpenSSL library? Any sample code would > be very helpful! >
That algorithm is already implemented by OpenSSL in the EVP_PBE_CipherInit() functions, they aren't documented yet though. In outline you call these in a similar fashion to EVP_CipherInit(), the extra paramaters are in the "type" parameter which can be set with PKCS5_pbe_set(). Steve. -- Dr Stephen N. Henson. Core developer of the OpenSSL project: http://www.openssl.org/ Freelance consultant see: http://www.drh-consultancy.demon.co.uk/ Email: [EMAIL PROTECTED], PGP key: via homepage. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]