Lines Matching refs:sig_info
100 struct kmod_signature_info *sig_info) in fill_default() argument
103 sig_info->sig = mem + size; in fill_default()
104 sig_info->sig_len = sig_len; in fill_default()
107 sig_info->key_id = mem + size; in fill_default()
108 sig_info->key_id_len = modsig->key_id_len; in fill_default()
111 sig_info->signer = mem + size; in fill_default()
112 sig_info->signer_len = modsig->signer_len; in fill_default()
114 sig_info->algo = pkey_algo[modsig->algo]; in fill_default()
115 sig_info->hash_algo = pkey_hash_algo[modsig->hash]; in fill_default()
116 sig_info->id_type = pkey_id_type[modsig->id_type]; in fill_default()
196 struct kmod_signature_info *sig_info) in fill_pkcs7() argument
249 sig_info->sig = (const char *)ASN1_STRING_get0_data(sig); in fill_pkcs7()
250 sig_info->sig_len = ASN1_STRING_length(sig); in fill_pkcs7()
262 sig_info->key_id = (const char *)key_id_str; in fill_pkcs7()
263 sig_info->key_id_len = len; in fill_pkcs7()
267 sig_info->signer = issuer_str; in fill_pkcs7()
268 sig_info->signer_len = strlen(issuer_str); in fill_pkcs7()
273 sig_info->hash_algo = pkey_hash_algo[obj_to_hash_algo(o)]; in fill_pkcs7()
274 sig_info->id_type = pkey_id_type[modsig->id_type]; in fill_pkcs7()
283 sig_info->private = pvt; in fill_pkcs7()
285 sig_info->free = pkcs7_free; in fill_pkcs7()
301 struct kmod_signature_info *sig_info) in fill_pkcs7() argument
303 sig_info->hash_algo = "unknown"; in fill_pkcs7()
304 sig_info->id_type = pkey_id_type[modsig->id_type]; in fill_pkcs7()
323 bool kmod_module_signature_info(const struct kmod_file *file, struct kmod_signature_info *sig_info) in kmod_module_signature_info() argument
353 return fill_pkcs7(mem, size, modsig, sig_len, sig_info); in kmod_module_signature_info()
355 return fill_default(mem, size, modsig, sig_len, sig_info); in kmod_module_signature_info()
359 void kmod_module_signature_info_free(struct kmod_signature_info *sig_info) in kmod_module_signature_info_free() argument
361 if (sig_info->free) in kmod_module_signature_info_free()
362 sig_info->free(sig_info); in kmod_module_signature_info_free()