Replaced OpenSSL SHA1 with PolarSSL SHA1