Home
last modified time | relevance | path

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

/ohos5.0/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
H A 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…
/ohos5.0/base/security/dlp_permission_service/frameworks/common/include/
H A Dhex_string.h25 int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen);
/ohos5.0/base/security/device_auth/common_lib/interfaces/
H A Dstring_util.h48 int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen);
/ohos5.0/base/security/device_auth/services/mk_agree/src/
H A 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()
/ohos5.0/base/security/dlp_permission_service/services/dlp_permission/sa/mock/
H A Dmock_utils.cpp37 …int32_t res = OHOS::Security::DlpPermission::ByteToHexString(dataIn, dataInLen, encDataHex, encDat… in ModifyParseData()
/ohos5.0/base/security/dlp_permission_service/frameworks/common/src/
H A Dhex_string.cpp31 int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen) in ByteToHexString() function
/ohos5.0/base/security/dlp_permission_service/services/dlp_permission/sa/sa_common/
H A Ddlp_permission_serializer.cpp275 … int32_t res = ByteToHexString(policy.GetAeskey(), policy.GetAeskeyLen(), keyHex.get(), keyHexLen); in SerializeDlpPermission()
283 res = ByteToHexString(policy.GetIv(), policy.GetIvLen(), ivHex.get(), ivHexLen); in SerializeDlpPermission()
291 …res = ByteToHexString(policy.GetHmacKey(), policy.GetHmacKeyLen(), hmacKeyHex.get(), hmacKeyHexLen… in SerializeDlpPermission()
510 int32_t res = ByteToHexString(encData.data, encData.dataLen, encDataHex, encDataHexLen); in SerializeEncPolicyData()
/ohos5.0/base/security/dlp_permission_service/test/fuzztest/dlp_permission/stub_fuzzer/parsecertstub_fuzzer/
H A Dparsecertstub_fuzzer.cpp48 int res = ByteToHexString(byteBuffer, sizeof(byteBuffer), hexStrBuffer, sizeof(hexStrBuffer)); in InitCertJson()
/ohos5.0/base/security/device_auth/common_lib/impl/src/
H A Dstring_util.c34 int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen) in ByteToHexString() function
H A Djson_utils.c453 int32_t ret = ByteToHexString(byte, len, hexStr, hexLen); in AddByteToJson()
/ohos5.0/base/security/device_auth/services/identity_manager/src/
H A Didentity_common.c40 …if (ByteToHexString(srcPsk->val, srcPsk->length, (char *)sharedSecret->val, len + 1) != HC_SUCCESS… in ConvertPsk()
H A Dcredential_operator.c133 res = ByteToHexString(keyAliasHash.val, keyAliasHash.length, outKeyAliasHex, outKeyAliasHexLen); in CombineKeyAliasForPake()
337 …res = ByteToHexString(returnPkBuff.val, returnPkBuff.length, returnPkHexStr, sizeof(returnPkHexStr… in PackPublicKeyToJson()
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
H A Dcommon_lib_test.cpp493 int32_t ret = ByteToHexString(nullptr, byteSize, hexStr, TEST_BUFFER_SIZE);
495 ret = ByteToHexString(byteData, byteSize, hexStr, TEST_LENGTH_ZERO);
497 ret = ByteToHexString(byteData, byteSize, hexStr, TEST_BUFFER_SIZE);
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/common/
H A Ddas_task_common.c331 res = ByteToHexString(keyAliasHash.val, keyAliasHash.length, outKeyAliasHex, outKeyAliasHexLen); in CombineKeyAliasForPake()
446 res = ByteToHexString(keyAliasHash.val, keyAliasHash.length, outKeyAliasHex, outKeyAliasHexLen); in GeneratePseudonymPskAlias()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/pake_v1_task/pake_v1_protocol_task/
H A Dpake_v1_protocol_task_common.c252 if (ByteToHexString(srcPsk->val, srcPsk->length, (char *)params->baseParams.psk.val, in ConvertPakeV1Psk()
496 int32_t res = ByteToHexString(pseudonymIdBuff->val, pseudonymIdBuff->length, hexStr, hexLen); in AddPseudonymIdToPayload()
529 … int32_t res = ByteToHexString(pseudonymChlgBuff->val, pseudonymChlgBuff->length, hexStr, hexLen); in AddPseudonymChallengeToPayload()
/ohos5.0/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_auth_mgr.c57 static int32_t ByteToHexString(const uint8_t *byte, uint32_t byteLen, char *hexStr, uint32_t hexLen) in ByteToHexString() function
274 ret = ByteToHexString(mac->data, mac->size, macHex, macHexLen); in ConstructAuthUri()
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/source/
H A Djson_utils_mock.c486 int32_t ret = ByteToHexString(byte, len, hexStr, hexLen); in AddByteToJson()
/ohos5.0/base/security/crypto_framework/test/unittest/src/
H A Dcrypto_dh_asy_key_generator_test.cpp1214 static char *ByteToHexString(unsigned char *byteArray, int byteArrayLen) in ByteToHexString() function
1288 char *hexString = ByteToHexString(returnBigInteger.data, returnBigInteger.len); in DhPrimeValueCompareWithOpenssl()
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
H A Dpub_key_exchange.c204 …if (ByteToHexString(keyAliasByte.val, keyAliasByte.length, keyAliasHexStr, keyAliasHexStrLen) != H… in GenerateKeyAlias()
/ohos5.0/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/
H A Daccount_related_group_auth.c475 res = ByteToHexString(hashBuff.val, hashBuff.length, *peerUserId, hexLen); in GetPeerUserIdFromReceivedData()
/ohos5.0/base/security/device_auth/services/legacy/group_manager/src/group_operation/group_operation_common/
H A Dgroup_operation_common.c1116 if (ByteToHexString(infoHash.val, infoHash.length, hash, hashLen) != HAL_SUCCESS) { in GetHashResult()
/ohos5.0/base/security/device_auth/services/
H A Ddevice_auth.c80 ret = ByteToHexString(udidHashByte, SHA256_LEN, udidHash, udidHashLen); in IsDeviceIdHashMatch()
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
H A Ddlp_file.cpp1075 int ret = ByteToHexString(hmac_.data, hmac_.size, hmacHex, hmacHexLen); in GetHmacVal()