Searched refs:modlen (Results 1 – 2 of 2) sorted by relevance
/linux/kernel/module/ |
H A D | signing.c | 46 size_t sig_len, modlen = info->len; in mod_verify_sig() local 49 pr_devel("==>%s(,%zu)\n", __func__, modlen); in mod_verify_sig() 51 if (modlen <= sizeof(ms)) in mod_verify_sig() 54 memcpy(&ms, mod + (modlen - sizeof(ms)), sizeof(ms)); in mod_verify_sig() 56 ret = mod_check_sig(&ms, modlen, "module"); in mod_verify_sig() 61 modlen -= sig_len + sizeof(ms); in mod_verify_sig() 62 info->len = modlen; in mod_verify_sig() 64 return verify_pkcs7_signature(mod, modlen, mod + modlen, sig_len, in mod_verify_sig()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | verify_pkcs7_sig.c | 190 int ret, fd, modlen, marker_len, sig_len; in populate_data_item_mod() local 217 modlen = st.st_size; in populate_data_item_mod() 231 if (strncmp(mod + modlen - marker_len, MODULE_SIG_STRING, marker_len)) { in populate_data_item_mod() 236 modlen -= marker_len; in populate_data_item_mod() 238 memcpy(&ms, mod + (modlen - sizeof(ms)), sizeof(ms)); in populate_data_item_mod() 241 modlen -= sig_len + sizeof(ms); in populate_data_item_mod() 243 if (modlen > sizeof(data_item->data)) { in populate_data_item_mod() 248 memcpy(data_item->data, mod, modlen); in populate_data_item_mod() 249 data_item->data_len = modlen; in populate_data_item_mod() 256 memcpy(data_item->sig, mod + modlen, sig_len); in populate_data_item_mod()
|