Lines Matching refs:alg

148   const SSL_SIGNATURE_ALGORITHM *alg = get_signature_algorithm(sigalg);  in pkey_supports_algorithm()  local
149 if (alg == NULL || in pkey_supports_algorithm()
150 EVP_PKEY_id(pkey) != alg->pkey_type) { in pkey_supports_algorithm()
156 if (alg->pkey_type == EVP_PKEY_RSA && !alg->is_rsa_pss) { in pkey_supports_algorithm()
161 if (alg->pkey_type == EVP_PKEY_EC && in pkey_supports_algorithm()
162 (alg->curve == NID_undef || in pkey_supports_algorithm()
164 EC_KEY_get0_group(EVP_PKEY_get0_EC_KEY(pkey))) != alg->curve)) { in pkey_supports_algorithm()
179 const SSL_SIGNATURE_ALGORITHM *alg = get_signature_algorithm(sigalg); in setup_ctx() local
180 const EVP_MD *digest = alg->digest_func != NULL ? alg->digest_func() : NULL; in setup_ctx()
190 if (alg->is_rsa_pss) { in setup_ctx()
294 const SSL_SIGNATURE_ALGORITHM *alg = get_signature_algorithm(sigalg); in ssl_private_key_supports_signature_algorithm() local
295 if (alg->is_rsa_pss && (size_t)EVP_PKEY_size(hs->local_pubkey.get()) < in ssl_private_key_supports_signature_algorithm()
296 2 * EVP_MD_size(alg->digest_func()) + 2) { in ssl_private_key_supports_signature_algorithm()
471 const SSL_SIGNATURE_ALGORITHM *alg = get_signature_algorithm(sigalg); in SSL_get_signature_algorithm_key_type() local
472 return alg != nullptr ? alg->pkey_type : EVP_PKEY_NONE; in SSL_get_signature_algorithm_key_type()
476 const SSL_SIGNATURE_ALGORITHM *alg = get_signature_algorithm(sigalg); in SSL_get_signature_algorithm_digest() local
477 if (alg == nullptr || alg->digest_func == nullptr) { in SSL_get_signature_algorithm_digest()
480 return alg->digest_func(); in SSL_get_signature_algorithm_digest()
484 const SSL_SIGNATURE_ALGORITHM *alg = get_signature_algorithm(sigalg); in SSL_is_signature_algorithm_rsa_pss() local
485 return alg != nullptr && alg->is_rsa_pss; in SSL_is_signature_algorithm_rsa_pss()