Home
last modified time | relevance | path

Searched refs:ByteToHexString (Results 1 – 22 of 22) sorted by relevance

/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
Dhex_string_test.cpp54 …EXPECT_EQ(ByteToHexString(nullptr, 0, hexStrBuffer, sizeof(hexStrBuffer)), DLP_SERVICE_ERROR_VALUE…
57 …EXPECT_EQ(ByteToHexString(byteBuffer, sizeof(byteBuffer), nullptr, 1), DLP_SERVICE_ERROR_VALUE_INV…
60 …EXPECT_EQ(ByteToHexString(byteBuffer, sizeof(byteBuffer), hexStrBuffer, 1), DLP_SERVICE_ERROR_VALU…
63 …EXPECT_EQ(ByteToHexString(byteBuffer, sizeof(byteBuffer), hexStrBuffer, sizeof(hexStrBuffer)), DLP…
/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);
/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/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() function
/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() function
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_baselib_utils_test.cpp454 ByteToHexString(nullptr, 0, str, strLen);
457 ByteToHexString(hex, hexLen, nullptr, 0);
460 ByteToHexString(hex, hexLen, str, strLen - 1);
/base/security/device_security_level/services/dslm/
Ddslm_msg_utils.c57ByteToHexString((uint8_t *)&challenge, sizeof(challenge), (uint8_t *)nonce, CHALLENGE_STRING_LENGT… in GenerateSecInfoResponseJson()
94ByteToHexString((uint8_t *)&challenge, sizeof(challenge), (uint8_t *)nonce, CHALLENGE_STRING_LENGT… in GenerateSecInfoRequestJson()
/base/security/device_auth/services/mk_agree/src/
Dkey_manager.c44 …int32_t res = ByteToHexString(keyAliasHash->val, keyAliasHash->length, keyAliasHex, keyAliasHexLen… in ConvertHashToAlias()
67 …int32_t res = ByteToHexString(keyAliasHash->val, keyAliasHash->length, keyAliasHex, keyAliasHexLen… in ConvertHashToAliasWithPrefix()
353 res = ByteToHexString(pseudonymIdBuff.val, pseudonymIdBuff.length, pdid, pdidLen); in GenerateAndSavePseudonymId()
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_common/
Ddlp_permission_serializer.cpp264 int32_t res = ByteToHexString(policy.GetAeskey(), policy.GetAeskeyLen(), keyHex, keyHexLen); in SerializeDlpPermission()
278 res = ByteToHexString(policy.GetIv(), policy.GetIvLen(), ivHex, ivHexLen); in SerializeDlpPermission()
443 int32_t res = ByteToHexString(encData.data, encData.dataLen, encDataHex, encDataHexLen); in SerializeEncPolicyData()
457 …res = ByteToHexString(encData.options.extraInfo, encData.options.extraInfoLen, extraInfoHex, extra… in SerializeEncPolicyData()
/base/security/device_security_level/oem_property/ohos/common/
Ddslm_ohos_request.c67 ByteToHexString((uint8_t *)&(obj->challenge), sizeof(obj->challenge), (uint8_t *)challengeStr, in GenerateDslmCertChain()
/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/pake_v1_task/pake_v1_protocol_task/
Dpake_v1_protocol_task_common.c117 if (ByteToHexString(srcPsk->val, srcPsk->length, (char *)params->baseParams.psk.val, in ConvertPsk()
/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() function
Djson_utils.c428 int32_t ret = ByteToHexString(byte, len, hexStr, hexLen); in AddByteToJson()
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
Dcommon_lib_test.cpp492 int32_t ret = ByteToHexString(nullptr, byteSize, hexStr, TEST_BUFFER_SIZE);
494 ret = ByteToHexString(byteData, byteSize, hexStr, TEST_LENGTH_ZERO);
496 ret = ByteToHexString(byteData, byteSize, hexStr, TEST_BUFFER_SIZE);
/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() function
271 ret = ByteToHexString(mac->data, mac->size, macHex, macHexLen); in ConstructAuthUri()
/base/security/device_auth/services/authenticators/src/account_unrelated/
Ddas_task_common.c284 res = ByteToHexString(keyAliasHash.val, keyAliasHash.length, outKeyAliasHex, outKeyAliasHexLen); in CombineKeyAliasForPake()
/base/security/device_auth/test/unittest/deviceauth/source/
Djson_utils_mock.c486 int32_t ret = ByteToHexString(byte, len, hexStr, hexLen); in AddByteToJson()
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
Dpub_key_exchange.c210 …if (ByteToHexString(keyAliasByte.val, keyAliasByte.length, keyAliasHexStr, keyAliasHexStrLen) != H… in GenerateKeyAlias()
/base/security/device_auth/services/creds_manager/src/
Dcreds_manager.c579 …if (ByteToHexString(srcPsk->val, srcPsk->length, (char *)sharedSecret->val, len + 1) != HC_SUCCESS… in ConvertPsk()
/base/security/device_auth/services/
Ddevice_auth.c70 ret = ByteToHexString(udidHashByte, SHA256_LEN, udidHash, udidHashLen); in IsDeviceIdHashMatch()
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation_common.c1223 if (ByteToHexString(infoHash.val, infoHash.length, hash, hashLen) != HAL_SUCCESS) { in GetHashResult()