Hi All,

I am using this function to create a key for password encryption.
I have a similar application running on Windows which uses
Rfc2898DeriveBytes class to generate the key.
The problem I am facing here is the difference between the keys generated
using Windows and OpenSSL.
It happens only when string "pass" which is the first argument to
PKCS5_PBKDF2_HMAC_SHA1() function, has length less than 16.
Otherwise both the Windows and OpenSSL output match for strings having
length greater than or equal to 16.
Other valued of arguments passed to PKCS5_PBKDF2_HMAC_SHA1()  function are
as follows:
salt - "gee whiz"
saltlen- strlen(salt)
iter- 1024
keylen- 16.

Please let me know if I am following the correct way to use this function or
if I need to take care of some other things also.

Thanks,
Sameer Joshi

Reply via email to