Searched refs:ms (Results 1 – 2 of 2) sorted by relevance
21 int mod_check_sig(const struct module_signature *ms, size_t file_len, in mod_check_sig() argument24 if (be32_to_cpu(ms->sig_len) >= file_len - sizeof(*ms)) in mod_check_sig()27 if (ms->id_type != PKEY_ID_PKCS7) { in mod_check_sig()33 if (ms->algo != 0 || in mod_check_sig()34 ms->hash != 0 || in mod_check_sig()35 ms->signer_len != 0 || in mod_check_sig()36 ms->key_id_len != 0 || in mod_check_sig()37 ms->__pad[0] != 0 || in mod_check_sig()38 ms->__pad[1] != 0 || in mod_check_sig()39 ms->__pad[2] != 0) { in mod_check_sig()
22 struct module_signature ms; in mod_verify_sig() local28 if (modlen <= sizeof(ms)) in mod_verify_sig()31 memcpy(&ms, mod + (modlen - sizeof(ms)), sizeof(ms)); in mod_verify_sig()33 ret = mod_check_sig(&ms, modlen, info->name); in mod_verify_sig()37 sig_len = be32_to_cpu(ms.sig_len); in mod_verify_sig()38 modlen -= sig_len + sizeof(ms); in mod_verify_sig()