The output in "hash" mode is:

"# " + algorithm name + " HASH"
digest (in hex), two spaces, filename

The output in "hmac" mode is:

"# " + algorithm name + " HMAC" + key generation algorithm + " SALT" (if salt is used)
salt(if any), space, mac (in hex), two spaces, filename
