/openbmc/linux/crypto/asymmetric_keys/ |
H A D | x509_public_key.c | 35 sig->s = kmemdup(cert->raw_sig, cert->raw_sig_size, GFP_KERNEL); in x509_get_sig_params() 75 crypto_shash_finup(desc, cert->tbs, cert->tbs_size, in x509_get_sig_params() 78 ret = crypto_shash_digest(desc, cert->tbs, cert->tbs_size, in x509_get_sig_params() 112 if (cert->raw_subject_size != cert->raw_issuer_size || in x509_check_for_self_signed() 113 memcmp(cert->raw_subject, cert->raw_issuer, in x509_check_for_self_signed() 117 if (cert->sig->auth_ids[0] || cert->sig->auth_ids[1]) { in x509_check_for_self_signed() 129 cert->sig->auth_ids[0] && cert->sig->auth_ids[1]) in x509_check_for_self_signed() 138 ret = public_key_verify_signature(cert->pub, cert->sig); in x509_check_for_self_signed() 172 if (IS_ERR(cert)) in x509_key_preparse() 187 cert->sig->pkey_algo, cert->sig->hash_algo); in x509_key_preparse() [all …]
|
H A D | x509_cert_parser.c | 46 if (cert) { in x509_free_certificate() 49 kfree(cert->issuer); in x509_free_certificate() 51 kfree(cert->id); in x509_free_certificate() 52 kfree(cert->skid); in x509_free_certificate() 53 kfree(cert); in x509_free_certificate() 70 if (!cert) in x509_cert_parse() 73 if (!cert->pub) in x509_cert_parse() 76 if (!cert->sig) in x509_cert_parse() 82 ctx->cert = cert; in x509_cert_parse() 130 cert->id = kid; in x509_cert_parse() [all …]
|
/openbmc/qemu/scripts/ |
H A D | u2f-setup-gen.py | 92 cert = crypto.X509() 93 cert.set_version(0x2) 96 cert.set_serial_number(randint(1, 2 ** 64)) 99 cert.gmtime_adj_notBefore(0) 103 cert.set_pubkey(pubkey) 106 cert.get_subject().CN = "U2F emulated" 107 cert.set_issuer(cert.get_subject()) 110 cert.add_extensions([ 114 cert.add_extensions([ 118 cert.add_extensions([ [all …]
|
/openbmc/linux/arch/s390/boot/ |
H A D | ipl_report.c | 31 struct ipl_rb_certificate_entry *cert; in get_cert_comp_list_size() local 42 for_each_rb_entry(cert, certs) in get_cert_comp_list_size() 50 struct ipl_rb_certificate_entry *cert; in ipl_report_certs_intersects() local 55 for_each_rb_entry(cert, certs) { in ipl_report_certs_intersects() 56 if (intersects(addr, size, cert->addr, cert->len)) { in ipl_report_certs_intersects() 57 *intersection_start = cert->addr; in ipl_report_certs_intersects() 75 struct ipl_rb_certificate_entry *cert; in copy_certificates_bootdata() local 79 for_each_rb_entry(cert, certs) { in copy_certificates_bootdata() 80 *(unsigned int *) ptr = cert->len; in copy_certificates_bootdata() 82 memcpy(ptr, (void *) cert->addr, cert->len); in copy_certificates_bootdata() [all …]
|
/openbmc/qemu/crypto/ |
H A D | tlscredsx509.c | 379 gnutls_x509_crt_t cert = NULL; in qcrypto_tls_creds_load_cert() local 419 gnutls_x509_crt_deinit(cert); in qcrypto_tls_creds_load_cert() 420 cert = NULL; in qcrypto_tls_creds_load_cert() 422 return cert; in qcrypto_tls_creds_load_cert() 473 gnutls_x509_crt_t cert = NULL; in qcrypto_tls_creds_x509_sanity_check() local 485 if (!cert) { in qcrypto_tls_creds_x509_sanity_check() 498 if (cert && in qcrypto_tls_creds_x509_sanity_check() 513 if (cert && ncacerts && in qcrypto_tls_creds_x509_sanity_check() 523 if (cert) { in qcrypto_tls_creds_x509_sanity_check() 524 gnutls_x509_crt_deinit(cert); in qcrypto_tls_creds_x509_sanity_check() [all …]
|
/openbmc/bmcweb/scripts/ |
H A D | generate_auth_certificates.py | 34 cert = crypto.X509() 36 cert.set_version(2) 37 cert.set_pubkey(key) 51 cert.add_extensions( 62 cert.add_extensions( 71 cert.sign(key, "sha256") 72 return key, cert 119 cert = crypto.X509() 121 cert.set_version(2) 153 return key, cert [all …]
|
/openbmc/phosphor-certificate-manager/ |
H A D | x509_utils.cpp | 94 X509Ptr cert(X509_new(), ::X509_free); in loadCert() local 95 if (!cert) in loadCert() 111 X509* x509 = cert.get(); in loadCert() 118 return cert; in loadCert() 123 void validateCertificateStartDate(X509& cert) in validateCertificateStartDate() argument 211 void validateCertificateInSSLContext(X509& cert) in validateCertificateInSSLContext() argument 223 std::string generateCertId(X509& cert) in generateCertId() argument 243 X509Ptr cert(X509_new(), ::X509_free); in parseCert() local 244 if (!cert) in parseCert() 253 X509* x509 = cert.get(); in parseCert() [all …]
|
H A D | certificate.cpp | 343 validateCertificateStartDate(*cert); in install() 344 validateCertificateInSSLContext(*cert); in install() 374 certId = generateCertId(*cert); in install() 377 populateProperties(*cert); in install() 416 validateCertificateStartDate(*cert); in install() 417 validateCertificateInSSLContext(*cert); in install() 423 certId = generateCertId(*cert); in install() 425 populateProperties(*cert); in install() 436 populateProperties(*cert); in populateProperties() 615 if (!cert) in compareKeys() [all …]
|
/openbmc/libcper/ |
H A D | .clang-tidy | 48 cert-con36-c, 50 cert-dcl03-c, 51 cert-dcl16-c, 53 cert-dcl37-c, 59 cert-env33-c, 65 cert-fio38-c, 66 cert-flp30-c, 76 cert-pos44-c, 77 cert-pos47-c, 78 cert-sig30-c, [all …]
|
/openbmc/obmc-console/ |
H A D | .clang-tidy | 48 cert-con36-c, 50 cert-dcl03-c, 51 cert-dcl16-c, 53 cert-dcl37-c, 59 cert-env33-c, 61 cert-err34-c, 65 cert-fio38-c, 66 cert-flp30-c, 68 cert-msc30-c, 69 cert-msc32-c, [all …]
|
/openbmc/libpldm/ |
H A D | .clang-tidy | 48 cert-con36-c, 50 cert-dcl03-c, 51 cert-dcl16-c, 53 cert-dcl37-c, 59 cert-env33-c, 61 cert-err34-c, 65 cert-fio38-c, 66 cert-flp30-c, 68 cert-msc30-c, 69 cert-msc32-c, [all …]
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/certificate/ |
H A D | phosphor-certificate-manager_git.bb | 15 PACKAGECONFIG ??= "bmcweb-cert authority-cert" 16 PACKAGECONFIG[ibm-hypervisor-cert] = "-Dca-cert-extension=enabled,-Dca-cert-extension=disabled" 17 PACKAGECONFIG[bmcweb-cert] = "-Dconfig-bmcweb=enabled,-Dconfig-bmcweb=disabled" 18 PACKAGECONFIG[authority-cert] = "-Dconfig-authority=enabled,-Dconfig-authority=disabled" 28 …${@bb.utils.contains('PACKAGECONFIG', 'ibm-hypervisor-cert', 'bmc-vmi-ca-manager.service', '', d)}… 29 …${@bb.utils.contains('PACKAGECONFIG', 'authority-cert', 'phosphor-certificate-manager@authority.se…
|
/openbmc/phosphor-state-manager/ |
H A D | .clang-tidy | 59 cert-con36-c, 61 cert-dcl03-c, 62 cert-dcl16-c, 64 cert-dcl37-c, 70 cert-env33-c, 72 cert-err34-c, 76 cert-fio38-c, 77 cert-flp30-c, 79 cert-msc30-c, 80 cert-msc32-c, [all …]
|
/openbmc/phosphor-led-manager/ |
H A D | .clang-tidy | 59 cert-con36-c, 61 cert-dcl03-c, 62 cert-dcl16-c, 64 cert-dcl37-c, 70 cert-env33-c, 72 cert-err34-c, 76 cert-fio38-c, 77 cert-flp30-c, 79 cert-msc30-c, 80 cert-msc32-c, [all …]
|
/openbmc/linux/certs/ |
H A D | Makefile | 26 cmd_extract_certs = $(obj)/extract-cert "$(extract-cert-in)" $@ 27 extract-cert-in = $(filter-out $(obj)/extract-cert, $(real-prereqs)) 31 $(obj)/x509_certificate_list: $(CONFIG_SYSTEM_TRUSTED_KEYS) $(obj)/extract-cert FORCE 70 $(obj)/signing_key.x509: extract-cert-in := $(PKCS11_URI) 73 $(obj)/signing_key.x509: $(filter-out $(PKCS11_URI),$(CONFIG_MODULE_SIG_KEY)) $(obj)/extract-cert F… 80 $(obj)/x509_revocation_list: $(CONFIG_SYSTEM_REVOCATION_KEYS) $(obj)/extract-cert FORCE 85 hostprogs := extract-cert 87 HOSTCFLAGS_extract-cert.o = $(shell $(HOSTPKG_CONFIG) --cflags libcrypto 2> /dev/null) 88 HOSTLDLIBS_extract-cert = $(shell $(HOSTPKG_CONFIG) --libs libcrypto 2> /dev/null || echo -lcrypto)
|
/openbmc/phosphor-bmc-code-mgmt/ |
H A D | .clang-tidy | 59 cert-con36-c, 61 cert-dcl03-c, 62 cert-dcl16-c, 64 cert-dcl37-c, 71 cert-err34-c, 75 cert-fio38-c, 76 cert-flp30-c, 78 cert-msc30-c, 79 cert-msc32-c, 86 cert-pos44-c, [all …]
|
/openbmc/estoraged/ |
H A D | .clang-tidy | 62 cert-con36-c, 64 cert-dcl03-c, 65 cert-dcl16-c, 67 cert-dcl37-c, 73 cert-env33-c, 75 cert-err34-c, 79 cert-fio38-c, 80 cert-flp30-c, 82 cert-msc30-c, 83 cert-msc32-c, [all …]
|
/openbmc/phosphor-time-manager/ |
H A D | .clang-tidy | 59 cert-con36-c, 61 cert-dcl03-c, 62 cert-dcl16-c, 64 cert-dcl37-c, 70 cert-env33-c, 72 cert-err34-c, 76 cert-fio38-c, 77 cert-flp30-c, 79 cert-msc30-c, 80 cert-msc32-c, [all …]
|
/openbmc/phosphor-psu-code-mgmt/ |
H A D | .clang-tidy | 58 cert-con36-c, 60 cert-dcl03-c, 61 cert-dcl16-c, 68 cert-err34-c, 72 cert-fio38-c, 73 cert-flp30-c, 75 cert-msc30-c, 76 cert-msc32-c, 83 cert-pos44-c, 84 cert-pos47-c, [all …]
|
/openbmc/bios-bmc-smm-error-logger/ |
H A D | .clang-tidy | 112 cert-con36-c, 113 cert-con54-cpp, 114 cert-dcl03-c, 115 cert-dcl16-c, 117 cert-dcl37-c, 123 cert-env33-c, 125 cert-err34-c, 129 cert-fio38-c, 130 cert-flp30-c, 132 cert-msc30-c, [all …]
|
/openbmc/bmcweb/include/ |
H A D | hostname_monitor.hpp | 72 X509* cert = ensuressl::loadCert(certFile); in onPropertyUpdate() local 73 if (cert == nullptr) in onPropertyUpdate() 83 X509_NAME_get_text_by_NID(X509_get_subject_name(cert), NID_commonName, in onPropertyUpdate() 88 X509_free(cert); in onPropertyUpdate() 94 EVP_PKEY* pPubKey = X509_get_pubkey(cert); in onPropertyUpdate() 98 X509_free(cert); in onPropertyUpdate() 101 int isSelfSigned = X509_verify(cert, pPubKey); in onPropertyUpdate() 109 X509_get_ext_d2i(cert, NID_netscape_comment, nullptr, nullptr)); in onPropertyUpdate() 137 X509_free(cert); in onPropertyUpdate()
|
/openbmc/pldm/ |
H A D | .clang-tidy | 54 cert-con54-cpp, 55 cert-dcl21-cpp, 56 cert-dcl50-cpp, 57 cert-dcl54-cpp, 58 cert-dcl58-cpp, 59 cert-dcl59-cpp, 60 cert-err09-cpp, 61 cert-err52-cpp, 62 cert-err60-cpp, 63 cert-err61-cpp, [all …]
|
/openbmc/phosphor-led-sysfs/ |
H A D | .clang-tidy | 61 cert-con36-c, 63 cert-dcl03-c, 64 cert-dcl16-c, 66 cert-dcl37-c, 72 cert-env33-c, 74 cert-err34-c, 78 cert-fio38-c, 79 cert-flp30-c, 81 cert-msc30-c, 82 cert-msc32-c, [all …]
|
/openbmc/entity-manager/ |
H A D | .clang-tidy | 81 cert-con36-c, 83 cert-dcl03-c, 84 cert-dcl16-c, 86 cert-dcl37-c, 92 cert-env33-c, 94 cert-err34-c, 98 cert-fio38-c, 99 cert-flp30-c, 101 cert-msc30-c, 102 cert-msc32-c, [all …]
|
/openbmc/bmcweb/ |
H A D | .clang-tidy | 83 cert-con36-c, 85 cert-dcl03-c, 86 cert-dcl16-c, 88 cert-dcl37-c, 94 cert-env33-c, 96 cert-err34-c, 100 cert-fio38-c, 101 cert-flp30-c, 103 cert-msc30-c, 104 cert-msc32-c, [all …]
|