Home
last modified time | relevance | path

Searched refs:hexLen (Results 1 – 10 of 10) sorted by relevance

/base/security/device_security_level/baselib/utils/src/
Dutils_hexstring.c37 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/
Dutils_hexstring.h25 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/
Dhex_string.cpp29 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/
Ddslm_baselib_utils_test.cpp450 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/
Dhex_string.h25 int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen);
/base/security/device_auth/common_lib/interfaces/
Dstring_util.h48 int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen);
/base/security/device_auth/common_lib/impl/src/
Dstring_util.c48 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()
Djson_utils.c423 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/
Djson_utils_mock.c481 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/
Dcert_manager_auth_mgr.c56 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()