/openbmc/bmcweb/test/http/ |
H A D | utility_test.cpp | 45 std::string encoded; in TEST() local 47 encoded = base64encode(""); in TEST() 48 EXPECT_EQ(encoded, ""); in TEST() 50 encoded = base64encode("f"); in TEST() 51 EXPECT_EQ(encoded, "Zg=="); in TEST() 53 encoded = base64encode("f0"); in TEST() 54 EXPECT_EQ(encoded, "ZjA="); in TEST() 56 encoded = base64encode("f0\0"s); in TEST() 57 EXPECT_EQ(encoded, "ZjAA"); in TEST() 59 encoded = base64encode("f0\0 "s); in TEST() [all …]
|
/openbmc/libcper/sections/ |
H A D | cper-section-cxl-protocol.c | 95 char *encoded; in cper_section_cxl_protocol_to_ir() local 110 encoded = base64_encode( in cper_section_cxl_protocol_to_ir() 113 if (encoded == NULL) { in cper_section_cxl_protocol_to_ir() 118 json_object_new_string_len(encoded, in cper_section_cxl_protocol_to_ir() 120 free(encoded); in cper_section_cxl_protocol_to_ir() 137 encoded = base64_encode((UINT8 *)cur_pos, in cper_section_cxl_protocol_to_ir() 140 if (encoded == NULL) { in cper_section_cxl_protocol_to_ir() 144 json_object_new_string_len(encoded, in cper_section_cxl_protocol_to_ir() 147 free(encoded); in cper_section_cxl_protocol_to_ir() 155 encoded = base64_encode((UINT8 *)cur_pos, in cper_section_cxl_protocol_to_ir() [all …]
|
H A D | cper-section-dmar-iommu.c | 36 char *encoded = base64_encode((UINT8 *)iommu_error->EventLogEntry, 16, in cper_section_dmar_iommu_to_ir() local 38 if (encoded == NULL) { in cper_section_dmar_iommu_to_ir() 44 json_object_new_string_len(encoded, in cper_section_dmar_iommu_to_ir() 46 free(encoded); in cper_section_dmar_iommu_to_ir() 51 encoded = base64_encode((UINT8 *)iommu_error->DeviceTableEntry, 32, in cper_section_dmar_iommu_to_ir() 53 if (encoded == NULL) { in cper_section_dmar_iommu_to_ir() 58 json_object_new_string_len(encoded, in cper_section_dmar_iommu_to_ir() 60 free(encoded); in cper_section_dmar_iommu_to_ir() 95 json_object *encoded = json_object_object_get(section, "eventLogEntry"); in ir_section_dmar_iommu_to_cper() local 98 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_dmar_iommu_to_cper() [all …]
|
H A D | cper-section-dmar-vtd.c | 87 char *encoded = in cper_section_dmar_vtd_to_ir() local 90 json_object_new_string_len(encoded, in cper_section_dmar_vtd_to_ir() 92 free(encoded); in cper_section_dmar_vtd_to_ir() 96 encoded = base64_encode((UINT8 *)vtd_error->ContextEntry, 16, in cper_section_dmar_vtd_to_ir() 98 if (encoded == NULL) { in cper_section_dmar_vtd_to_ir() 102 json_object_new_string_len(encoded, in cper_section_dmar_vtd_to_ir() 104 free(encoded); in cper_section_dmar_vtd_to_ir() 180 json_object *encoded = json_object_object_get(section, "rootEntry"); in ir_section_dmar_vtd_to_cper() local 183 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_dmar_vtd_to_cper() 184 json_object_get_string_len(encoded), in ir_section_dmar_vtd_to_cper() [all …]
|
H A D | cper-section-pcie.c | 126 char *encoded = base64_encode((UINT8 *)pcie_error->Capability.PcieCap, in cper_section_pcie_to_ir() local 128 if (encoded == NULL) { in cper_section_pcie_to_ir() 133 json_object_new_string_len(encoded, in cper_section_pcie_to_ir() 135 free(encoded); in cper_section_pcie_to_ir() 145 encoded = base64_encode((UINT8 *)pcie_error->AerInfo.PcieAer, 96, in cper_section_pcie_to_ir() 147 if (encoded == NULL) { in cper_section_pcie_to_ir() 151 json_object_new_string_len(encoded, in cper_section_pcie_to_ir() 153 free(encoded); in cper_section_pcie_to_ir() 278 json_object *encoded = json_object_object_get(capability, "data"); in ir_section_pcie_to_cper() local 282 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_pcie_to_cper() [all …]
|
H A D | cper-section-ccix-per.c | 44 char *encoded = base64_encode((UINT8 *)cur_pos, in cper_section_ccix_per_to_ir() local 46 if (encoded == NULL) { in cper_section_ccix_per_to_ir() 51 encoded, encoded_len)); in cper_section_ccix_per_to_ir() 52 free(encoded); in cper_section_ccix_per_to_ir() 85 json_object *encoded = json_object_object_get(section, "ccixPERLog"); in ir_section_ccix_per_to_cper() local 88 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_ccix_per_to_cper() 89 json_object_get_string_len(encoded), in ir_section_ccix_per_to_cper()
|
H A D | cper-section-cxl-component.c | 69 char *encoded = base64_encode((UINT8 *)cur_pos, remaining_len, in cper_section_cxl_component_to_ir() local 71 if (encoded == NULL) { in cper_section_cxl_component_to_ir() 76 json_object_new_string_len(encoded, in cper_section_cxl_component_to_ir() 79 free(encoded); in cper_section_cxl_component_to_ir() 132 json_object *encoded = json_object_object_get(event_log, "data"); in ir_section_cxl_component_to_cper() local 136 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_cxl_component_to_cper() 137 json_object_get_string_len(encoded), in ir_section_cxl_component_to_cper()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/ |
H A D | CVE-2019-7574.patch | 29 - Uint8 *freeable, *encoded, *decoded; 30 + Uint8 *freeable, *encoded, *encoded_end, *decoded; 37 encoded = *audio_buf; 38 + encoded_end = encoded + encoded_len; 46 + if (encoded + 4 > encoded_end) goto invalid_size; 48 state[c].sample = ((encoded[1]<<8)|encoded[0]); 49 encoded += 2; 54 + if (encoded + 4 > encoded_end) goto invalid_size; 55 Fill_IMA_ADPCM_block(decoded, encoded, 57 encoded += 4;
|
H A D | CVE-2019-7577.patch | 64 - Uint8 *freeable, *encoded, *decoded; 65 + Uint8 *freeable, *encoded, *encoded_end, *decoded; 72 encoded = *audio_buf; 73 + encoded_end = encoded + encoded_len; 81 + if (encoded + 7 + (stereo ? 7 : 0) > encoded_end) goto too_short; 82 state[0]->hPredictor = *encoded++; 84 state[1]->hPredictor = *encoded++; 89 state[0]->iDelta = ((encoded[1]<<8)|encoded[0]); 90 encoded += sizeof(Sint16); 96 + if (encoded + 1 > encoded_end) goto too_short; [all …]
|
H A D | CVE-2019-7575.patch | 31 - Uint8 *freeable, *encoded, *encoded_end, *decoded; 32 + Uint8 *freeable, *encoded, *encoded_end, *decoded, *decoded_end; 48 - if (encoded + 7 + (stereo ? 7 : 0) > encoded_end) goto too_short; 49 + if (encoded + 7 + (stereo ? 7 : 0) > encoded_end) goto invalid_size; 50 state[0]->hPredictor = *encoded++; 52 state[1]->hPredictor = *encoded++; 65 - if (encoded + 1 > encoded_end) goto too_short; 66 + if (encoded + 1 > encoded_end) goto invalid_size; 69 nybble = (*encoded)>>4;
|
/openbmc/linux/drivers/soc/qcom/ |
H A D | qmi_encdec.c | 68 * skip_to_next_elem() - Skip to next element in the structure to be encoded 77 * Return: struct info of the next element that can be encoded. 153 * @buf_dst: Buffer to store the encoded information. 154 * @buf_src: Buffer containing the elements to be encoded. 155 * @elem_len: Number of elements, in the buf_src, to be encoded. 156 * @elem_size: Size of a single instance of the element to be encoded. 160 * encoded information in the destination buffer "buf_dst". The elements are 162 * function returns the number of bytes of encoded information. 164 * Return: The number of bytes of encoded information. 182 * @buf_dst: Buffer to store the encoded information. [all …]
|
/openbmc/qemu/crypto/ |
H A D | der.h | 30 /* Simple decoder used to parse DER encoded rsa keys. */ 49 * Decode integer from DER-encoded data. 65 * Decode sequence from DER-encoded data, similar with der_decode_int. 88 * Decode OID from DER-encoded data, similar with der_decode_int. 111 * Decode OCTET STRING from DER-encoded data, similar with der_decode_int. 134 * Decode BIT STRING from DER-encoded data, similar with der_decode_int. 208 * @src: the source data of oid, note it should be already encoded, this 219 * @src: the source data of integer, note it should be already encoded, this 249 * Compute the expected buffer size to save all encoded things. 256 * @dst: the destination to save the encoded data, the length of dst should [all …]
|
/openbmc/qemu/docs/specs/ |
H A D | ppc-spapr-hotplug.rst | 42 First 4-bytes: big-endian (BE) encoded integer denoting the number of entries. 44 Each entry: a NULL-terminated ``<name>`` string encoded as a byte array. 66 First 4-bytes: BE-encoded integer denoting the number of entries. 68 Each 4-byte entry: BE-encoded ``<index>`` integer that is unique across all 93 First 4-bytes: BE-encoded integer denoting the number of entries. 95 Each 4-byte entry: 32-bit, BE-encoded ``<index>`` integer that specifies the 105 First 4-bytes: BE-encoded integer denoting the number of entries. 107 Each entry: a NULL-terminated ``<type>`` string encoded as a byte array. 287 The DRC index is encoded in the first 4-bytes of the first work area buffer. 310 New property's value, encoded as an OFDT-compatible byte array. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/powerpc/fsl/ |
H A D | pamu.txt | 13 - ranges : <prop-encoded-array> 20 - interrupts : <prop-encoded-array> 31 - reg : <prop-encoded-array> 51 - reg : <prop-encoded-array> 58 : <prop-encoded-array> 64 : <prop-encoded-array> 83 - fsl,liodn-reg : <prop-encoded-array>
|
H A D | dcsr.txt | 42 Value type: <prop-encoded-array> 89 Value type: <prop-encoded-array> 118 Value type: <prop-encoded-array> 155 Value type: <prop-encoded-array> 180 Value type: <prop-encoded-array> 217 Value type: <prop-encoded-array> 245 Value type: <prop-encoded-array> 276 Value type: <prop-encoded-array> 305 Value type: <prop-encoded-array> 335 Value type: <prop-encoded-array> [all …]
|
/openbmc/libbej/src/ |
H A D | bej_common.c | 49 // If the value is positive and encoded MSBbit is 1 we need to add 0x00 to in bejIntLengthOfValue() 50 // the encoded value as padding. in bejIntLengthOfValue() 56 // If the value is negative and encoded MSBbit is 0 we need to add 0xFF to in bejIntLengthOfValue() 57 // the encoded value as padding. in bejIntLengthOfValue() 81 // From the size of the encoded value, we need 1 byte for the length field. in bejNnintLengthFieldOfUInt()
|
/openbmc/linux/include/crypto/ |
H A D | sig.h | 113 * how to decode and interpret the encoded key and parameters 116 * @key: BER encoded public key, algo OID, paramlen, BER encoded 129 * how to decode and interpret the encoded key and parameters 132 * @key: BER encoded private key, algo OID, paramlen, BER encoded
|
/openbmc/qemu/tests/unit/ |
H A D | check-qjson.c | 794 const char *encoded; in int_number() member 811 for (i = 0; test_cases[i].encoded; i++) { in int_number() 813 qobject_from_json(test_cases[i].encoded, in int_number() 829 test_cases[i].reencoded ?: test_cases[i].encoded); in int_number() 839 const char *encoded; in uint_number() member 853 for (i = 0; test_cases[i].encoded; i++) { in uint_number() 855 qobject_from_json(test_cases[i].encoded, in uint_number() 866 test_cases[i].reencoded ?: test_cases[i].encoded); in uint_number() 876 const char *encoded; in float_number() member 894 for (i = 0; test_cases[i].encoded; i++) { in float_number() [all …]
|
/openbmc/linux/Documentation/powerpc/ |
H A D | associativity.rst | 63 prop-encoded-array: The number N of the domainIDs encoded as with encode-int, followed by 64 N domainID encoded as with encode-int 74 prop-encoded-array: The number N of the distance values encoded as with encode-int, followed by 75 N distance values encoded as with encode-bytes. The max distance value we could encode is 255.
|
/openbmc/linux/usr/ |
H A D | Kconfig | 60 Support loading of a gzip encoded initial ramdisk or cpio buffer. 68 Support loading of a bzip2 encoded initial ramdisk or cpio buffer 76 Support loading of a LZMA encoded initial ramdisk or cpio buffer 84 Support loading of a XZ encoded initial ramdisk or cpio buffer. 92 Support loading of a LZO encoded initial ramdisk or cpio buffer 100 Support loading of a LZ4 encoded initial ramdisk or cpio buffer 108 Support loading of a ZSTD encoded initial ramdisk or cpio buffer.
|
/openbmc/linux/Documentation/devicetree/bindings/phy/ |
H A D | qcom,usb-8x16-phy.txt | 10 Value type: <prop-encoded-array> 15 Value type: <prop-encoded-array> 42 Value type: <prop-encoded-array> 52 Value type: <prop-encoded-array>
|
/openbmc/qemu/ui/ |
H A D | vnc-auth-sasl.c | 62 vs->sasl.encoded = NULL; in vnc_sasl_client_cleanup() 77 "Encoded: %p size %d offset %d\n", in vnc_client_write_sasl() 79 vs->sasl.encoded, vs->sasl.encodedLength, vs->sasl.encodedOffset); in vnc_client_write_sasl() 81 if (!vs->sasl.encoded) { in vnc_client_write_sasl() 86 (const char **)&vs->sasl.encoded, in vnc_client_write_sasl() 96 vs->sasl.encoded + vs->sasl.encodedOffset, in vnc_client_write_sasl() 120 vs->sasl.encoded = NULL; in vnc_client_write_sasl() 127 * SASL encoded output in vnc_client_write_sasl() 145 uint8_t encoded[4096]; in vnc_client_read_sasl() local 150 ret = vnc_client_read_buf(vs, encoded, sizeof(encoded)); in vnc_client_read_sasl() [all …]
|
/openbmc/linux/lib/xz/ |
H A D | xz_lzma2.h | 114 /* Match length is encoded with 4, 5, or 10 bits. 154 * The highest two bits of a 32-bit match distance are encoded using six bits. 161 /* Match distances up to 127 are fully encoded using probabilities. Since 162 * the highest two bits (distance slot) are always encoded using six bits, 171 * Match distances greater than 127 are encoded in three pieces: 188 * lowest four bits (alignment) is encoded using probabilities.
|
/openbmc/libcper/tests/ |
H A D | base64_test.cpp | 10 char *encoded = base64_encode(data.data(), data.size(), &encoded_len); in TEST() local 12 ASSERT_EQ(std::string_view(encoded, encoded_len), "Zg=="); in TEST() 13 free(encoded); in TEST()
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | printk.c | 17 * efi_char16_puts() - Write a UCS-2 encoded string to the console 18 * @str: UCS-2 encoded string 61 * - It must be encoded using the correct number of octets. in utf8_to_utf32() 72 * efi_puts() - Write a UTF-8 encoded string to the console 73 * @str: UTF-8 encoded string
|