MEX wrapper for a sha512 hashing algorithm.