Home
last modified time | relevance | path

Searched refs:auth_ids (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/crypto/asymmetric_keys/
Drestrict.c90 if (!sig->auth_ids[0] && !sig->auth_ids[1] && !sig->auth_ids[2]) in restrict_link_by_signature()
93 if (ca_keyid && !asymmetric_key_id_partial(sig->auth_ids[1], ca_keyid)) in restrict_link_by_signature()
98 sig->auth_ids[0], sig->auth_ids[1], in restrict_link_by_signature()
99 sig->auth_ids[2], false); in restrict_link_by_signature()
231 if (!sig->auth_ids[0] && !sig->auth_ids[1] && !sig->auth_ids[2]) in key_or_keyring_common()
237 key = find_asymmetric_key(trusted, sig->auth_ids[0], in key_or_keyring_common()
238 sig->auth_ids[1], in key_or_keyring_common()
239 sig->auth_ids[2], false); in key_or_keyring_common()
267 if (!sig->auth_ids[0] && !sig->auth_ids[1]) { in key_or_keyring_common()
269 sig->auth_ids[2])) in key_or_keyring_common()
[all …]
Dpkcs7_verify.c172 if (!asymmetric_key_id_same(x509->id, sinfo->sig->auth_ids[0])) in pkcs7_find_key()
186 sinfo->sig->auth_ids[0]->len, sinfo->sig->auth_ids[0]->data); in pkcs7_find_key()
225 if (sig->auth_ids[0]) in pkcs7_verify_sig_chain()
227 sig->auth_ids[0]->len, sig->auth_ids[0]->data); in pkcs7_verify_sig_chain()
228 if (sig->auth_ids[1]) in pkcs7_verify_sig_chain()
230 sig->auth_ids[1]->len, sig->auth_ids[1]->data); in pkcs7_verify_sig_chain()
248 auth = sig->auth_ids[0]; in pkcs7_verify_sig_chain()
257 } else if (sig->auth_ids[1]) { in pkcs7_verify_sig_chain()
258 auth = sig->auth_ids[1]; in pkcs7_verify_sig_chain()
278 if (sig->auth_ids[1] && in pkcs7_verify_sig_chain()
[all …]
Dpkcs7_trust.c81 if (last && (last->sig->auth_ids[0] || last->sig->auth_ids[1])) { in pkcs7_validate_trust_one()
83 last->sig->auth_ids[0], in pkcs7_validate_trust_one()
84 last->sig->auth_ids[1], in pkcs7_validate_trust_one()
100 sinfo->sig->auth_ids[0], NULL, NULL, false); in pkcs7_validate_trust_one()
Dx509_public_key.c104 if (cert->sig->auth_ids[0] || cert->sig->auth_ids[1]) { in x509_check_for_self_signed()
108 bool a = asymmetric_key_id_same(cert->skid, cert->sig->auth_ids[1]); in x509_check_for_self_signed()
109 bool b = asymmetric_key_id_same(cert->id, cert->sig->auth_ids[0]); in x509_check_for_self_signed()
116 cert->sig->auth_ids[0] && cert->sig->auth_ids[1]) in x509_check_for_self_signed()
Dsignature.c28 for (i = 0; i < ARRAY_SIZE(sig->auth_ids); i++) in public_key_signature_free()
29 kfree(sig->auth_ids[i]); in public_key_signature_free()
Dx509_cert_parser.c447 if (!ctx->cert->sig->auth_ids[2]) { in x509_note_issuer()
451 ctx->cert->sig->auth_ids[2] = kid; in x509_note_issuer()
758 if (ctx->cert->sig->auth_ids[1]) in x509_akid_note_kid()
765 ctx->cert->sig->auth_ids[1] = kid; in x509_akid_note_kid()
797 if (!ctx->akid_raw_issuer || ctx->cert->sig->auth_ids[0]) in x509_akid_note_serial()
808 ctx->cert->sig->auth_ids[0] = kid; in x509_akid_note_serial()
Dpkcs7_parser.c698 sinfo->sig->auth_ids[0] = kid; in pkcs7_note_signed_info()
/linux-6.12.1/include/crypto/
Dpublic_key.h44 struct asymmetric_key_id *auth_ids[3]; member