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]) 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()
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]) 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], false); in key_or_keyring_common()
175 if (!sig->auth_ids[0] || !sig->auth_ids[1]) { in key_or_keyring_common()
178 auth_id = sig->auth_ids[0] ?: sig->auth_ids[1]; in key_or_keyring_common()
183 sig->auth_ids[1]) && in key_or_keyring_common()
185 sig->auth_ids[0])) { in key_or_keyring_common()
195 key = find_asymmetric_key(dest_keyring, sig->auth_ids[0], in key_or_keyring_common()
196 sig->auth_ids[1], false); in key_or_keyring_common()
206 ret = verify_signature(key, sig); in key_or_keyring_common()