Lines Matching refs:mdtype
1153 EVP_MD *mdtype; in php_openssl_get_evp_md_from_algo() local
1157 mdtype = (EVP_MD *) EVP_sha1(); in php_openssl_get_evp_md_from_algo()
1160 mdtype = (EVP_MD *) EVP_md5(); in php_openssl_get_evp_md_from_algo()
1164 mdtype = (EVP_MD *) EVP_md4(); in php_openssl_get_evp_md_from_algo()
1169 mdtype = (EVP_MD *) EVP_md2(); in php_openssl_get_evp_md_from_algo()
1174 mdtype = (EVP_MD *) EVP_dss1(); in php_openssl_get_evp_md_from_algo()
1178 mdtype = (EVP_MD *) EVP_sha224(); in php_openssl_get_evp_md_from_algo()
1181 mdtype = (EVP_MD *) EVP_sha256(); in php_openssl_get_evp_md_from_algo()
1184 mdtype = (EVP_MD *) EVP_sha384(); in php_openssl_get_evp_md_from_algo()
1187 mdtype = (EVP_MD *) EVP_sha512(); in php_openssl_get_evp_md_from_algo()
1191 mdtype = (EVP_MD *) EVP_ripemd160(); in php_openssl_get_evp_md_from_algo()
1198 return mdtype; in php_openssl_get_evp_md_from_algo()
1607 const EVP_MD *mdtype; in PHP_FUNCTION() local
1624 mdtype = php_openssl_get_evp_md_from_algo(algo); in PHP_FUNCTION()
1626 if (!mdtype) { in PHP_FUNCTION()
1651 if (!NETSCAPE_SPKI_sign(spki, pkey, mdtype)) { in PHP_FUNCTION()
1899 const EVP_MD *mdtype; in php_openssl_x509_fingerprint() local
1903 if (!(mdtype = EVP_get_digestbyname(method))) { in php_openssl_x509_fingerprint()
1906 } else if (!X509_digest(peer, mdtype, md, &n)) { in php_openssl_x509_fingerprint()
7140 const EVP_MD *mdtype; local
7160 mdtype = EVP_get_digestbyname(ZSTR_VAL(method_str));
7162 mdtype = php_openssl_get_evp_md_from_algo(method_long);
7164 if (!mdtype && (!can_default_digest || method_long != 0)) {
7173 EVP_DigestSignInit(md_ctx, NULL, mdtype, NULL, pkey) &&
7179 EVP_SignInit(md_ctx, mdtype) &&
7206 const EVP_MD *mdtype; local
7226 mdtype = EVP_get_digestbyname(ZSTR_VAL(method_str));
7228 mdtype = php_openssl_get_evp_md_from_algo(method_long);
7230 if (!mdtype && (!can_default_digest || method_long != 0)) {
7246 !EVP_DigestVerifyInit(md_ctx, NULL, mdtype, NULL, pkey) ||
7249 !EVP_VerifyInit (md_ctx, mdtype) ||
7572 const EVP_MD *mdtype; local
7580 mdtype = EVP_get_digestbyname(method);
7581 if (!mdtype) {
7586 siglen = EVP_MD_size(mdtype);
7590 if (EVP_DigestInit(md_ctx, mdtype) &&