/base/security/device_security_level/baselib/utils/src/ |
D | utils_hexstring.c | 37 void ByteToHexString(const uint8_t *hex, uint32_t hexLen, uint8_t *str, uint32_t strLen) in ByteToHexString() argument 39 if ((hex == NULL) || (str == NULL) || (strLen < hexLen * BYTE_TO_HEX_OPER_LENGTH)) { in ByteToHexString() 43 for (uint32_t i = 0; i < hexLen; i++) { in ByteToHexString() 49 int32_t HexStringToByte(const char *str, uint32_t strLen, uint8_t *hex, uint32_t hexLen) in HexStringToByte() argument 56 if (hexLen < outLen) { /* test the length */ in HexStringToByte()
|
/base/security/device_security_level/baselib/utils/include/ |
D | utils_hexstring.h | 25 void ByteToHexString(const uint8_t *hex, uint32_t hexLen, uint8_t *str, uint32_t strLen); 27 int32_t HexStringToByte(const char *str, uint32_t strLen, uint8_t *hex, uint32_t hexLen);
|
/base/security/dlp_permission_service/frameworks/common/src/ |
D | hex_string.cpp | 29 int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen) in ByteToHexString() argument 35 if (hexLen < byteLen * BYTE_TO_HEX_OPER_LENGTH + 1) { in ByteToHexString()
|
/base/security/device_security_level/test/dslm_unit_test/ |
D | dslm_baselib_utils_test.cpp | 450 uint32_t hexLen = sizeof(hex); variable 457 ByteToHexString(hex, hexLen, nullptr, 0); 460 ByteToHexString(hex, hexLen, str, strLen - 1); 472 uint32_t hexLen = 5; variable 478 int32_t ret = HexStringToByte(nullptr, 0, hex, hexLen); 490 int32_t ret = HexStringToByte(str, strLen, hex, hexLen - 2);
|
/base/security/dlp_permission_service/frameworks/common/include/ |
D | hex_string.h | 25 int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen);
|
/base/security/device_auth/common_lib/interfaces/ |
D | string_util.h | 48 int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen);
|
/base/security/device_auth/common_lib/impl/src/ |
D | string_util.c | 48 int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen) in ByteToHexString() argument 54 if (hexLen < byteLen * BYTE_TO_HEX_OPER_LENGTH + 1) { in ByteToHexString()
|
D | json_utils.c | 423 uint32_t hexLen = len * BYTE_TO_HEX_OPER_LENGTH + 1; in AddByteToJson() local 424 char *hexStr = (char *)HcMalloc(hexLen, 0); in AddByteToJson() 428 int32_t ret = ByteToHexString(byte, len, hexStr, hexLen); in AddByteToJson()
|
/base/security/device_auth/test/unittest/deviceauth/source/ |
D | json_utils_mock.c | 481 uint32_t hexLen = len * BYTE_TO_HEX_OPER_LENGTH + 1; in AddByteToJson() local 482 char *hexStr = (char *)HcMalloc(hexLen, 0); in AddByteToJson() 486 int32_t ret = ByteToHexString(byte, len, hexStr, hexLen); in AddByteToJson()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_auth_mgr.c | 56 static int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen) in ByteToHexString() argument 58 if (hexLen < (byteLen * BYTE_TO_HEX_OPER_LENGTH + 1)) { /* The terminator('\0') needs 1 bit */ in ByteToHexString()
|