Lines Matching refs:wrapper
119 * Check and strip the PE wrapper from around the signature and check that the
125 struct win_certificate wrapper;
129 if (ctx->sig_len < sizeof(wrapper)) {
130 pr_warn("Signature wrapper too short\n");
134 memcpy(&wrapper, pebuf + ctx->sig_offset, sizeof(wrapper));
135 pr_debug("sig wrapper = { %x, %x, %x }\n",
136 wrapper.length, wrapper.revision, wrapper.cert_type);
144 if (wrapper.length > ctx->sig_len) {
145 pr_warn("Signature wrapper bigger than sig len (%x > %x)\n",
146 ctx->sig_len, wrapper.length);
149 if (wrapper.revision != WIN_CERT_REVISION_2_0) {
153 if (wrapper.cert_type != WIN_CERT_TYPE_PKCS_SIGNED_DATA) {
158 /* It looks like the pkcs signature length in wrapper->length and the
163 ctx->sig_len = wrapper.length;
164 ctx->sig_offset += sizeof(wrapper);
165 ctx->sig_len -= sizeof(wrapper);