Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 1005) sorted by relevance

12345678910>>...41

/base/hiviewdfx/hiview/base/running_status_logger/test/unittest/common/
Drunning_status_logger_test.cpp60 std::string GenerateInvalidFileName(int index) in GenerateInvalidFileName() argument
62 return GetLogDir() + "runningstatus_2024_0" + std::to_string(index); in GenerateInvalidFileName()
113 for (int index = 0; index < SIZE_512; index++) { variable
116 for (int index = 0; index < SIZE_512; index++) { variable
141 for (int index = 0; index < SIZE_512; index++) { variable
144 for (int index = 0; index < SIZE_512; index++) { variable
148 for (int index = 0; index < SIZE_512; index++) { variable
174 for (int index = 0; index < SIZE_512; index++) { variable
177 for (int index = 0; index < SIZE_10240; index++) { variable
181 for (int index = 0; index < SIZE_512; index++) { variable
[all …]
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/
Dhks_generate_key_test.cpp82 uint32_t index = 0; variable
87 g_testGenKeyParams[index].keyAliasParams.blobExist,
88 g_testGenKeyParams[index].keyAliasParams.blobSize,
89 g_testGenKeyParams[index].keyAliasParams.blobDataExist,
90 g_testGenKeyParams[index].keyAliasParams.blobDataSize);
95 g_testGenKeyParams[index].paramSetParams.paramSetExist,
96 … g_testGenKeyParams[index].paramSetParams.setAlg, g_testGenKeyParams[index].paramSetParams.alg,
97 …g_testGenKeyParams[index].paramSetParams.setKeySize, g_testGenKeyParams[index].paramSetParams.keyS…
98 …g_testGenKeyParams[index].paramSetParams.setPurpose, g_testGenKeyParams[index].paramSetParams.purp…
99 …g_testGenKeyParams[index].paramSetParams.setDigest, g_testGenKeyParams[index].paramSetParams.diges…
[all …]
Dhks_derive_test.cpp81 static int32_t BaseTestDerive(uint32_t index) in BaseTestDerive() argument
86 if (g_testDeriveParams[index].genKeyParamSetParams.setKeyStorageFlag && in BaseTestDerive()
87 (g_testDeriveParams[index].genKeyParamSetParams.keyStorageFlag == HKS_STORAGE_TEMP)) { in BaseTestDerive()
88 ret = GenerateLocalRandomKey(&keyAlias, &g_testDeriveParams[index].localKeyParams); in BaseTestDerive()
90 if (g_testDeriveParams[index].keyAliasParams.blobExist) { in BaseTestDerive()
91 ret = GenerateKey(&keyAlias, &g_testDeriveParams[index].keyAliasParams, in BaseTestDerive()
92 &g_testDeriveParams[index].genKeyParamSetParams, NULL); in BaseTestDerive()
95 g_testDeriveParams[index].masterKeyParams.blobExist, in BaseTestDerive()
96 g_testDeriveParams[index].masterKeyParams.blobSize, in BaseTestDerive()
97 g_testDeriveParams[index].masterKeyParams.blobDataExist, in BaseTestDerive()
[all …]
Dhks_mac_test.cpp130 static int32_t BaseTestMac(uint32_t index) in BaseTestMac() argument
136 if (g_testMacParams[index].macType == HKS_TEST_MAC_TYPE_REE) { in BaseTestMac()
138 g_testMacParams[index].keyParams.blobExist, in BaseTestMac()
139 g_testMacParams[index].keyParams.blobSize, in BaseTestMac()
140 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac()
141 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac()
143 if (g_testMacParams[index].keyAliasParams.blobExist) { in BaseTestMac()
144 ret = GenerateKey(&keyTest, &(g_testMacParams[index].keyAliasParams), in BaseTestMac()
145 &g_testMacParams[index].genKeyParamSetParams, NULL); in BaseTestMac()
148 g_testMacParams[index].keyParams.blobExist, in BaseTestMac()
[all …]
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_generate_key_test.cpp81 uint32_t index = 0; variable
85 g_testGenKeyParams[index].keyAliasParams.blobExist,
86 g_testGenKeyParams[index].keyAliasParams.blobSize,
87 g_testGenKeyParams[index].keyAliasParams.blobDataExist,
88 g_testGenKeyParams[index].keyAliasParams.blobDataSize);
93 g_testGenKeyParams[index].paramSetParams.paramSetExist,
94 … g_testGenKeyParams[index].paramSetParams.setAlg, g_testGenKeyParams[index].paramSetParams.alg,
95 …g_testGenKeyParams[index].paramSetParams.setKeySize, g_testGenKeyParams[index].paramSetParams.keyS…
96 …g_testGenKeyParams[index].paramSetParams.setPurpose, g_testGenKeyParams[index].paramSetParams.purp…
97 …g_testGenKeyParams[index].paramSetParams.setDigest, g_testGenKeyParams[index].paramSetParams.diges…
[all …]
Dhks_derive_test.cpp83 static int32_t BaseTestDerive(uint32_t index) in BaseTestDerive() argument
88 if (g_testDeriveParams[index].genKeyParamSetParams.setKeyStorageFlag && in BaseTestDerive()
89 (g_testDeriveParams[index].genKeyParamSetParams.keyStorageFlag == HKS_STORAGE_TEMP)) { in BaseTestDerive()
90 ret = GenerateLocalRandomKey(&keyAliasTest, &g_testDeriveParams[index].localKeyParams); in BaseTestDerive()
92 if (g_testDeriveParams[index].keyAliasParams.blobExist) { in BaseTestDerive()
93 ret = GenerateKey(&keyAliasTest, &g_testDeriveParams[index].keyAliasParams, in BaseTestDerive()
94 &g_testDeriveParams[index].genKeyParamSetParams, NULL); in BaseTestDerive()
97 g_testDeriveParams[index].masterKeyParams.blobExist, in BaseTestDerive()
98 g_testDeriveParams[index].masterKeyParams.blobSize, in BaseTestDerive()
99 g_testDeriveParams[index].masterKeyParams.blobDataExist, in BaseTestDerive()
[all …]
Dhks_safe_compare_key_test.cpp83 uint32_t index = 0; in SafeTestGenerateKey() local
88 …g_testGenKeyParams[index].paramSetParams.paramSetExist, g_testGenKeyParams[index].paramSetParams.s… in SafeTestGenerateKey()
89 … g_testGenKeyParams[index].paramSetParams.alg, g_testGenKeyParams[index].paramSetParams.setKeySize, in SafeTestGenerateKey()
90 g_testGenKeyParams[index].paramSetParams.keySize, in SafeTestGenerateKey()
91 …g_testGenKeyParams[index].paramSetParams.setPurpose, g_testGenKeyParams[index].paramSetParams.purp… in SafeTestGenerateKey()
92 …g_testGenKeyParams[index].paramSetParams.setDigest, g_testGenKeyParams[index].paramSetParams.diges… in SafeTestGenerateKey()
93 …g_testGenKeyParams[index].paramSetParams.setPadding, g_testGenKeyParams[index].paramSetParams.padd… in SafeTestGenerateKey()
94 …g_testGenKeyParams[index].paramSetParams.setBlockMode, g_testGenKeyParams[index].paramSetParams.mo… in SafeTestGenerateKey()
95 g_testGenKeyParams[index].paramSetParams.setKeyStorageFlag, in SafeTestGenerateKey()
96 g_testGenKeyParams[index].paramSetParams.keyStorageFlag in SafeTestGenerateKey()
[all …]
Dhks_mac_test.cpp131 static int32_t BaseTestMac(uint32_t index) in BaseTestMac() argument
137 if (g_testMacParams[index].macType == HKS_TEST_MAC_TYPE_REE) { in BaseTestMac()
139 g_testMacParams[index].keyParams.blobExist, in BaseTestMac()
140 g_testMacParams[index].keyParams.blobSize, in BaseTestMac()
141 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac()
142 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac()
144 if (g_testMacParams[index].keyAliasParams.blobExist) { in BaseTestMac()
146 … &(g_testMacParams[index].keyAliasParams), &g_testMacParams[index].genKeyParamSetParams, NULL); in BaseTestMac()
149 g_testMacParams[index].keyParams.blobExist, in BaseTestMac()
150 g_testMacParams[index].keyParams.blobSize, in BaseTestMac()
[all …]
/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/
Dhks_generate_key_test.c85 uint32_t index = 0; in LITE_TEST_CASE() local
89 g_testGenKeyParams[index].keyAliasParams.blobExist, in LITE_TEST_CASE()
90 g_testGenKeyParams[index].keyAliasParams.blobSize, in LITE_TEST_CASE()
91 g_testGenKeyParams[index].keyAliasParams.blobDataExist, in LITE_TEST_CASE()
92 g_testGenKeyParams[index].keyAliasParams.blobDataSize); in LITE_TEST_CASE()
97 g_testGenKeyParams[index].paramSetParams.paramSetExist, in LITE_TEST_CASE()
98 … g_testGenKeyParams[index].paramSetParams.setAlg, g_testGenKeyParams[index].paramSetParams.alg, in LITE_TEST_CASE()
99 …g_testGenKeyParams[index].paramSetParams.setKeySize, g_testGenKeyParams[index].paramSetParams.keyS… in LITE_TEST_CASE()
100 …g_testGenKeyParams[index].paramSetParams.setPurpose, g_testGenKeyParams[index].paramSetParams.purp… in LITE_TEST_CASE()
101 …g_testGenKeyParams[index].paramSetParams.setDigest, g_testGenKeyParams[index].paramSetParams.diges… in LITE_TEST_CASE()
[all …]
Dhks_derive_test.c83 static int32_t BaseTestDerive(uint32_t index) in BaseTestDerive() argument
88 if (g_testDeriveParams[index].genKeyParamSetParams.setKeyStorageFlag && in BaseTestDerive()
89 (g_testDeriveParams[index].genKeyParamSetParams.keyStorageFlag == HKS_STORAGE_TEMP)) { in BaseTestDerive()
91 &g_testDeriveParams[index].localKeyParams); in BaseTestDerive()
93 if (g_testDeriveParams[index].keyAliasParams.blobExist) { in BaseTestDerive()
95 &g_testDeriveParams[index].keyAliasParams, in BaseTestDerive()
96 &g_testDeriveParams[index].genKeyParamSetParams, NULL); in BaseTestDerive()
99 g_testDeriveParams[index].masterKeyParams.blobExist, in BaseTestDerive()
100 g_testDeriveParams[index].masterKeyParams.blobSize, in BaseTestDerive()
101 g_testDeriveParams[index].masterKeyParams.blobDataExist, in BaseTestDerive()
[all …]
Dhks_mac_test.c131 static int32_t BaseTestMac(uint32_t index) in BaseTestMac() argument
137 if (g_testMacParams[index].macType == HKS_TEST_MAC_TYPE_REE) { in BaseTestMac()
139 g_testMacParams[index].keyParams.blobExist, in BaseTestMac()
140 g_testMacParams[index].keyParams.blobSize, in BaseTestMac()
141 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac()
142 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac()
144 if (g_testMacParams[index].keyAliasParams.blobExist) { in BaseTestMac()
145 ret = GenerateKey(&key, &(g_testMacParams[index].keyAliasParams), in BaseTestMac()
146 &g_testMacParams[index].genKeyParamSetParams, NULL); in BaseTestMac()
149 g_testMacParams[index].keyParams.blobExist, in BaseTestMac()
[all …]
Dhks_modify_key_test.c72 int32_t BaseTestCipherProcess(const struct HksBlob *keyAlias, uint32_t index) in BaseTestCipherProcess() argument
81 &g_testCipherParams[index].plainTextParams, &g_testCipherParams[index].cipherTextParams); in BaseTestCipherProcess()
86 keyAlias, &g_testCipherParams[index], cipherData, in BaseTestCipherProcess()
90 keyAlias, &g_testCipherParams[index].encryptParamSetParams, in BaseTestCipherProcess()
94 if (ret != g_testCipherParams[index].expectResult) { in BaseTestCipherProcess()
99 if (ret != g_testCipherParams[index].expectResult) { in BaseTestCipherProcess()
103 if (ret == g_testCipherParams[index].expectResult) { in BaseTestCipherProcess()
143 uint32_t index = 0; in LITE_TEST_CASE() local
145 int32_t ret = GenerateKeyTwo(&keyAlias, &g_testCipherParams[index].keyAliasParams, in LITE_TEST_CASE()
146 …&g_testCipherParams[index].genKeyParamSetParams, &g_testCipherParams[index].genKeyParamSetParamsOu… in LITE_TEST_CASE()
[all …]
/base/request/request/frameworks/js/napi/src/
Dutf8_utils.cpp50 bool GetNextByte(const std::vector<uint8_t> &v, size_t &index, uint8_t &next) in GetNextByte() argument
52 index += 1; in GetNextByte()
53 if (index >= v.size()) { in GetNextByte()
56 next = v[index]; in GetNextByte()
63 bool Check2Bytes(const std::vector<uint8_t> &v, size_t &index) in Check2Bytes() argument
66 return GetNextByte(v, index, next) && (next >= 0x80 && next <= 0xBF); in Check2Bytes()
72 bool Check3Bytes(const std::vector<uint8_t> &v, const size_t &first, size_t &index) in Check3Bytes() argument
75 if (!GetNextByte(v, index, next)) { in Check3Bytes()
87 return Check2Bytes(v, index); in Check3Bytes()
93 bool Check4Bytes(const std::vector<uint8_t> &v, const size_t &first, size_t &index) in Check4Bytes() argument
[all …]
/base/startup/appspawn/interfaces/innerkits/hnp/src/
Dhnp_api.c90 int index = 0; in NativeInstallHnpEx() local
104 argv[index++] = "hnp"; in NativeInstallHnpEx()
105 argv[index++] = "install"; in NativeInstallHnpEx()
106 argv[index++] = "-u"; in NativeInstallHnpEx()
107 argv[index++] = (char*)userId; in NativeInstallHnpEx()
110 argv[index++] = "-p"; in NativeInstallHnpEx()
111 argv[index++] = (char*)packages[i]; in NativeInstallHnpEx()
115 argv[index++] = "-i"; in NativeInstallHnpEx()
116 argv[index++] = (char*)installPath; in NativeInstallHnpEx()
120 argv[index++] = "-f"; in NativeInstallHnpEx()
[all …]
/base/telephony/cellular_call/services/common/src/
Dcellular_call_rdb_helper.cpp66 for (int32_t index = 0; index < rowCnt; index++) { in QueryEccList() local
68 result->GoToRow(index); in QueryEccList()
69 result->GetColumnIndex(EccData::ID, index); in QueryEccList()
70 result->GetInt(index, bean.id); in QueryEccList()
71 result->GetColumnIndex(EccData::NAME, index); in QueryEccList()
72 result->GetString(index, bean.name); in QueryEccList()
73 result->GetColumnIndex(EccData::MCC, index); in QueryEccList()
74 result->GetString(index, bean.mcc); in QueryEccList()
75 result->GetColumnIndex(EccData::MNC, index); in QueryEccList()
76 result->GetString(index, bean.mnc); in QueryEccList()
[all …]
/base/global/i18n_lite/frameworks/i18n/src/
Dplural_format_impl.cpp203 bool PluralFormatImpl::ParseDecimalFormula(const std::string &rule, const int ruleSize, int &index, in ParseDecimalFormula() argument
207 if ((index < ruleSize) && (rule[index] == NUM_OF_FRACTION)) { in ParseDecimalFormula()
209 } else if ((index < ruleSize) && in ParseDecimalFormula()
210 ((rule[index] == FRACTION_NUMBER) || (rule[index] == FRACTION_NUMBER_WITH_ZERO))) { in ParseDecimalFormula()
215 index += SKIP_SYMBOL_LENGTH; in ParseDecimalFormula()
216 return ParseFormula(rule, ruleSize, index, currentNumber); in ParseDecimalFormula()
284 bool PluralFormatImpl::ParseFormula(const std::string &rule, const int ruleSize, int &index, const … in ParseFormula() argument
287 if ((index < ruleSize) && (rule[index] == MOD)) { in ParseFormula()
289 index += SKIP_SYMBOL_LENGTH; in ParseFormula()
290 int divisor = ParseNumber(rule, ruleSize, index); in ParseFormula()
[all …]
Ddate_time_data.cpp40 string DateTimeData::GetMonthName(int32_t index, DateTimeDataType type) in GetMonthName() argument
42 if ((index < 0) || (index >= MONTH_SIZE)) { in GetMonthName()
47 return Parse(formatAbbreviatedMonthNames, index); in GetMonthName()
50 return Parse(formatWideMonthNames, index); in GetMonthName()
53 return Parse(standaloneAbbreviatedMonthNames, index); in GetMonthName()
56 return Parse(standaloneWideMonthNames, index); in GetMonthName()
61 string DateTimeData::GetDayName(int32_t index, DateTimeDataType type) in GetDayName() argument
63 if ((index < 0) || (index >= DAY_SIZE)) { in GetDayName()
68 return Parse(formatAbbreviatedDayNames, index); in GetDayName()
71 return Parse(formatWideDayNames, index); in GetDayName()
[all …]
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/hisysevent_wrapper/src/
Dhks_report_wrapper.c128 static int32_t AppendParamToExtra(const struct HksParam *paramIn, char *extraOut, uint32_t *index) in AppendParamToExtra() argument
131 …int32_t num = snprintf_s(extraOut + *index, EXTRA_DATA_SIZE - *index, EXTRA_DATA_SIZE - *index - 1… in AppendParamToExtra()
137 *index = *index + num; in AppendParamToExtra()
142 …int32_t num = snprintf_s(extraOut + *index, EXTRA_DATA_SIZE - *index, EXTRA_DATA_SIZE - *index - 1… in AppendParamToExtra()
148 *index = *index + num; in AppendParamToExtra()
168 uint32_t *index) in AppendToExtra() argument
170 if (ISExceedTheLimitSize(*index)) { in AppendToExtra()
173 if (memcpy_s(extraOut + *index, EXTRA_DATA_SIZE - *index, tag->data, tag->size) != EOK) { in AppendToExtra()
177 *index += tag->size; in AppendToExtra()
180 if (ISExceedTheLimitSize(*index)) { in AppendToExtra()
[all …]
/base/telephony/cellular_call/services/connection/src/
Dsupplement_request_ims.cpp26 int32_t SupplementRequestIms::SetClipRequest(int32_t slotId, int32_t action, int32_t index) in SetClipRequest() argument
34 return imsCallClient->SetClip(slotId, action, index); in SetClipRequest()
37 int32_t SupplementRequestIms::GetClipRequest(int32_t slotId, int32_t index) in GetClipRequest() argument
45 return imsCallClient->GetClip(slotId, index); in GetClipRequest()
48 int32_t SupplementRequestIms::SetClirRequest(int32_t slotId, int32_t action, int32_t index) in SetClirRequest() argument
56 return imsCallClient->SetClir(slotId, action, index); in SetClirRequest()
59 int32_t SupplementRequestIms::GetClirRequest(int32_t slotId, int32_t index) in GetClirRequest() argument
67 return imsCallClient->GetClir(slotId, index); in GetClirRequest()
70 int32_t SupplementRequestIms::GetCallTransferRequest(int32_t slotId, int32_t reason, int32_t index) in GetCallTransferRequest() argument
78 return imsCallClient->GetCallTransfer(slotId, reason, index); in GetCallTransferRequest()
[all …]
/base/telephony/cellular_call/services/connection/include/
Dsupplement_request_ims.h36 int32_t SetClipRequest(int32_t slotId, int32_t action, int32_t index);
46 int32_t GetClipRequest(int32_t slotId, int32_t index);
58 int32_t SetClirRequest(int32_t slotId, int32_t action, int32_t index);
68 int32_t GetClirRequest(int32_t slotId, int32_t index);
79 int32_t GetCallTransferRequest(int32_t slotId, int32_t reason, int32_t index);
91 …lTransferRequest(int32_t slotId, const CallTransferInfo &cfInfo, int32_t classType, int32_t index);
112 int32_t GetCallRestrictionRequest(int32_t slotId, const std::string &fac, int32_t index);
125 …RestrictionRequest(int32_t slotId, std::string &fac, int32_t mode, std::string &pw, int32_t index);
139 int32_t SetCallWaitingRequest(int32_t slotId, bool activate, int32_t classType, int32_t index);
149 int32_t GetCallWaitingRequest(int32_t slotId, int32_t index);
[all …]
/base/useriam/user_auth_framework/common/utils/
Diam_mem.cpp27 int32_t UnpackUint64(const std::vector<uint8_t> &src, size_t index, uint64_t &data) in UnpackUint64() argument
29 if ((src.size() < index) || (src.size() - index < sizeof(uint64_t))) { in UnpackUint64()
32 … if (memcpy_s(static_cast<void *>(&data), sizeof(uint64_t), &src[index], sizeof(uint64_t)) != 0) { in UnpackUint64()
38 int32_t UnpackInt32(const std::vector<uint8_t> &src, size_t index, int32_t &data) in UnpackInt32() argument
40 if ((src.size() < index) || (src.size() - index < sizeof(int32_t))) { in UnpackInt32()
43 if (memcpy_s(static_cast<void *>(&data), sizeof(int32_t), &src[index], sizeof(int32_t)) != 0) { in UnpackInt32()
/base/telephony/cellular_call/test/fuzztest/imsclient_fuzzer/
Dimsclient_fuzzer.cpp72 int32_t index = static_cast<int32_t>(size % NUM_THREE); in TestImsCallClientWithCallInfo() local
79 callInfo.index = index; in TestImsCallClientWithCallInfo()
88 imsCallClient->KickOutFromConference(slotId, index); in TestImsCallClientWithCallInfo()
89 imsCallClient->StartDtmf(slotId, *cDtmfCode, index); in TestImsCallClientWithCallInfo()
90 imsCallClient->SendDtmf(slotId, *cDtmfCode, index); in TestImsCallClientWithCallInfo()
91 imsCallClient->StopDtmf(slotId, index); in TestImsCallClientWithCallInfo()
106 int32_t index = static_cast<int32_t>(size % NUM_EIGHT); in TestImsCallClientWithSlotAndType() local
116 imsCallClient->ControlCamera(slotId, index, info); in TestImsCallClientWithSlotAndType()
117 imsCallClient->SetPausePicture(slotId, index, info); in TestImsCallClientWithSlotAndType()
125 imsCallClient->SetPreviewWindow(slotId, index, subSurfaceId, nullptr); in TestImsCallClientWithSlotAndType()
[all …]
/base/location/test/fuzztest/locator/locatorbackgroundproxy_fuzzer/
Dlocatorbackgroundproxy_fuzzer.cpp29 int index = 0; in LocatorBackgroundProxyFuzzerTest() local
38 request->SetUid(data[index++]); in LocatorBackgroundProxyFuzzerTest()
39 request->SetPid(data[index++]); in LocatorBackgroundProxyFuzzerTest()
43 requestConfig->SetScenario(data[index++]); in LocatorBackgroundProxyFuzzerTest()
44 requestConfig->SetPriority(data[index++]); in LocatorBackgroundProxyFuzzerTest()
45 requestConfig->SetTimeInterval(data[index++]); in LocatorBackgroundProxyFuzzerTest()
46 requestConfig->SetDistanceInterval(data[index++]); in LocatorBackgroundProxyFuzzerTest()
47 requestConfig->SetMaxAccuracy(data[index++]); in LocatorBackgroundProxyFuzzerTest()
48 requestConfig->SetFixNumber(data[index++]); in LocatorBackgroundProxyFuzzerTest()
49 requestConfig->SetTimeOut(data[index++]); in LocatorBackgroundProxyFuzzerTest()
[all …]
/base/security/huks/test/unittest/huks_common_test/src/
Dhks_test_cipher_func.cpp194 int32_t BaseTestCipher(uint32_t times, uint32_t index, uint32_t performTimes) in BaseTestCipher() argument
199 if ((g_testCipherParams[index].genKeyParamSetParams.setKeyStorageFlag) && in BaseTestCipher()
200 g_testCipherParams[index].genKeyParamSetParams.keyStorageFlag == HKS_STORAGE_TEMP) { in BaseTestCipher()
201 ret = GenerateLocalRandomKey(&keyAlias, &g_testCipherParams[index].localKeyParams); in BaseTestCipher()
203 ret = GenerateKey(&keyAlias, &g_testCipherParams[index].keyAliasParams, in BaseTestCipher()
204 …&g_testCipherParams[index].genKeyParamSetParams, &g_testCipherParams[index].genKeyParamSetParamsOu… in BaseTestCipher()
210 &g_testCipherParams[index].plainTextParams, &g_testCipherParams[index].cipherTextParams); in BaseTestCipher()
217 keyAlias, &g_testCipherParams[index].encryptParamSetParams, in BaseTestCipher()
221 HKS_TEST_ASSERT(ret == g_testCipherParams[index].expectResult); in BaseTestCipher()
226 keyAlias, &g_testCipherParams[index], cipherData, in BaseTestCipher()
[all …]
/base/security/device_auth/common_lib/interfaces/
Dhc_vector.h34 HcBool (*eraseElement)(struct V##ClassName*, Element*, uint32_t index); \
36 Element (*get)(const struct V##ClassName*, uint32_t index); \
37 Element* (*getp)(const struct V##ClassName*, uint32_t index); \
85 HcBool VErase##ClassName(ClassName* obj, Element* e, uint32_t index) { \
86 if (NULL == obj || NULL == e || index + 1 > obj->size(obj)) { \
90 return ParcelEraseBlock(&obj->parcel, index * sizeof(Element), sizeof(Element), e); \
102 Element VGet##ClassName(const ClassName* obj, uint32_t index) \
107 if (index < obj->size(obj)) { \
109 return *((Element*)(GetParcelData(&obj->parcel)) + index); \
118 Element* VGetPointer##ClassName(const ClassName* obj, uint32_t index) \
[all …]

12345678910>>...41