Lines Matching refs:sig
75 const struct public_key_signature *sig; in restrict_link_by_signature() local
87 sig = payload->data[asym_auth]; in restrict_link_by_signature()
88 if (!sig) in restrict_link_by_signature()
90 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()
106 ret = verify_signature(key, sig); in restrict_link_by_signature()
123 const struct public_key_signature *sig; in key_or_keyring_common() local
140 sig = payload->data[asym_auth]; in key_or_keyring_common()
141 if (!sig) in key_or_keyring_common()
143 if (!sig->auth_ids[0] && !sig->auth_ids[1] && !sig->auth_ids[2]) in key_or_keyring_common()
149 key = find_asymmetric_key(trusted, sig->auth_ids[0], in key_or_keyring_common()
150 sig->auth_ids[1], in key_or_keyring_common()
151 sig->auth_ids[2], false); in key_or_keyring_common()
179 if (!sig->auth_ids[0] && !sig->auth_ids[1]) { in key_or_keyring_common()
181 sig->auth_ids[2])) in key_or_keyring_common()
184 } else if (!sig->auth_ids[0] || !sig->auth_ids[1]) { in key_or_keyring_common()
187 auth_id = sig->auth_ids[0] ?: sig->auth_ids[1]; in key_or_keyring_common()
192 sig->auth_ids[1]) && in key_or_keyring_common()
194 sig->auth_ids[0])) { in key_or_keyring_common()
204 key = find_asymmetric_key(dest_keyring, sig->auth_ids[0], in key_or_keyring_common()
205 sig->auth_ids[1], sig->auth_ids[2], in key_or_keyring_common()
216 ret = verify_signature(key, sig); in key_or_keyring_common()