Step 1 of using Core Foundation on OSX and iOS: Generate SHA1 hash with CommonCrypto instead of OpenSSL