change: unused function has been removed.
fix: should call EVP_MD_CTX_cleanup function for security reasons.
fix: should release reference by the RSA/DSA_free function.