Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 19 of 19) sorted by relevance

/linux/crypto/asymmetric_keys/
A Dx509_public_key.c48 sig->s = kmemdup(cert->raw_sig, cert->raw_sig_size, GFP_KERNEL); in x509_get_sig_params()
110 if (cert->raw_subject_size != cert->raw_issuer_size || in x509_check_for_self_signed()
111 memcmp(cert->raw_subject, cert->raw_issuer, in x509_check_for_self_signed()
115 if (cert->sig->auth_ids[0] || cert->sig->auth_ids[1]) { in x509_check_for_self_signed()
120 bool b = asymmetric_key_id_same(cert->id, cert->sig->auth_ids[0]); in x509_check_for_self_signed()
127 cert->sig->auth_ids[0] && cert->sig->auth_ids[1]) in x509_check_for_self_signed()
132 if (strcmp(cert->pub->pkey_algo, cert->sig->pkey_algo) != 0 && in x509_check_for_self_signed()
137 ret = public_key_verify_signature(cert->pub, cert->sig); in x509_check_for_self_signed()
171 if (IS_ERR(cert)) in x509_key_preparse()
192 cert->sig->pkey_algo, cert->sig->hash_algo); in x509_key_preparse()
[all …]
A Dx509_cert_parser.c48 if (cert) { in x509_free_certificate()
51 kfree(cert->issuer); in x509_free_certificate()
53 kfree(cert->id); in x509_free_certificate()
54 kfree(cert->skid); in x509_free_certificate()
55 kfree(cert); in x509_free_certificate()
72 if (!cert) in x509_cert_parse()
75 if (!cert->pub) in x509_cert_parse()
78 if (!cert->sig) in x509_cert_parse()
84 ctx->cert = cert; in x509_cert_parse()
132 cert->id = kid; in x509_cert_parse()
[all …]
A Dpkcs7_parser.c59 struct x509_certificate *cert; in pkcs7_free_message() local
64 cert = pkcs7->certs; in pkcs7_free_message()
65 pkcs7->certs = cert->next; in pkcs7_free_message()
66 x509_free_certificate(cert); in pkcs7_free_message()
69 cert = pkcs7->crl; in pkcs7_free_message()
70 pkcs7->crl = cert->next; in pkcs7_free_message()
71 x509_free_certificate(cert); in pkcs7_free_message()
157 struct x509_certificate *cert = ctx->certs; in pkcs7_parse_message() local
158 ctx->certs = cert->next; in pkcs7_parse_message()
159 x509_free_certificate(cert); in pkcs7_parse_message()
A Dx509_parser.h47 extern void x509_free_certificate(struct x509_certificate *cert);
56 extern int x509_get_sig_params(struct x509_certificate *cert);
57 extern int x509_check_for_self_signed(struct x509_certificate *cert);
A Dtpm.asn13 -- http://david.woodhou.se/draft-woodhouse-cert-best-practice.html#I-D.mavrogiannopoulos-tpmuri
/linux/scripts/
A D.extract-cert.cmd1cert := gcc -Wp,-MMD,scripts/.extract-cert.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -f…
3 source_scripts/extract-cert := scripts/extract-cert.c
5 deps_scripts/extract-cert := \
7 scripts/extract-cert: $(deps_scripts/extract-cert)
9 $(deps_scripts/extract-cert):
A DMakefile15 hostprogs-always-$(CONFIG_SYSTEM_TRUSTED_KEYRING) += extract-cert
16 hostprogs-always-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert
17 hostprogs-always-$(CONFIG_SYSTEM_REVOCATION_LIST) += extract-cert
23 HOSTCFLAGS_extract-cert.o = $(CRYPTO_CFLAGS)
24 HOSTLDLIBS_extract-cert = $(CRYPTO_LIBS)
A Dextract-cert.c118 X509 *cert; in main() member
122 parms.cert = NULL; in main()
135 ERR(!parms.cert, "Get X.509 from PKCS#11"); in main()
136 write_cert(parms.cert); in main()
A D.gitignore4 /extract-cert
5 /insert-sys-cert
A Dinsert-sys-cert.c281 char *cert; in main() local
310 cert = read_file(cert_file, &cert_size); in main()
311 if (!cert) in main()
390 strncmp(cert_sym.content, cert, cert_size) == 0) { in main()
398 memcpy(cert_sym.content, cert, cert_size); in main()
/linux/arch/s390/boot/
A Dipl_report.c34 struct ipl_rb_certificate_entry *cert; in find_bootdata_space() local
45 for_each_rb_entry(cert, certs) in find_bootdata_space()
46 ipl_cert_list_size += sizeof(unsigned int) + cert->len; in find_bootdata_space()
65 for_each_rb_entry(cert, certs) in find_bootdata_space()
66 if (intersects(safe_addr, size, cert->addr, cert->len)) { in find_bootdata_space()
67 safe_addr = cert->addr + cert->len; in find_bootdata_space()
87 struct ipl_rb_certificate_entry *cert; in copy_certificates_bootdata() local
91 for_each_rb_entry(cert, certs) { in copy_certificates_bootdata()
92 *(unsigned int *) ptr = cert->len; in copy_certificates_bootdata()
94 memcpy(ptr, (void *) cert->addr, cert->len); in copy_certificates_bootdata()
[all …]
/linux/certs/
A DMakefile26 cmd_extract_certs = scripts/extract-cert $(2) $@
29 $(obj)/x509_certificate_list: scripts/extract-cert $(SYSTEM_TRUSTED_KEYS_SRCPREFIX)$(SYSTEM_TRUSTED…
136 $(obj)/signing_key.x509: scripts/extract-cert $(X509_DEP) FORCE
147 cmd_extract_certs = scripts/extract-cert $(2) $@
150 $(obj)/x509_revocation_list: scripts/extract-cert $(SYSTEM_REVOCATION_KEYS_SRCPREFIX)$(SYSTEM_REVOC…
A D.x509_certificate_list.cmd1 cmd_certs/x509_certificate_list := scripts/extract-cert "" certs/x509_certificate_list
/linux/drivers/staging/greybus/Documentation/firmware/
A Dauthenticate.c19 struct cap_ioc_get_ims_certificate cert = { variable
66 ret = ioctl(fd, CAP_IOC_GET_IMS_CERTIFICATE, &cert); in main()
73 printf("IMS Certificate size: %d\n", cert.cert_size); in main()
/linux/arch/s390/kernel/
A Dipl.c2112 cert = vzalloc(sizeof(*cert)); in ipl_report_add_certificate()
2113 if (!cert) in ipl_report_add_certificate()
2117 cert->entry.addr = addr; in ipl_report_add_certificate()
2118 cert->entry.len = len; in ipl_report_add_certificate()
2119 cert->key = key; in ipl_report_add_certificate()
2122 report->size += cert->entry.len; in ipl_report_add_certificate()
2186 memcpy(ptr, &cert->entry, sizeof(cert->entry)); in ipl_report_finish()
2187 ptr += sizeof(cert->entry); in ipl_report_finish()
2193 memcpy(ptr, cert->key, cert->entry.len); in ipl_report_finish()
2194 ptr += cert->entry.len; in ipl_report_finish()
[all …]
/linux/Documentation/crypto/
A Dasymmetric-keys.rst380 keyctl padd asymmetric "" $root_id < root1.cert
381 keyctl padd asymmetric "" $root_id < root2.cert
389 keyctl padd asymmetric "" $chain_id < intermediateA.cert
390 keyctl padd asymmetric "" $chain_id < intermediateB.cert
391 keyctl padd asymmetric "" $chain_id < end-entity.cert
402 keyctl padd asymmetric "" $chain2_id < root1.cert
404 # Restrict the keyring that already has root1.cert linked. The cert
410 keyctl padd asymmetric "" $chain2_id < intermediateA.cert
411 keyctl padd asymmetric "" $chain2_id < intermediateB.cert
412 keyctl padd asymmetric "" $chain2_id < end-entity.cert
/linux/arch/s390/include/asm/
A Dipl.h128 unsigned char flags, unsigned short cert);
/linux/security/integrity/ima/
A DKconfig266 bool "Permit keys validly signed by a built-in or secondary CA cert (EXPERIMENTAL)"
274 key is validly signed by a CA cert in the system built-in or
/linux/
A DMAINTAINERS4414 F: scripts/extract-cert.c

Completed in 61 milliseconds