Home
last modified time | relevance | path

Searched refs:tagIv (Results 1 – 6 of 6) sorted by relevance

/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
Ddlp_crypt_test.cpp107 struct DlpCipherParam tagIv = {{16, g_iv}}; variable
108 struct DlpUsageSpec usageSpec = {DLP_MODE_CTR, &tagIv};
150 struct DlpCipherParam tagIv = {{16, g_iv}}; variable
151 struct DlpUsageSpec usageSpec = {DLP_MODE_CTR, &tagIv};
171 struct DlpCipherParam tagIv = {{16, g_iv}}; variable
172 struct DlpUsageSpec usageSpec = {DLP_MODE_CTR, &tagIv};
192 struct DlpCipherParam tagIv = {{16, g_iv}}; variable
193 struct DlpUsageSpec usageSpec = {DLP_MODE_CTR, &tagIv};
235 struct DlpCipherParam tagIv = {{16, g_iv}}; variable
236 struct DlpUsageSpec usageSpec = {DLP_MODE_CTR, &tagIv};
[all …]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
Ddlp_file_manager.cpp122 struct DlpCipherParam* tagIv = new (std::nothrow) struct DlpCipherParam; in PrepareDlpEncryptParms() local
123 if (tagIv == nullptr) { in PrepareDlpEncryptParms()
130 res = DlpOpensslGenerateRandomKey(IV_SIZE * BIT_NUM_OF_UINT8, &tagIv->iv); in PrepareDlpEncryptParms()
135 delete tagIv; in PrepareDlpEncryptParms()
136 tagIv = nullptr; in PrepareDlpEncryptParms()
141 usage.algParam = tagIv; in PrepareDlpEncryptParms()
143 policy.SetIv(tagIv->iv.data, tagIv->iv.size); in PrepareDlpEncryptParms()
151 delete[] tagIv->iv.data; in PrepareDlpEncryptParms()
152 tagIv->iv.data = nullptr; in PrepareDlpEncryptParms()
153 delete tagIv; in PrepareDlpEncryptParms()
[all …]
Ddlp_file.cpp61 cipher_.tagIv.iv.data = nullptr; in DlpFile()
62 cipher_.tagIv.iv.size = 0; in DlpFile()
78 if (cipher_.tagIv.iv.data != nullptr) { in ~DlpFile()
79 (void)memset_s(cipher_.tagIv.iv.data, cipher_.tagIv.iv.size, 0, cipher_.tagIv.iv.size); in ~DlpFile()
80 delete[] cipher_.tagIv.iv.data; in ~DlpFile()
81 cipher_.tagIv.iv.data = nullptr; in ~DlpFile()
249 int32_t res = CopyBlobParam(spec.algParam->iv, cipher_.tagIv.iv); in SetCipher()
259 CleanBlobParam(cipher_.tagIv.iv); in SetCipher()
264 cipher_.usageSpec.algParam = &cipher_.tagIv; in SetCipher()
/base/security/huks/test/reliability/src/
Dapi_pressure_test.cpp116 struct HksParam tagIv; in AESModeRandForCiper() local
133 tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; in AESModeRandForCiper()
134 HksAddParams(paramInSet, &tagIv, 1); in AESModeRandForCiper()
138 tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; in AESModeRandForCiper()
139 HksAddParams(paramInSet, &tagIv, 1); in AESModeRandForCiper()
141 tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; in AESModeRandForCiper()
142 HksAddParams(paramInSet, &tagIv, 1); in AESModeRandForCiper()
153 tagIv = { .tag = HKS_TAG_NONCE, .blob = { .size = IV_SIZE, .data = iv } }; in AESModeRandForCiper()
154 HksAddParams(paramInSet, &tagIv, 1); in AESModeRandForCiper()
1298 struct HksParam tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; variable
[all …]
Dpressure_test.cpp589 struct HksParam tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; variable
590 HksAddParams(paramInSet, &tagIv, 1);
645 struct HksParam tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; variable
646 HksAddParams(paramInSet, &tagIv, 1);
1054 struct HksParam tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; variable
1055 HksAddParams(paramInSet, &tagIv, 1);
1114 struct HksParam tagIv = { .tag = HKS_TAG_IV, .blob = { .size = IV_SIZE, .data = iv } }; variable
1115 HksAddParams(paramInSet, &tagIv, 1);
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/include/
Ddlp_file.h45 struct DlpCipherParam tagIv; member