Hello, [EMAIL PROTECTED] wrote on 09/05/2008 02:04:01 AM:
> [EMAIL PROTECTED] wrote: > > >> Does openssl support RFC2898, and if so, what function should I be > >> looking at? > > PKCS5_PBKDF2_HMAC_SHA1() > > This function seems to be undocumented: > > int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, > unsigned char *salt, int saltlen, int iter, > int keylen, unsigned char *out); > > Am I correct in understanding that the key generated by this function > will be written to the buffer specified in out, and will have the length > specified by keylen? Yes, example attached. > What is the meaning of the int that this function returns? This function always returns 1. Best regards, -- Marek Marcola <[EMAIL PROTECTED]>
pkcs5.c
Description: Binary data