Home
last modified time | relevance | path

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

/u-boot/lib/crypto/
A Dx509_public_key.c63 sig->s = kmemdup(cert->raw_sig, cert->raw_sig_size, GFP_KERNEL); in x509_get_sig_params()
148 if (cert->raw_subject_size != cert->raw_issuer_size || in x509_check_for_self_signed()
149 memcmp(cert->raw_subject, cert->raw_issuer, in x509_check_for_self_signed()
153 if (cert->sig->auth_ids[0] || cert->sig->auth_ids[1]) { in x509_check_for_self_signed()
165 cert->sig->auth_ids[0] && cert->sig->auth_ids[1]) in x509_check_for_self_signed()
170 if (strcmp(cert->pub->pkey_algo, cert->sig->pkey_algo) != 0) in x509_check_for_self_signed()
173 ret = public_key_verify_signature(cert->pub, cert->sig); in x509_check_for_self_signed()
208 if (IS_ERR(cert)) in x509_key_preparse()
229 cert->sig->pkey_algo, cert->sig->hash_algo); in x509_key_preparse()
274 cert->pub = NULL; in x509_key_preparse()
[all …]
A Dx509_cert_parser.c59 if (cert) { in x509_free_certificate()
62 kfree(cert->issuer); in x509_free_certificate()
64 kfree(cert->id); in x509_free_certificate()
65 kfree(cert->skid); in x509_free_certificate()
66 kfree(cert); in x509_free_certificate()
83 if (!cert) in x509_cert_parse()
86 if (!cert->pub) in x509_cert_parse()
89 if (!cert->sig) in x509_cert_parse()
95 ctx->cert = cert; in x509_cert_parse()
143 cert->id = kid; in x509_cert_parse()
[all …]
A Dpkcs7_parser.c71 struct x509_certificate *cert; in pkcs7_free_message() local
76 cert = pkcs7->certs; in pkcs7_free_message()
77 pkcs7->certs = cert->next; in pkcs7_free_message()
78 x509_free_certificate(cert); in pkcs7_free_message()
81 cert = pkcs7->crl; in pkcs7_free_message()
82 pkcs7->crl = cert->next; in pkcs7_free_message()
83 x509_free_certificate(cert); in pkcs7_free_message()
169 struct x509_certificate *cert = ctx->certs; in pkcs7_parse_message() local
170 ctx->certs = cert->next; in pkcs7_parse_message()
171 x509_free_certificate(cert); in pkcs7_parse_message()
/u-boot/test/lib/
A Dasn1.c119 struct x509_certificate *cert; in lib_asn1_x509() local
121 cert = x509_cert_parse(cert_data, cert_data_len); in lib_asn1_x509()
123 ut_assertf(cert != NULL, "decoding failed\n"); in lib_asn1_x509()
124 ut_assertf(!strcmp(cert->subject, "Linaro: Tester"), in lib_asn1_x509()
126 ut_assertf(!strcmp(cert->issuer, "Linaro: Tester"), in lib_asn1_x509()
128 ut_assertf(cert->pub, "public key doesn't exist\n"); in lib_asn1_x509()
129 ut_assertf(cert->pub->keylen == 0x10e, "key length doesn't match\n"); in lib_asn1_x509()
130 ut_assertf(!strcmp(cert->pub->pkey_algo, "rsa"), "algo isn't rsa\n"); in lib_asn1_x509()
131 ut_assertf(cert->valid_from == 0x5da92ddb, in lib_asn1_x509()
133 ut_assertf(cert->valid_to == 0x5f8a615b, "valid_to doesn't match\n"); in lib_asn1_x509()
[all …]
/u-boot/include/crypto/
A Dx509_parser.h50 extern void x509_free_certificate(struct x509_certificate *cert);
59 extern int x509_get_sig_params(struct x509_certificate *cert);
60 extern int x509_check_for_self_signed(struct x509_certificate *cert);
/u-boot/lib/efi_loader/
A Defi_signature.c234 if (!cert || !db || !db->sig_data_list) in efi_lookup_certificate()
242 reg[0].data = cert->tbs; in efi_lookup_certificate()
243 reg[0].size = cert->tbs_size; in efi_lookup_certificate()
302 struct x509_certificate *cert; in efi_verify_certificate() local
319 if (IS_ERR_OR_NULL(cert)) { in efi_verify_certificate()
329 *root = cert; in efi_verify_certificate()
331 x509_free_certificate(cert); in efi_verify_certificate()
334 x509_free_certificate(cert); in efi_verify_certificate()
359 struct x509_certificate *cert, in efi_signature_check_revocation() argument
381 reg[0].data = cert->tbs; in efi_signature_check_revocation()
[all …]
/u-boot/lib/rsa/
A Drsa-sign.c61 X509 *cert; in rsa_pem_get_pub_key() local
76 cert = NULL; in rsa_pem_get_pub_key()
77 if (!PEM_read_X509(f, &cert, NULL, NULL)) { in rsa_pem_get_pub_key()
84 key = X509_get_pubkey(cert); in rsa_pem_get_pub_key()
100 X509_free(cert); in rsa_pem_get_pub_key()
108 X509_free(cert); in rsa_pem_get_pub_key()
/u-boot/doc/board/emulation/
A Dqemu_capsule_update.rst112 $ cert-to-efi-sig-list CRT.crt CRT.esl
127 --update-image-index <val> --signer-private-cert \
128 /path/to/CRT.pem --trusted-public-cert \
129 /path/to/CRT.pub.pem --other-public-cert /path/to/CRT.pub.pem \
/u-boot/tools/
A Defivar.py276 def pkcs7_sign(cert, key, buf): argument
277 with open(cert, 'r') as f:
308 sig = pkcs7_sign(args.cert, args.key, buf)
A Dk3_gen_x509_cert.sh9 TEMP_X509=x509-temp.cert
/u-boot/doc/uefi/
A Duefi.rst138 cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc \
148 cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc \
158 cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc \
168 sbsign --key db.key --cert db.crt helloworld.efi

Completed in 25 milliseconds