I am going to use PKCS5_PBKDF2_HMAC to derive keys. Password argument is const char*
. Does it mean it must consist of printable characters only? Can I use binary password instead? OpenSSL Documentation says nothing about it. The only clue is using char instead of unsigned char, but nothing more:
int PKCS5_PBKDF2_HMAC(const char *pass, int passlen,
const unsigned char *salt, int saltlen, int iter,
const EVP_MD *digest,
int keylen, unsigned char *out);
RFC mentions P shortcut for password, an octet string
. Does it mean I can use a binary password being encoded as a hex string?