Home
last modified time | relevance | path

Searched refs:alg_ptr (Results 1 – 2 of 2) sorted by relevance

/system/security/keystore2/src/crypto/
Dcertificate_utils.cpp427 CertUtilsError setRsaDigestAlgorField(X509_ALGOR** alg_ptr, const EVP_MD* digest) { in setRsaDigestAlgorField() argument
428 if (alg_ptr == nullptr || digest == nullptr) { in setRsaDigestAlgorField()
431 *alg_ptr = X509_ALGOR_new(); in setRsaDigestAlgorField()
432 if (*alg_ptr == nullptr) { in setRsaDigestAlgorField()
435 X509_ALGOR_set_md(*alg_ptr, digest); in setRsaDigestAlgorField()
439 CertUtilsError setPssMaskGeneratorField(X509_ALGOR** alg_ptr, const EVP_MD* digest) { in setPssMaskGeneratorField() argument
452 *alg_ptr = X509_ALGOR_new(); in setPssMaskGeneratorField()
453 if (*alg_ptr == nullptr) { in setPssMaskGeneratorField()
456 X509_ALGOR_set0(*alg_ptr, OBJ_nid2obj(NID_mgf1), V_ASN1_SEQUENCE, mgf1_digest_algor_str); in setPssMaskGeneratorField()
/system/keymaster/tests/
Dandroid_keymaster_test_utils.cpp786 auto alg_ptr = std::find_if(params->params, end, [](keymaster_key_param_t& p) { in get_algorithm_param() local
789 if (alg_ptr == end) return nullptr; in get_algorithm_param()
790 return alg_ptr; in get_algorithm_param()
871 auto alg_ptr = get_algorithm_param(params); in generate_key() local
872 if (!alg_ptr) return KM_ERROR_UNSUPPORTED_ALGORITHM; in generate_key()
873 if (alg_ptr->enumerated == KM_ALGORITHM_HMAC && !all_digests_supported(params)) in generate_key()
892 auto alg_ptr = get_algorithm_param(params); in import_key() local
893 if (!alg_ptr) return KM_ERROR_UNSUPPORTED_ALGORITHM; in import_key()
894 if (alg_ptr->enumerated == KM_ALGORITHM_HMAC && !all_digests_supported(params)) in import_key()