Generating MD5 HASH of a file with OpenSSL and PolarSSL