On OSX and iOS use CommonCrypto/Digest for the runtime requirement on SHA1 and MD5.