/openbmc/phosphor-certificate-manager/ |
H A D | csr.hpp | 3 #include <xyz/openbmc_project/Certs/CSR/server.hpp> 19 sdbusplus::xyz::openbmc_project::Certs::server::CSR>; 22 /** @class CSR 23 * @brief To read CSR certificate 25 class CSR : public internal::CSRInterface class 28 CSR() = delete; 29 ~CSR() = default; 30 CSR(const CSR&) = delete; 31 CSR& operator=(const CSR&) = delete; 32 CSR(CSR&&) = delete; [all …]
|
H A D | csr.cpp | 3 #include "csr.hpp" 32 CSR::CSR(sdbusplus::bus_t& bus, const char* path, std::string&& installPath, in CSR() function in phosphor::certs::CSR 42 std::string CSR::csr() in csr() function in phosphor::certs::CSR 46 lg2::error("Failure in Generating CSR"); in csr() 53 lg2::error("CSR file doesn't exists, FILENAME:{FILENAME}", "FILENAME", in csr() 67 lg2::error("ERROR occurred while reading CSR file, FILENAME:{FILENAME}", in csr()
|
/openbmc/qemu/hw/net/ |
H A D | tulip.c | 29 uint32_t csr[16]; member 53 VMSTATE_UINT32_ARRAY(csr, TULIPState, 16), 75 if (s->csr[0] & CSR0_DBO) { in tulip_desc_read() 93 if (s->csr[0] & CSR0_DBO) { in tulip_desc_write() 108 uint32_t ie = s->csr[5] & s->csr[7]; in tulip_update_int() 111 s->csr[5] &= ~(CSR5_AIS | CSR5_NIS); in tulip_update_int() 114 s->csr[5] |= CSR5_NIS; in tulip_update_int() 120 s->csr[5] |= CSR5_AIS; in tulip_update_int() 123 assert = s->csr[5] & s->csr[7] & (CSR5_AIS | CSR5_NIS); in tulip_update_int() 124 trace_tulip_irq(s->csr[5], s->csr[7], assert ? "assert" : "deassert"); in tulip_update_int() [all …]
|
H A D | pcnet.c | 65 #define CSR_INIT(S) !!(((S)->csr[0])&0x0001) 66 #define CSR_STRT(S) !!(((S)->csr[0])&0x0002) 67 #define CSR_STOP(S) !!(((S)->csr[0])&0x0004) 68 #define CSR_TDMD(S) !!(((S)->csr[0])&0x0008) 69 #define CSR_TXON(S) !!(((S)->csr[0])&0x0010) 70 #define CSR_RXON(S) !!(((S)->csr[0])&0x0020) 71 #define CSR_INEA(S) !!(((S)->csr[0])&0x0040) 72 #define CSR_BSWP(S) !!(((S)->csr[3])&0x0004) 73 #define CSR_LAPPEN(S) !!(((S)->csr[3])&0x0020) 74 #define CSR_DXSUFLO(S) !!(((S)->csr[3])&0x0040) [all …]
|
/openbmc/openbmc-test-automation/openpower/ext_interfaces/ |
H A D | test_vmicert_management.robot | 33 Get CSR Request Signed By VMI And Verify 34 [Documentation] Get CSR request signed by VMI using different user roles and verify. 41 # Send CSR request from operator user. 44 # Send CSR request from ReadOnly user. 47 # Send CSR request from NoAccess user. 70 Send CSR Request When VMI Is Off And Verify 71 [Documentation] Send CSR signing request to VMI when it is off and expect an error. 81 # Send CSR request from operator user. 84 # Send CSR request from ReadOnly user. 87 # Send CSR request from NoAccess user. [all …]
|
/openbmc/qemu/target/loongarch/tcg/insn_trans/ |
H A D | trans_privileged.c.inc | 8 #include "csr.h" 60 CSRInfo *csr; 62 csr = get_csr(csr_num); 63 if (!csr) { 67 csr->readfn = (GenCSRFunc)readfn; 68 csr->writefn = (GenCSRFunc)writefn; 89 static bool check_csr_flags(DisasContext *ctx, const CSRInfo *csr, bool write) 91 if ((csr->flags & CSRFL_READONLY) && write) { 94 if ((csr->flags & CSRFL_IO) && translator_io_start(&ctx->base)) { 96 } else if ((csr->flags & CSRFL_EXITTB) && write) { [all …]
|
/openbmc/u-boot/drivers/usb/musb/ |
H A D | musb_hcd.c | 40 u16 csr; in write_toggle() local 43 csr = readw(&musbr->txcsr); in write_toggle() 45 if (csr & MUSB_TXCSR_MODE) in write_toggle() 46 csr = MUSB_TXCSR_CLRDATATOG; in write_toggle() 48 csr = 0; in write_toggle() 49 writew(csr, &musbr->txcsr); in write_toggle() 51 csr |= MUSB_TXCSR_H_WR_DATATOGGLE; in write_toggle() 52 writew(csr, &musbr->txcsr); in write_toggle() 53 csr |= (toggle << MUSB_TXCSR_H_DATATOGGLE_SHIFT); in write_toggle() 54 writew(csr, &musbr->txcsr); in write_toggle() [all …]
|
/openbmc/u-boot/arch/riscv/include/asm/ |
H A D | csr.h | 5 * Taken from Linux arch/riscv/include/asm/csr.h 64 #define xcsr(csr) #csr argument 66 #define csr_swap(csr, val) \ argument 69 __asm__ __volatile__ ("csrrw %0, " xcsr(csr) ", %1" \ 75 #define csr_read(csr) \ argument 78 __asm__ __volatile__ ("csrr %0, " xcsr(csr) \ 84 #define csr_write(csr, val) \ argument 87 __asm__ __volatile__ ("csrw " xcsr(csr) ", %0" \ 92 #define csr_read_set(csr, val) \ argument 95 __asm__ __volatile__ ("csrrs %0, " xcsr(csr) ", %1" \ [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Certs/ |
H A D | README.md | 69 ## CSR section in BMC Certificate management 71 ### User flow for generating and installing Certificates(CSR Based) argument 73 [Certificate Signing Request][csr](CSR) is a message sent from an applicant to a 75 This section provides the details of the CSR based certificate user flow. 77 - The user performs the CSR/create interface BMC creates new private key and CSR 78 object which includes CSR information. 79 - The user performs the CSR/export interface Allows the user to export the CSR 80 file which is part of newly created CSR object. This can be provided to the CA 87 [csr]: https://en.wikipedia.org/wiki/Certificate_signing_request 91 - BMC updates the private key associated to CSR for any new CSR request. [all …]
|
H A D | CSR.interface.yaml | 2 Implement to retrieve the Certificate Signing Request(CSR). 5 - name: CSR 7 Method to get the CSR string. 10 xyz.openbmc_project.Object.Delete to allow the deletion of CSR 17 CSR string in the Base-64 encoded PEM format.
|
/openbmc/docs/designs/management-console/ |
H A D | VMI_Certificate_Exchange.md | 38 Management console needs an API through which it can send the CSR to VMI (CA) 55 its self-signed certificate to sign CSR from client. 66 The management console can send CSR string to VMI (CA) and get signed 90 client.csr SignCSR() | pldm call to host | 92 | | | Sign CSR 119 '{"CsrString":"<CSR string>"}' https://{BMC_IP}/ibm/v1/Host/Actions/SignCSR 157 ### Current flow for generating and installing Certificates (CSR Based) 159 - Certificate Signing Request CSR is a message sent from an applicant to a 161 - The user calls CSR interface BMC creates new private key and CSR Certificate 163 - CSR certificate is passed onto the CA to sign the certificate and then upload [all …]
|
/openbmc/u-boot/drivers/usb/musb-new/ |
H A D | musb_gadget.c | 319 u16 fifo_count = 0, csr; in txstate() local 338 csr = musb_readw(epio, MUSB_TXCSR); in txstate() 344 if (csr & MUSB_TXCSR_TXPKTRDY) { in txstate() 346 musb_ep->end_point.name, csr); in txstate() 350 if (csr & MUSB_TXCSR_P_SENDSTALL) { in txstate() 352 musb_ep->end_point.name, csr); in txstate() 358 csr); in txstate() 365 /* setup DMA, then program endpoint CSR */ in txstate() 392 csr &= ~(MUSB_TXCSR_AUTOSET in txstate() 394 musb_writew(epio, MUSB_TXCSR, csr in txstate() [all …]
|
H A D | musb_gadget_ep0.c | 245 u16 csr; in service_zero_data_request() local 268 csr = musb_readw(regs, MUSB_TXCSR); in service_zero_data_request() 269 csr |= MUSB_TXCSR_CLRDATATOG | in service_zero_data_request() 271 csr &= ~(MUSB_TXCSR_P_SENDSTALL | in service_zero_data_request() 274 musb_writew(regs, MUSB_TXCSR, csr); in service_zero_data_request() 276 csr = musb_readw(regs, MUSB_RXCSR); in service_zero_data_request() 277 csr |= MUSB_RXCSR_CLRDATATOG | in service_zero_data_request() 279 csr &= ~(MUSB_RXCSR_P_SENDSTALL | in service_zero_data_request() 281 musb_writew(regs, MUSB_RXCSR, csr); in service_zero_data_request() 409 u16 csr; in service_zero_data_request() local [all …]
|
H A D | musb_host.c | 93 u16 csr; in musb_h_tx_flush_fifo() local 97 csr = musb_readw(epio, MUSB_TXCSR); in musb_h_tx_flush_fifo() 98 while (csr & MUSB_TXCSR_FIFONOTEMPTY) { in musb_h_tx_flush_fifo() 99 if (csr != lastcsr) in musb_h_tx_flush_fifo() 100 dev_dbg(musb->controller, "Host TX FIFONOTEMPTY csr: %02x\n", csr); in musb_h_tx_flush_fifo() 101 lastcsr = csr; in musb_h_tx_flush_fifo() 102 csr |= MUSB_TXCSR_FLUSHFIFO; in musb_h_tx_flush_fifo() 103 musb_writew(epio, MUSB_TXCSR, csr); in musb_h_tx_flush_fifo() 104 csr = musb_readw(epio, MUSB_TXCSR); in musb_h_tx_flush_fifo() 106 "Could not flush host TX%d fifo: csr: %04x\n", in musb_h_tx_flush_fifo() [all …]
|
/openbmc/phosphor-certificate-manager/bmc-vmi-ca/ |
H A D | ca_certs_manager.cpp | 24 sdbusplus::message::object_path CACertMgr::signCSR(std::string csr) in signCSR() argument 29 if (csr.size() > maxCertSize) in signCSR() 31 lg2::error("Invalid CSR size"); in signCSR() 32 elog<InvalidArgument>(Argument::ARGUMENT_NAME("CSR"), in signCSR() 33 Argument::ARGUMENT_VALUE(csr.c_str())); in signCSR() 43 id, std::make_unique<Entry>(bus, objPath, id, csr, cert, *this))); in signCSR() 49 elog<InvalidArgument>(Argument::ARGUMENT_NAME("csr"), in signCSR() 50 Argument::ARGUMENT_VALUE(csr.c_str())); in signCSR()
|
H A D | ca_cert_entry.hpp | 5 #include "xyz/openbmc_project/PLDM/Provider/Certs/Authority/CSR/server.hpp" 19 CSR, 45 * @param[in] csr - csr string 49 std::string& csr, std::string& cert, CACertMgr& manager) : in Entry() argument 55 this->csr(csr); in Entry()
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | at91_udc.c | 100 * Endpoint FIFO CSR bits have a mix of bits, making it unsafe to just write 125 u32 csr; in read_fifo() local 137 csr = __raw_readl(creg); in read_fifo() 138 if ((csr & RX_DATA_READY) == 0) in read_fifo() 141 count = (csr & AT91_UDP_RXBYTECNT) >> 16; in read_fifo() 152 csr |= CLR_FX; in read_fifo() 155 csr &= ~(SET_FX | AT91_UDP_RX_DATA_BK0); in read_fifo() 158 csr &= ~(SET_FX | AT91_UDP_RX_DATA_BK1); in read_fifo() 162 csr &= ~(SET_FX | AT91_UDP_RX_DATA_BK0); in read_fifo() 163 __raw_writel(csr, creg); in read_fifo() [all …]
|
/openbmc/openbmc-test-automation/redfish/managers/ |
H A D | test_certificate.robot | 138 Verify CSR Generation For Server Certificate 139 [Documentation] Verify CSR generation for server certificate. 141 [Template] Generate CSR Via Redfish 150 Verify CSR Generation For Client Certificate 151 [Documentation] Verify CSR generation for client certificate. 153 [Template] Generate CSR Via Redfish 162 Verify CSR Generation For Server Certificate With Invalid Value 163 [Documentation] Verify error while generating CSR for server certificate with invalid value. 165 [Template] Generate CSR Via Redfish 173 Verify CSR Generation For Client Certificate With Invalid Value [all …]
|
/openbmc/qemu/target/loongarch/ |
H A D | csr.c | 8 #include "csr.h" 104 CSRInfo *csr; in get_csr() local 110 csr = &csr_info[csr_num]; in get_csr() 111 if (csr->offset == 0) { in get_csr() 115 return csr; in get_csr() 120 CSRInfo *csr; in set_csr_flag() local 122 csr = get_csr(csr_num); in set_csr_flag() 123 if (!csr) { in set_csr_flag() 127 csr->flags |= flag; in set_csr_flag()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/freeradius/files/ |
H A D | 0012-raddb-certs-Makefile-fix-the-existed-certificate-err.patch | 9 openssl ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key 'whatever' -out client.crt -ext… 35 @@ -92,7 +92,7 @@ server.csr server.key: server.cnf 38 server.crt: ca.key ca.pem server.csr 39 - $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PASSWORD_CA) -out server… 40 + @[ -f server.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PA… 44 @@ -117,7 +117,7 @@ client.csr client.key: client.cnf 47 client.crt: ca.key ca.pem client.csr 48 - $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PASSWORD_CA) -out client… 49 + @[ -f client.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PA…
|
H A D | 0013-raddb-certs-Makefile-fix-the-occasional-verification.patch | 69 server.csr server.key: server.cnf 70 - $(OPENSSL) req -new -out server.csr -keyout server.key -config ./server.cnf 71 + @[ -f server.csr ] || $(OPENSSL) req -new -out server.csr -keyout server.key -config ./server.cnf 74 server.crt: ca.key ca.pem server.csr 75 …@[ -f server.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PAS… 91 client.csr client.key: client.cnf 92 - $(OPENSSL) req -new -out client.csr -keyout client.key -config ./client.cnf 93 + @[ -f client.csr ] || $(OPENSSL) req -new -out client.csr -keyout client.key -config ./client.cnf 96 client.crt: ca.key ca.pem client.csr 97 …@[ -f client.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PAS… [all …]
|
/openbmc/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Certs/CSR/ |
H A D | meson.build | 4 sdbusplus_current_path = 'xyz/openbmc_project/Certs/CSR' 8 input: ['../../../../../yaml/xyz/openbmc_project/Certs/CSR.interface.yaml'], 27 'xyz/openbmc_project/Certs/CSR', 41 'xyz/openbmc_project/Certs/CSR/Create__markdown'.underscorify(), 43 '../../../../../yaml/xyz/openbmc_project/Certs/CSR/Create.interface.yaml', 57 'xyz/openbmc_project/Certs/CSR/Create',
|
/openbmc/qemu/target/riscv/insn_trans/ |
H A D | trans_rvi.c.inc | 982 TCGv_i32 csr = tcg_constant_i32(rc); 985 gen_helper_csrr(dest, tcg_env, csr); 992 TCGv_i32 csr = tcg_constant_i32(rc); 995 gen_helper_csrw(tcg_env, csr, src); 1002 TCGv_i32 csr = tcg_constant_i32(rc); 1005 gen_helper_csrrw(dest, tcg_env, csr, src, mask); 1014 TCGv_i32 csr = tcg_constant_i32(rc); 1017 gen_helper_csrr_i128(destl, tcg_env, csr); 1025 TCGv_i32 csr = tcg_constant_i32(rc); 1028 gen_helper_csrw_i128(tcg_env, csr, srcl, srch); [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/PLDM/Provider/Certs/Authority/ |
H A D | CSR.interface.yaml | 2 Implement this interface to pass CSR string to PLDM to get CSR signed by 10 - name: CSR 13 Certificate signing request content. Should be a valid PEM encoded CSR
|
/openbmc/openbmc-test-automation/docs/ |
H A D | certificate_generate.md | 7 B. Generate CSR for server certificate 9 C. Create CA signed server certificate using CSR request 46 **Generate CSR for server certificate** 48 1. Create CSR request file (csr_file.json) with all of the following fields. 82 2. Generate CSR request using the following Redfish command. 93 3. Convert response into .csr file (device.csr) 96 $ cat device.csr 116 **Create CA signed server certificate using CSR request** 118 1. Use BMC generated CSR request (device.csr) to generate CA signed certificate 122 openssl x509 -req -in device.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out device.crt -…
|