pbkdf2-hmac-sha512: prepare bug: fix #977