Home
last modified time | relevance | path

Searched refs:tagIv (Results 1 - 8 of 8) sorted by relevance

/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
H A Ddlp_crypt_test.cpp107 struct DlpCipherParam tagIv = {{16, g_iv}}; in HWTEST_F() local
108 struct DlpUsageSpec usageSpec = {DLP_MODE_CTR, &tagIv}; in HWTEST_F()
150 struct DlpCipherParam tagIv = {{16, g_iv}}; in HWTEST_F() local
151 struct DlpUsageSpec usageSpec = {DLP_MODE_CTR, &tagIv}; in HWTEST_F()
171 struct DlpCipherParam tagIv = {{16, g_iv}}; in HWTEST_F() local
172 struct DlpUsageSpec usageSpec = {DLP_MODE_CTR, &tagIv}; in HWTEST_F()
192 struct DlpCipherParam tagIv = {{16, g_iv}}; in HWTEST_F() local
193 struct DlpUsageSpec usageSpec = {DLP_MODE_CTR, &tagIv}; in HWTEST_F()
235 struct DlpCipherParam tagIv = {{16, g_iv}}; in HWTEST_F() local
236 struct DlpUsageSpec usageSpec = {DLP_MODE_CTR, &tagIv}; in HWTEST_F()
256 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
278 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
295 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
332 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
399 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
430 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
455 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
522 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
560 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
598 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
638 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
679 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
720 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
737 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
774 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
818 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
842 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
866 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
925 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
963 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
1001 struct DlpCipherParam tagIv = {{16, g_iv}}; HWTEST_F() local
1064 struct DlpCipherParam tagIv = { .iv = { .data = nullptr, .size = 16}}; HWTEST_F() local
1112 struct DlpCipherParam tagIv = { .iv = { .data = nullptr, .size = 16}}; HWTEST_F() local
1161 struct DlpCipherParam tagIv = { .iv = { .data = nullptr, .size = 16}}; HWTEST_F() local
1239 struct DlpCipherParam tagIv = { .iv = { .data = nullptr, .size = 16}}; HWTEST_F() local
1290 struct DlpCipherParam tagIv = { .iv = { .data = nullptr, .size = 16}}; HWTEST_F() local
1345 struct DlpCipherParam tagIv = { .iv = { .data = nullptr, .size = 16}}; HWTEST_F() local
1402 struct DlpCipherParam tagIv = { .iv = { .data = nullptr, .size = 16}}; HWTEST_F() local
1429 struct DlpCipherParam tagIv = { .iv = { .data = nullptr, .size = 16}}; HWTEST_F() local
[all...]
H A Ddlp_file_manager_test.cpp670 * @tc.desc: test param tagIv whether pointer is null
679 DlpCipherParam* tagIv; in HWTEST_F() local
685 DlpFileManager::GetInstance().CleanTempBlob(key, &tagIv, hmacKey); in HWTEST_F()
687 ASSERT_TRUE(tagIv == nullptr); in HWTEST_F()
689 tagIv = new (std::nothrow) struct DlpCipherParam; in HWTEST_F()
690 ASSERT_NE(tagIv, nullptr); in HWTEST_F()
691 tagIv->iv.data = g_iv; in HWTEST_F()
692 ASSERT_TRUE(tagIv->iv.data != nullptr); in HWTEST_F()
693 DlpFileManager::GetInstance().CleanTempBlob(key, &tagIv, hmacKey); in HWTEST_F()
694 ASSERT_TRUE(tagIv in HWTEST_F()
[all...]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
H A Ddlp_file_manager.cpp154 void DlpFileManager::CleanTempBlob(struct DlpBlob& key, struct DlpCipherParam** tagIv, struct DlpBlob& hmacKey) const in CleanTempBlob() argument
162 if (tagIv == nullptr || (*tagIv) == nullptr) { in CleanTempBlob()
165 if ((*tagIv)->iv.data != nullptr) { in CleanTempBlob()
166 CleanBlobParam((*tagIv)->iv); in CleanTempBlob()
168 delete (*tagIv); in CleanTempBlob()
169 (*tagIv) = nullptr; in CleanTempBlob()
182 struct DlpCipherParam* tagIv = new (std::nothrow) struct DlpCipherParam; in PrepareDlpEncryptParms() local
183 if (tagIv == nullptr) { in PrepareDlpEncryptParms()
185 CleanTempBlob(key, &tagIv, hmacKe in PrepareDlpEncryptParms()
[all...]
H A Ddlp_file.cpp77 cipher_.tagIv.iv.data = nullptr; in DlpFile()
78 cipher_.tagIv.iv.size = 0; in DlpFile()
101 if (cipher_.tagIv.iv.data != nullptr) { in ~DlpFile()
102 (void)memset_s(cipher_.tagIv.iv.data, cipher_.tagIv.iv.size, 0, cipher_.tagIv.iv.size); in ~DlpFile()
103 delete[] cipher_.tagIv.iv.data; in ~DlpFile()
104 cipher_.tagIv.iv.data = nullptr; in ~DlpFile()
292 int32_t res = CopyBlobParam(spec.algParam->iv, cipher_.tagIv.iv); in SetCipher()
302 CleanBlobParam(cipher_.tagIv in SetCipher()
[all...]
/base/security/huks/test/reliability/src/
H A Dapi_pressure_test.cpp125 struct HksParam tagIv; in AESModeRandForCiper() local
142 tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; in AESModeRandForCiper()
143 HksAddParams(paramInSet, &tagIv, 1); in AESModeRandForCiper()
147 tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; in AESModeRandForCiper()
148 HksAddParams(paramInSet, &tagIv, 1); in AESModeRandForCiper()
150 tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; in AESModeRandForCiper()
151 HksAddParams(paramInSet, &tagIv, 1); in AESModeRandForCiper()
162 tagIv = { .tag = HKS_TAG_NONCE, .blob = { .size = IV_SIZE, .data = iv } }; in AESModeRandForCiper()
163 HksAddParams(paramInSet, &tagIv, 1); in AESModeRandForCiper()
1273 struct HksParam tagIv in HWTEST_F() local
1316 struct HksParam tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; HWTEST_F() local
[all...]
H A Dpressure_test.cpp564 struct HksParam tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; in HWTEST_F() local
565 HksAddParams(paramInSet, &tagIv, 1); in HWTEST_F()
621 struct HksParam tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; in HWTEST_F() local
622 HksAddParams(paramInSet, &tagIv, 1); in HWTEST_F()
1032 struct HksParam tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; in HWTEST_F() local
1033 HksAddParams(paramInSet, &tagIv, 1); in HWTEST_F()
1092 struct HksParam tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; in HWTEST_F() local
1093 HksAddParams(paramInSet, &tagIv, 1); in HWTEST_F()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/include/
H A Ddlp_file_manager.h60 void CleanTempBlob(struct DlpBlob& key, struct DlpCipherParam** tagIv, struct DlpBlob& hmacKey) const;
H A Ddlp_file.h45 struct DlpCipherParam tagIv; member

Completed in 16 milliseconds