/base/security/device_auth/common_lib/impl/src/ |
D | string_util.c | 49 int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen) in ByteToHexString() argument 51 if (byte == NULL || hexStr == NULL) { in ByteToHexString() 60 …hexStr[i * BYTE_TO_HEX_OPER_LENGTH] = HexToChar((byte[i] & 0xF0) >> 4); /* 4: shift right for fill… in ByteToHexString() 61 hexStr[i * BYTE_TO_HEX_OPER_LENGTH + 1] = HexToChar(byte[i] & 0x0F); /* get low four bits */ in ByteToHexString() 81 int32_t HexStringToByte(const char *hexStr, uint8_t *byte, uint32_t byteLen) in HexStringToByte() argument 83 if (byte == NULL || hexStr == NULL) { in HexStringToByte() 98 byte[i] = high << 4; /* 4: Set the high nibble */ in HexStringToByte() 99 byte[i] |= low; /* Set the low nibble */ in HexStringToByte() 152 int32_t Base64StringToByte(const char *base64Str, uint8_t *byte, uint32_t *byteLen) in Base64StringToByte() argument 154 if (base64Str == NULL || byte == NULL || byteLen == NULL) { in Base64StringToByte() [all …]
|
D | json_utils.c | 193 int32_t GetByteFromJson(const CJson *jsonObj, const char *key, uint8_t *byte, uint32_t len) in GetByteFromJson() argument 195 if (jsonObj == NULL || key == NULL || byte == NULL) { in GetByteFromJson() 206 return HexStringToByte(valueStr, byte, len); in GetByteFromJson() 401 int32_t AddByteToJson(CJson *jsonObj, const char *key, const uint8_t *byte, uint32_t len) in AddByteToJson() argument 403 if (jsonObj == NULL || key == NULL || byte == NULL) { in AddByteToJson() 412 int32_t ret = ByteToHexString(byte, len, hexStr, hexLen); in AddByteToJson()
|
/base/telephony/sms_mms/frameworks/native/mms/src/utils/ |
D | mms_quoted_printable.cpp | 31 for (auto byte : input) { in Encode() local 32 if ((byte >= asciiMin && byte < equalChar) || (byte > equalChar && byte <= assciiMax)) { in Encode() 33 codeString += byte; in Encode() 36 codeString += hex[((byte >> 0x04) & 0x0F)]; in Encode() 37 codeString += hex[(byte & 0x0F)]; in Encode()
|
/base/security/device_auth/common_lib/interfaces/ |
D | string_util.h | 42 int32_t HexStringToByte(const char *hexStr, uint8_t *byte, uint32_t byteLen); 52 int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen); 76 int32_t Base64StringToByte(const char *base64Str, uint8_t *byte, uint32_t *byteLen); 86 int32_t ByteToBase64String(const uint8_t *byte, uint32_t byteLen, char *base64Str, uint32_t strLen);
|
D | json_utils.h | 83 int32_t GetByteFromJson(const CJson *jsonObj, const char *key, uint8_t *byte, uint32_t len); 94 int32_t AddByteToJson(CJson *jsonObj, const char *key, const uint8_t *byte, uint32_t len);
|
/base/security/device_security_level/baselib/utils/src/ |
D | utils_base64.c | 84 …uint32_t byte = (((a << 16) & 0x00FF0000) | ((b << 8) & 0x0000FF00) | ((c << 0) & 0x000000FF)); /*… in Base64Encode() local 86 to[j++] = g_base64EncodeTable[(byte >> 18) & 0x3F]; /* get the 1st block by shift 18 */ in Base64Encode() 87 to[j++] = g_base64EncodeTable[(byte >> 12) & 0x3F]; /* get the 2nd block by shift 12 */ in Base64Encode() 88 to[j++] = g_base64EncodeTable[(byte >> 6) & 0x3F]; /* get the 3rd block by shift 6 */ in Base64Encode() 89 to[j++] = g_base64EncodeTable[(byte >> 0) & 0x3F]; in Base64Encode() 144 uint32_t byte = in Base64Decode() local 148 to[j++] = (byte >> 16) & 0xFF; // 16, the 3rd 8-bit in Base64Decode() 151 to[j++] = (byte >> 8) & 0xFF; // 8, the 2nd 8-bit in Base64Decode() 154 to[j++] = (byte >> 0) & 0xFF; in Base64Decode()
|
/base/telephony/sms_mms/frameworks/native/mms/include/ |
D | mms_encode_buffer.h | 27 bool WriteByte(uint8_t byte);
|
/base/telephony/sms_mms/utils/ |
D | string_utils.cpp | 93 std::string byte = str.substr(i, hexStep); in HexToString() local 95 long strTemp = strtol(byte.c_str(), nullptr, hexDecimal); in HexToString()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_auth_mgr.c | 52 static int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen) in ByteToHexString() argument 59 …hexStr[i * BYTE_TO_HEX_OPER_LENGTH] = HexToChar((byte[i] & 0xF0) >> 4); /* 4: shift right for fill… in ByteToHexString() 60 hexStr[i * BYTE_TO_HEX_OPER_LENGTH + 1] = HexToChar(byte[i] & 0x0F); /* get low four bits */ in ByteToHexString() 67 static int32_t HexStringToByte(const char *hexStr, uint8_t *byte, uint32_t byteLen) in HexStringToByte() argument 81 byte[i] = high << 4; /* 4: Set the high nibble */ in HexStringToByte() 82 byte[i] |= low; /* Set the low nibble */ in HexStringToByte()
|
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/ |
D | hks_ipc_serialization.c | 326 uint32_t byte = (a << (8 * 2)) + (b << (8 * 1)) + (c << (8 * 0)); in Base64Encode() local 329 outData[j++] = g_base64Table[(byte >> (6 * 3)) & 0b00111111]; /* 3 and 6 is offset */ in Base64Encode() 330 outData[j++] = g_base64Table[(byte >> (6 * 2)) & 0b00111111]; /* 2 and 6 is offset */ in Base64Encode() 331 outData[j++] = g_base64Table[(byte >> (6 * 1)) & 0b00111111]; /* 1 and 6 is offset */ in Base64Encode() 332 outData[j++] = g_base64Table[(byte >> (6 * 0)) & 0b00111111]; /* 0 and 6 is offset */ in Base64Encode()
|
/base/startup/hvb/libhvb/src/crypto/ |
D | hvb_rsa.c | 40 #define byte2bit(byte) ((byte) << 3) argument
|
D | hvb_rsa_verify.c | 40 #define byte2bit(byte) ((byte) << 3) argument
|
/base/update/updateservice/services/engine/src/ |
D | update_helper.cpp | 466 std::string byte = str.substr(i, HEX_DIGEST_NUM); in HexToDegist() local 467 long byteToLong = strtol(byte.c_str(), nullptr, HEX_DIGEST_BASE); in HexToDegist()
|
/base/update/updater/test/unittest/test_data/diffpatch/ |
D | PatchGztest_old.gz |
|
D | PatchGztest_new.gz |
|
/base/hiviewdfx/hilog/frameworks/libhilog/vsnprintf/ |
D | output_p.inl | 450 /* fill zero for normal char 128 byte for 0x80 - 0xff */
|