The openssl docs claim that EVP_DigestFinal() is obsolete and that one should use EVP_DigestFinal_ex() instead.