I haven't found an md5sum that wasn't exactly as calculated using md5 on the Mac. (OSX 10.4.11).
For sha1sum you can do "openssl sha1 <path/filename.ext>".