Lines Matching full:wrapper
119 * Check and strip the PE wrapper from around the signature and check that the
125 struct win_certificate wrapper; in pefile_strip_sig_wrapper() local
129 if (ctx->sig_len < sizeof(wrapper)) { in pefile_strip_sig_wrapper()
130 pr_debug("Signature wrapper too short\n"); in pefile_strip_sig_wrapper()
134 memcpy(&wrapper, pebuf + ctx->sig_offset, sizeof(wrapper)); in pefile_strip_sig_wrapper()
135 pr_debug("sig wrapper = { %x, %x, %x }\n", in pefile_strip_sig_wrapper()
136 wrapper.length, wrapper.revision, wrapper.cert_type); in pefile_strip_sig_wrapper()
141 if (round_up(wrapper.length, 8) != ctx->sig_len) { in pefile_strip_sig_wrapper()
142 pr_debug("Signature wrapper len wrong\n"); in pefile_strip_sig_wrapper()
145 if (wrapper.revision != WIN_CERT_REVISION_2_0) { in pefile_strip_sig_wrapper()
149 if (wrapper.cert_type != WIN_CERT_TYPE_PKCS_SIGNED_DATA) { in pefile_strip_sig_wrapper()
154 /* It looks like the pkcs signature length in wrapper->length and the in pefile_strip_sig_wrapper()
159 ctx->sig_len = wrapper.length; in pefile_strip_sig_wrapper()
160 ctx->sig_offset += sizeof(wrapper); in pefile_strip_sig_wrapper()
161 ctx->sig_len -= sizeof(wrapper); in pefile_strip_sig_wrapper()