Lowered key length for pbkdf2 and implemented the sha.authenticate512
function with tests