Home
last modified time | relevance | path

Searched refs:pkey_algo (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.15/security/integrity/
Ddigsig_asymmetric.c111 pks.pkey_algo = pk->pkey_algo; in asymmetric_verify()
112 if (!strcmp(pk->pkey_algo, "rsa")) in asymmetric_verify()
114 else if (!strncmp(pk->pkey_algo, "ecdsa-", 6)) in asymmetric_verify()
117 else if (!strcmp(pk->pkey_algo, "ecrdsa") || in asymmetric_verify()
118 !strcmp(pk->pkey_algo, "sm2")) in asymmetric_verify()
/Linux-v5.15/crypto/asymmetric_keys/
Dx509_public_key.c36 if (!cert->pub->pkey_algo) in x509_get_sig_params()
39 if (!sig->pkey_algo) in x509_get_sig_params()
132 if (strcmp(cert->pub->pkey_algo, cert->sig->pkey_algo) != 0 && in x509_check_for_self_signed()
133 (strncmp(cert->pub->pkey_algo, "ecdsa-", 6) != 0 || in x509_check_for_self_signed()
134 strcmp(cert->sig->pkey_algo, "ecdsa") != 0)) in x509_check_for_self_signed()
182 pr_devel("Cert Key Algo: %s\n", cert->pub->pkey_algo); in x509_key_preparse()
192 cert->sig->pkey_algo, cert->sig->hash_algo); in x509_key_preparse()
Dx509_cert_parser.c264 ctx->cert->sig->pkey_algo = "rsa"; in x509_note_pkey_algo()
269 ctx->cert->sig->pkey_algo = "ecrdsa"; in x509_note_pkey_algo()
274 ctx->cert->sig->pkey_algo = "sm2"; in x509_note_pkey_algo()
279 ctx->cert->sig->pkey_algo = "ecdsa"; in x509_note_pkey_algo()
302 if (strcmp(ctx->cert->sig->pkey_algo, "rsa") == 0 || in x509_note_signature()
303 strcmp(ctx->cert->sig->pkey_algo, "ecrdsa") == 0 || in x509_note_signature()
304 strcmp(ctx->cert->sig->pkey_algo, "sm2") == 0 || in x509_note_signature()
305 strcmp(ctx->cert->sig->pkey_algo, "ecdsa") == 0) { in x509_note_signature()
493 ctx->cert->pub->pkey_algo = "rsa"; in x509_extract_key_data()
497 ctx->cert->pub->pkey_algo = "ecrdsa"; in x509_extract_key_data()
[all …]
Dpublic_key.c37 seq_printf(m, "%s.%s", key->id_type, key->pkey_algo); in public_key_describe()
81 pkey->pkey_algo); in software_key_determine_akcipher()
85 pkey->pkey_algo, hash_algo); in software_key_determine_akcipher()
91 strcpy(alg_name, pkey->pkey_algo); in software_key_determine_akcipher()
361 if (sig->pkey_algo && strcmp(sig->pkey_algo, "sm2") == 0 && in public_key_verify_signature()
Dpkcs8_parser.c76 ctx->pub->pkey_algo = "rsa"; in pkcs8_note_algo()
144 pr_devel("Cert Key Algo: %s\n", pub->pkey_algo); in pkcs8_key_preparse()
Dpkcs7_verify.c177 if (strcmp(x509->pub->pkey_algo, sinfo->sig->pkey_algo) != 0) { in pkcs7_find_key()
Dpkcs7_parser.c269 ctx->sinfo->sig->pkey_algo = "rsa"; in pkcs7_sig_note_pkey_algo()
277 ctx->sinfo->sig->pkey_algo = "ecdsa"; in pkcs7_sig_note_pkey_algo()
/Linux-v5.15/include/crypto/
Dpublic_key.h30 const char *pkey_algo; member
44 const char *pkey_algo; member
/Linux-v5.15/Documentation/crypto/
Dasymmetric-keys.rst95 enum pkey_algo