pkcs7 204 certs/system_keyring.c struct pkcs7_message *pkcs7, pkcs7 215 certs/system_keyring.c if (data && pkcs7_supply_detached_data(pkcs7, data, len) < 0) { pkcs7 221 certs/system_keyring.c ret = pkcs7_verify(pkcs7, usage); pkcs7 245 certs/system_keyring.c ret = pkcs7_validate_trust(pkcs7, trusted_keys); pkcs7 255 certs/system_keyring.c ret = pkcs7_get_content_data(pkcs7, &data, &len, &asn1hdrlen); pkcs7 291 certs/system_keyring.c struct pkcs7_message *pkcs7; pkcs7 294 certs/system_keyring.c pkcs7 = pkcs7_parse_message(raw_pkcs7, pkcs7_len); pkcs7 295 certs/system_keyring.c if (IS_ERR(pkcs7)) pkcs7 296 certs/system_keyring.c return PTR_ERR(pkcs7); pkcs7 298 certs/system_keyring.c ret = verify_pkcs7_message_sig(data, len, pkcs7, trusted_keys, usage, pkcs7 301 certs/system_keyring.c pkcs7_free_message(pkcs7); pkcs7 57 crypto/asymmetric_keys/pkcs7_parser.c void pkcs7_free_message(struct pkcs7_message *pkcs7) pkcs7 62 crypto/asymmetric_keys/pkcs7_parser.c if (pkcs7) { pkcs7 63 crypto/asymmetric_keys/pkcs7_parser.c while (pkcs7->certs) { pkcs7 64 crypto/asymmetric_keys/pkcs7_parser.c cert = pkcs7->certs; pkcs7 65 crypto/asymmetric_keys/pkcs7_parser.c pkcs7->certs = cert->next; pkcs7 68 crypto/asymmetric_keys/pkcs7_parser.c while (pkcs7->crl) { pkcs7 69 crypto/asymmetric_keys/pkcs7_parser.c cert = pkcs7->crl; pkcs7 70 crypto/asymmetric_keys/pkcs7_parser.c pkcs7->crl = cert->next; pkcs7 73 crypto/asymmetric_keys/pkcs7_parser.c while (pkcs7->signed_infos) { pkcs7 74 crypto/asymmetric_keys/pkcs7_parser.c sinfo = pkcs7->signed_infos; pkcs7 75 crypto/asymmetric_keys/pkcs7_parser.c pkcs7->signed_infos = sinfo->next; pkcs7 78 crypto/asymmetric_keys/pkcs7_parser.c kfree(pkcs7); pkcs7 185 crypto/asymmetric_keys/pkcs7_parser.c int pkcs7_get_content_data(const struct pkcs7_message *pkcs7, pkcs7 189 crypto/asymmetric_keys/pkcs7_parser.c if (!pkcs7->data) pkcs7 192 crypto/asymmetric_keys/pkcs7_parser.c *_data = pkcs7->data; pkcs7 193 crypto/asymmetric_keys/pkcs7_parser.c *_data_len = pkcs7->data_len; pkcs7 195 crypto/asymmetric_keys/pkcs7_parser.c *_headerlen = pkcs7->data_hdrlen; pkcs7 22 crypto/asymmetric_keys/pkcs7_trust.c static int pkcs7_validate_trust_one(struct pkcs7_message *pkcs7, pkcs7 158 crypto/asymmetric_keys/pkcs7_trust.c int pkcs7_validate_trust(struct pkcs7_message *pkcs7, pkcs7 166 crypto/asymmetric_keys/pkcs7_trust.c for (p = pkcs7->certs; p; p = p->next) pkcs7 169 crypto/asymmetric_keys/pkcs7_trust.c for (sinfo = pkcs7->signed_infos; sinfo; sinfo = sinfo->next) { pkcs7 170 crypto/asymmetric_keys/pkcs7_trust.c ret = pkcs7_validate_trust_one(pkcs7, sinfo, trust_keyring); pkcs7 22 crypto/asymmetric_keys/pkcs7_verify.c static int pkcs7_digest(struct pkcs7_message *pkcs7, pkcs7 62 crypto/asymmetric_keys/pkcs7_verify.c ret = crypto_shash_digest(desc, pkcs7->data, pkcs7->data_len, pkcs7 125 crypto/asymmetric_keys/pkcs7_verify.c int pkcs7_get_digest(struct pkcs7_message *pkcs7, const u8 **buf, u32 *len, pkcs7 128 crypto/asymmetric_keys/pkcs7_verify.c struct pkcs7_signed_info *sinfo = pkcs7->signed_infos; pkcs7 137 crypto/asymmetric_keys/pkcs7_verify.c ret = pkcs7_digest(pkcs7, sinfo); pkcs7 159 crypto/asymmetric_keys/pkcs7_verify.c static int pkcs7_find_key(struct pkcs7_message *pkcs7, pkcs7 167 crypto/asymmetric_keys/pkcs7_verify.c for (x509 = pkcs7->certs; x509; x509 = x509->next, certix++) { pkcs7 200 crypto/asymmetric_keys/pkcs7_verify.c static int pkcs7_verify_sig_chain(struct pkcs7_message *pkcs7, pkcs7 210 crypto/asymmetric_keys/pkcs7_verify.c for (p = pkcs7->certs; p; p = p->next) pkcs7 261 crypto/asymmetric_keys/pkcs7_verify.c for (p = pkcs7->certs; p; p = p->next) { pkcs7 270 crypto/asymmetric_keys/pkcs7_verify.c for (p = pkcs7->certs; p; p = p->next) { pkcs7 326 crypto/asymmetric_keys/pkcs7_verify.c static int pkcs7_verify_one(struct pkcs7_message *pkcs7, pkcs7 336 crypto/asymmetric_keys/pkcs7_verify.c ret = pkcs7_digest(pkcs7, sinfo); pkcs7 341 crypto/asymmetric_keys/pkcs7_verify.c ret = pkcs7_find_key(pkcs7, sinfo); pkcs7 371 crypto/asymmetric_keys/pkcs7_verify.c return pkcs7_verify_sig_chain(pkcs7, sinfo); pkcs7 404 crypto/asymmetric_keys/pkcs7_verify.c int pkcs7_verify(struct pkcs7_message *pkcs7, pkcs7 415 crypto/asymmetric_keys/pkcs7_verify.c if (pkcs7->data_type != OID_data) { pkcs7 419 crypto/asymmetric_keys/pkcs7_verify.c if (pkcs7->have_authattrs) { pkcs7 425 crypto/asymmetric_keys/pkcs7_verify.c if (pkcs7->data_type != OID_data) { pkcs7 429 crypto/asymmetric_keys/pkcs7_verify.c if (!pkcs7->have_authattrs) { pkcs7 435 crypto/asymmetric_keys/pkcs7_verify.c if (pkcs7->data_type != OID_msIndirectData) { pkcs7 442 crypto/asymmetric_keys/pkcs7_verify.c if (pkcs7->data_type != OID_data) { pkcs7 451 crypto/asymmetric_keys/pkcs7_verify.c for (sinfo = pkcs7->signed_infos; sinfo; sinfo = sinfo->next) { pkcs7 452 crypto/asymmetric_keys/pkcs7_verify.c ret = pkcs7_verify_one(pkcs7, sinfo); pkcs7 487 crypto/asymmetric_keys/pkcs7_verify.c int pkcs7_supply_detached_data(struct pkcs7_message *pkcs7, pkcs7 490 crypto/asymmetric_keys/pkcs7_verify.c if (pkcs7->data) { pkcs7 494 crypto/asymmetric_keys/pkcs7_verify.c pkcs7->data = data; pkcs7 495 crypto/asymmetric_keys/pkcs7_verify.c pkcs7->data_len = datalen; pkcs7 126 crypto/asymmetric_keys/verify_pefile.c const u8 *pkcs7; pkcs7 168 crypto/asymmetric_keys/verify_pefile.c pkcs7 = pebuf + ctx->sig_offset; pkcs7 169 crypto/asymmetric_keys/verify_pefile.c if (pkcs7[0] != (ASN1_CONS_BIT | ASN1_SEQ)) pkcs7 172 crypto/asymmetric_keys/verify_pefile.c switch (pkcs7[1]) { pkcs7 174 crypto/asymmetric_keys/verify_pefile.c len = pkcs7[1] + 2; pkcs7 179 crypto/asymmetric_keys/verify_pefile.c len = pkcs7[2] + 3; pkcs7 182 crypto/asymmetric_keys/verify_pefile.c len = ((pkcs7[2] << 8) | pkcs7[3]) + 4; pkcs7 23 include/crypto/pkcs7.h extern void pkcs7_free_message(struct pkcs7_message *pkcs7); pkcs7 25 include/crypto/pkcs7.h extern int pkcs7_get_content_data(const struct pkcs7_message *pkcs7, pkcs7 32 include/crypto/pkcs7.h extern int pkcs7_validate_trust(struct pkcs7_message *pkcs7, pkcs7 38 include/crypto/pkcs7.h extern int pkcs7_verify(struct pkcs7_message *pkcs7, pkcs7 41 include/crypto/pkcs7.h extern int pkcs7_supply_detached_data(struct pkcs7_message *pkcs7, pkcs7 44 include/crypto/pkcs7.h extern int pkcs7_get_digest(struct pkcs7_message *pkcs7, const u8 **buf, pkcs7 46 include/linux/verification.h struct pkcs7_message *pkcs7, pkcs7 227 scripts/sign-file.c PKCS7 *pkcs7 = NULL; pkcs7 322 scripts/sign-file.c pkcs7 = PKCS7_sign(x509, private_key, NULL, bm, pkcs7 325 scripts/sign-file.c ERR(!pkcs7, "PKCS7_sign"); pkcs7 340 scripts/sign-file.c ERR(i2d_PKCS7_bio(b, pkcs7) < 0, pkcs7 372 scripts/sign-file.c ERR(i2d_PKCS7_bio(bd, pkcs7) < 0, "%s", dest_name);