Lines Matching refs:pkcs7
130 const u8 *pkcs7; in pefile_strip_sig_wrapper() local
172 pkcs7 = pebuf + ctx->sig_offset; in pefile_strip_sig_wrapper()
173 if (pkcs7[0] != (ASN1_CONS_BIT | ASN1_SEQ)) in pefile_strip_sig_wrapper()
176 switch (pkcs7[1]) { in pefile_strip_sig_wrapper()
178 len = pkcs7[1] + 2; in pefile_strip_sig_wrapper()
183 len = pkcs7[2] + 3; in pefile_strip_sig_wrapper()
186 len = ((pkcs7[2] << 8) | pkcs7[3]) + 4; in pefile_strip_sig_wrapper()
422 struct pkcs7_message *pkcs7; in verify_pefile_signature() local
439 pkcs7 = pkcs7_parse_message(pebuf + ctx.sig_offset, ctx.sig_len); in verify_pefile_signature()
440 if (IS_ERR(pkcs7)) in verify_pefile_signature()
441 return PTR_ERR(pkcs7); in verify_pefile_signature()
442 ctx.pkcs7 = pkcs7; in verify_pefile_signature()
444 ret = pkcs7_get_content_data(ctx.pkcs7, &data, &datalen, false); in verify_pefile_signature()
465 ret = pkcs7_verify(pkcs7); in verify_pefile_signature()
469 ret = pkcs7_validate_trust(pkcs7, trusted_keyring, _trusted); in verify_pefile_signature()
472 pkcs7_free_message(ctx.pkcs7); in verify_pefile_signature()