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()
425 struct pkcs7_message *pkcs7; in verify_pefile_signature() local
442 pkcs7 = pkcs7_parse_message(pebuf + ctx.sig_offset, ctx.sig_len); in verify_pefile_signature()
443 if (IS_ERR(pkcs7)) in verify_pefile_signature()
444 return PTR_ERR(pkcs7); in verify_pefile_signature()
445 ctx.pkcs7 = pkcs7; in verify_pefile_signature()
447 ret = pkcs7_get_content_data(ctx.pkcs7, &data, &datalen, false); in verify_pefile_signature()
468 ret = pkcs7_verify(pkcs7, usage); in verify_pefile_signature()
472 ret = pkcs7_validate_trust(pkcs7, trusted_keyring, _trusted); in verify_pefile_signature()
475 pkcs7_free_message(ctx.pkcs7); in verify_pefile_signature()