Home
last modified time | relevance | path

Searched refs:x509 (Results 1 – 9 of 9) sorted by relevance

/linux-4.1.27/crypto/asymmetric_keys/
Dpkcs7_verify.c131 struct x509_certificate *x509; in pkcs7_find_key() local
136 for (x509 = pkcs7->certs; x509; x509 = x509->next, certix++) { in pkcs7_find_key()
142 if (!asymmetric_key_id_same(x509->id, sinfo->signing_cert_id)) in pkcs7_find_key()
147 if (x509->pub->pkey_algo != sinfo->sig.pkey_algo) { in pkcs7_find_key()
153 sinfo->signer = x509; in pkcs7_find_key()
172 struct x509_certificate *x509 = sinfo->signer, *p; in pkcs7_verify_sig_chain() local
182 x509->subject, in pkcs7_verify_sig_chain()
183 x509->raw_serial_size, x509->raw_serial); in pkcs7_verify_sig_chain()
184 x509->seen = true; in pkcs7_verify_sig_chain()
185 ret = x509_get_sig_params(x509); in pkcs7_verify_sig_chain()
[all …]
Dpkcs7_trust.c31 struct x509_certificate *x509, *last = NULL, *p; in pkcs7_validate_trust_one() local
43 for (x509 = sinfo->signer; x509; x509 = x509->signer) { in pkcs7_validate_trust_one()
44 if (x509->seen) { in pkcs7_validate_trust_one()
45 if (x509->verified) { in pkcs7_validate_trust_one()
46 trusted = x509->trusted; in pkcs7_validate_trust_one()
52 x509->seen = true; in pkcs7_validate_trust_one()
57 key = x509_request_asymmetric_key(trust_keyring, x509->id, in pkcs7_validate_trust_one()
66 sinfo->index, x509->index, key_serial(key)); in pkcs7_validate_trust_one()
75 if (x509->next == x509) { in pkcs7_validate_trust_one()
81 last = x509; in pkcs7_validate_trust_one()
[all …]
DMakefile17 x509-asn1.o \
24 $(obj)/x509-asn1.h \
27 $(obj)/x509-asn1.o: $(obj)/x509-asn1.c $(obj)/x509-asn1.h
31 clean-files += x509-asn1.c x509-asn1.h
Dpkcs7_parser.c236 struct x509_certificate *x509; in pkcs7_extract_cert() local
255 x509 = x509_cert_parse(value, vlen); in pkcs7_extract_cert()
256 if (IS_ERR(x509)) in pkcs7_extract_cert()
257 return PTR_ERR(x509); in pkcs7_extract_cert()
259 x509->index = ++ctx->x509_index; in pkcs7_extract_cert()
260 pr_debug("Got cert %u for %s\n", x509->index, x509->subject); in pkcs7_extract_cert()
261 pr_debug("- fingerprint %*phN\n", x509->id->len, x509->id->data); in pkcs7_extract_cert()
263 *ctx->ppcerts = x509; in pkcs7_extract_cert()
264 ctx->ppcerts = &x509->next; in pkcs7_extract_cert()
/linux-4.1.27/kernel/
DMakefile128 X509_CERTIFICATES-y := $(wildcard *.x509) $(wildcard $(srctree)/*.x509)
129 X509_CERTIFICATES-$(CONFIG_MODULE_SIG) += $(objtree)/signing_key.x509
138 ifneq ($(wildcard $(obj)/.x509.list),)
139 ifneq ($(shell cat $(obj)/.x509.list),$(X509_CERTIFICATES))
141 $(shell rm $(obj)/.x509.list)
151 $(obj)/x509_certificate_list: $(X509_CERTIFICATES) $(obj)/.x509.list
154 targets += $(obj)/.x509.list
155 $(obj)/.x509.list:
159 clean-files := x509_certificate_list .x509.list
173 signing_key.priv signing_key.x509: x509.genkey
[all …]
/linux-4.1.27/scripts/
Dsign-file28 my $x509 = shift @ARGV;
40 die "Can't read X.509 certificate\n" unless (-r $x509);
80 my $x509_certificate = read_file($x509);
126 die $x509, ": ", $cursor->[0], ": ASN.1 data underrun (elem ", $cursor->[1], ")\n"
134 die $x509, ": ", $cursor->[0], ": ASN.1 unexpected tag (", $tag,
141 die $x509, ": ", $cursor->[0], ": ASN.1 long tag\n"
143 die $x509, ": ", $cursor->[0], ": ASN.1 indefinite length\n"
148 die $x509, ": ", $cursor->[0], ": ASN.1 data underrun (len len $l)\n"
161 die $x509, ": ", $cursor->[0], ": ASN.1 element too long (", $l, ")\n";
168 die $x509, ": ", $cursor->[0], ": ASN.1 data underrun (", $len, ")\n"
[all …]
/linux-4.1.27/Documentation/
Dmodule-signing.txt107 signing_key.x509
112 x509.genkey
116 It is strongly recommended that you provide your own x509.genkey file.
118 Most notably, in the x509.genkey file, the req_distinguished_name section
133 x509.genkey key generation configuration file in the root node of the Linux
137 openssl req -new -nodes -utf8 -sha256 -days 36500 -batch -x509 \
138 -config x509.genkey -outform DER -out signing_key.x509 \
157 whose name is suffixed with ".x509" will be assumed to be an X.509 public key
169 keyctl padd asymmetric "" 0x223c7853 <my_public_key.x509
191 kernel-signkey.x509 module.ko
/linux-4.1.27/
D.gitignore101 signing_key.x509
102 x509.genkey
DMakefile878 MODPUBKEY = ./signing_key.x509
1180 signing_key.priv signing_key.x509 x509.genkey \
1181 extra_certificates signing_key.x509.keyid \
1182 signing_key.x509.signer vmlinux-gdb.py