Change EVP_MD_CTX_type so it is more logical and add EVP_MD_CTX_md for