Key generator fix

Key generator fails for 64 byte keys. Validated both against OpenSSL (via the rails key generator) and against https://github.com/whitelynx/erlang-pbkdf2/blob/master/src/pbkdf2.erl