-- fix segfault in pbkdf2

-- incorrectly sized static buffer (EVP_MAX_KEY_LENGTH)
-- the results of pbkdf2 key derivation can be longer
-- add corresponding unit test (same as the test above it with params and result changed)