Adjusted internal function parameters. Now SHA-512 works.