Home
last modified time | relevance | path

Searched refs:HksAddParams (Results 1 – 25 of 77) sorted by relevance

1234

/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_test_curve25519.c39 ret = HksAddParams(paramSet, &algParam, 1); in TestGenerateEd25519Key()
44 ret = HksAddParams(paramSet, &keySizeParam, 1); in TestGenerateEd25519Key()
49 ret = HksAddParams(paramSet, &purposeParam, 1); in TestGenerateEd25519Key()
54 ret = HksAddParams(paramSet, &digestParam, 1); in TestGenerateEd25519Key()
59 ret = HksAddParams(paramSet, &paddingParam, 1); in TestGenerateEd25519Key()
79 ret = HksAddParams(paramSet, &algParam, 1); in TestSignEd25519()
84 ret = HksAddParams(paramSet, &purposeParam, 1); in TestSignEd25519()
89 ret = HksAddParams(paramSet, &digestParam, 1); in TestSignEd25519()
94 ret = HksAddParams(paramSet, &paddingParam, 1); in TestSignEd25519()
119 ret = HksAddParams(paramSet, &algParam, 1); in TestVerifyEd25519()
[all …]
Dhks_test_common.c105 ret = HksAddParams(paramSet, (const struct HksParam *) &algParam, 1); in TestGenerateKeyParamSetPre()
113 ret = HksAddParams(paramSet, (const struct HksParam *) &keySizeParam, 1); in TestGenerateKeyParamSetPre()
121 ret = HksAddParams(paramSet, (const struct HksParam *) &purposeParam, 1); in TestGenerateKeyParamSetPre()
129 ret = HksAddParams(paramSet, (const struct HksParam *) &digestParam, 1); in TestGenerateKeyParamSetPre()
138 ret = HksAddParams(paramSet, (const struct HksParam *) &paddingParam, 1); in TestGenerateKeyParamSetPre()
155 ret = HksAddParams(paramSet, (const struct HksParam *) &keyMode, 1); in TestGenerateKeyParamSetPost()
163 ret = HksAddParams(paramSet, (const struct HksParam *) &keyStorageFlagParam, 1); in TestGenerateKeyParamSetPost()
170 ret = HksAddParams(paramSet, (const struct HksParam *) &tmpParam, 1); in TestGenerateKeyParamSetPost()
236 ret = HksAddParams(paramSet, (const struct HksParam *) &algParam, 1); in TestAesCipherParamSetPre()
244 ret = HksAddParams(paramSet, (const struct HksParam *) &purposeParam, 1); in TestAesCipherParamSetPre()
[all …]
Dhks_inner_test.cpp148 HksAddParams(paramSet, &algrithom, 1);
153 HksAddParams(paramSet, &keySize, 1);
158 HksAddParams(paramSet, &purpose, 1);
163 HksAddParams(paramSet, &digest, 1);
195 HksAddParams(paramSet, &algrithom, 1);
200 HksAddParams(paramSet, &keySize, 1);
205 HksAddParams(paramSet, &purpose, 1);
210 HksAddParams(paramSet, &digest, 1);
234 HksAddParams(paramSet, &algrithom, 1);
243 HksAddParams(paramSet, &algrithom, 1);
[all …]
Dhks_test_aes.c48 ret = HksAddParams(*paramSet, (const struct HksParam *)&algParam, 1); in ConstructParamSetEncryptDecryptAesPre()
57 ret = HksAddParams(*paramSet, (const struct HksParam *)&modeParam, 1); in ConstructParamSetEncryptDecryptAesPre()
66 ret = HksAddParams(*paramSet, (const struct HksParam *)&padParam, 1); in ConstructParamSetEncryptDecryptAesPre()
79 ret = HksAddParams(*paramSet, (const struct HksParam *)&purposeParam, 1); in ConstructParamSetEncryptDecryptAesPre()
96 ret = HksAddParams(*paramSet, (const struct HksParam *)&aadParam, 1); in ConstructParamSetEncryptDecryptAesPost()
107 ret = HksAddParams(*paramSet, (const struct HksParam *)&ivParam, 1); in ConstructParamSetEncryptDecryptAesPost()
117 ret = HksAddParams(*paramSet, (const struct HksParam *)&nonceParam, 1); in ConstructParamSetEncryptDecryptAesPost()
170 … HKS_TEST_ASSERT(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in GenerateBaseKey()
211 … HKS_TEST_ASSERT(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in PlainPubKey()
240 … HKS_TEST_ASSERT(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in SetKeyAliasTrue()
[all …]
Dhks_session_max_test.cpp74 ASSERT_TRUE(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in GenerateBaseKey()
95 ASSERT_TRUE(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in ConstructInitParamSet()
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_curve25519.c41 ret = HksAddParams(paramSet, &algParam, 1); in TestGenerateEd25519Key()
46 ret = HksAddParams(paramSet, &keySizeParam, 1); in TestGenerateEd25519Key()
51 ret = HksAddParams(paramSet, &purposeParam, 1); in TestGenerateEd25519Key()
56 ret = HksAddParams(paramSet, &digestParam, 1); in TestGenerateEd25519Key()
61 ret = HksAddParams(paramSet, &paddingParam, 1); in TestGenerateEd25519Key()
81 ret = HksAddParams(paramSet, &algParam, 1); in TestSignEd25519()
86 ret = HksAddParams(paramSet, &purposeParam, 1); in TestSignEd25519()
91 ret = HksAddParams(paramSet, &digestParam, 1); in TestSignEd25519()
96 ret = HksAddParams(paramSet, &paddingParam, 1); in TestSignEd25519()
121 ret = HksAddParams(paramSet, &algParam, 1); in TestVerifyEd25519()
[all …]
Dhks_test_common.c108 ret = HksAddParams(paramSet, (const struct HksParam *) &algParam, 1); in TestGenerateKeyParamSetPre()
116 ret = HksAddParams(paramSet, (const struct HksParam *) &keySizeParam, 1); in TestGenerateKeyParamSetPre()
124 ret = HksAddParams(paramSet, (const struct HksParam *) &purposeParam, 1); in TestGenerateKeyParamSetPre()
132 ret = HksAddParams(paramSet, (const struct HksParam *) &digestParam, 1); in TestGenerateKeyParamSetPre()
141 ret = HksAddParams(paramSet, (const struct HksParam *) &paddingParam, 1); in TestGenerateKeyParamSetPre()
158 ret = HksAddParams(paramSet, (const struct HksParam *) &keyMode, 1); in TestGenerateKeyParamSetPost()
166 ret = HksAddParams(paramSet, (const struct HksParam *) &keyStorageFlagParam, 1); in TestGenerateKeyParamSetPost()
173 ret = HksAddParams(paramSet, (const struct HksParam *) &tmpParam, 1); in TestGenerateKeyParamSetPost()
239 ret = HksAddParams(paramSet, (const struct HksParam *) &algParam, 1); in TestAesCipherParamSetPre()
247 ret = HksAddParams(paramSet, (const struct HksParam *) &purposeParam, 1); in TestAesCipherParamSetPre()
[all …]
Dhks_test_aes.c49 ret = HksAddParams(*paramSet, (const struct HksParam *)&algParam, 1); in ConstructParamSetEncryptDecryptAesPre()
58 ret = HksAddParams(*paramSet, (const struct HksParam *)&modeParam, 1); in ConstructParamSetEncryptDecryptAesPre()
67 ret = HksAddParams(*paramSet, (const struct HksParam *)&padParam, 1); in ConstructParamSetEncryptDecryptAesPre()
80 ret = HksAddParams(*paramSet, (const struct HksParam *)&purposeParam, 1); in ConstructParamSetEncryptDecryptAesPre()
97 ret = HksAddParams(*paramSet, (const struct HksParam *)&aadParam, 1); in ConstructParamSetEncryptDecryptAesPost()
108 ret = HksAddParams(*paramSet, (const struct HksParam *)&ivParam, 1); in ConstructParamSetEncryptDecryptAesPost()
118 ret = HksAddParams(*paramSet, (const struct HksParam *)&nonceParam, 1); in ConstructParamSetEncryptDecryptAesPost()
171 … HKS_TEST_ASSERT(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in GenerateBaseKey()
212 … HKS_TEST_ASSERT(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in PlainPubKey()
241 … HKS_TEST_ASSERT(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in SetKeyAliasTrue()
[all …]
/base/security/huks/test/reliability/src/
Dapi_pressure_test.cpp131 HksAddParams(paramInSet, paramMode[indexOfMode], 1); in AESModeRandForCiper()
134 HksAddParams(paramInSet, &tagIv, 1); in AESModeRandForCiper()
135 HksAddParams(paramInSet, paramPadding[GetRandom() % countOfPadding], 1); in AESModeRandForCiper()
137 HksAddParams(paramInSet, &g_PARAM_PADDING_NONE, 1); in AESModeRandForCiper()
139 HksAddParams(paramInSet, &tagIv, 1); in AESModeRandForCiper()
142 HksAddParams(paramInSet, &tagIv, 1); in AESModeRandForCiper()
144 HksAddParams(paramInSet, paramPadding[GetRandom() % countOfPadding], 1); in AESModeRandForCiper()
146 HksAddParams(paramInSet, &g_PARAM_PADDING_NONE, 1); in AESModeRandForCiper()
149 HksAddParams(paramInSet, &g_PARAM_PADDING_NONE, 1); in AESModeRandForCiper()
152 HksAddParams(paramInSet, &aad, 1); in AESModeRandForCiper()
[all …]
Dpressure_test.cpp83 HksAddParams(paramOutSet, &localKey, 1); in LocalHksGenerate()
192 HksAddParams(paramInSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0]));
230 HksAddParams(paramInSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0]));
277 HksAddParams(paramInSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0]));
323 HksAddParams(paramInSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0]));
361 HksAddParams(paramInSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0]));
372 HksAddParams(paramOutSet, &localKey, 1);
412 HksAddParams(paramInSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0]));
451 HksAddParams(paramInSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0]));
489 HksAddParams(paramInSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0]));
[all …]
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/
Dhks_keyblob_test.cpp101 ret = HksAddParams(paramSet, &keyParam, 1);
139 ret = HksAddParams(paramSet, &processNameParam, 1);
163 ret = HksAddParams(paramSet, &keyParam, 1);
201 ret = HksAddParams(paramSet, &keyParam, 1);
238 ret = HksAddParams(paramSet, &keyVersion, 1);
262 ret = HksAddParams(paramSet, &keyVersion, 1);
Dhks_upgrade_key_c_test.cpp72 ret = HksAddParams(srcParamSet, &algParam, 1);
127 ret = HksAddParams(srcParamSet, &processNameParam, 1);
193 ret = HksAddParams(srcParamSet, &processNameParam, 1);
217 ret = HksAddParams(srcParamSet, &processNameParam, 1);
228 ret = HksAddParams(paramSet, &processNameParam2, 1);
255 ret = HksAddParams(srcParamSet, &processNameParam, 1);
266 ret = HksAddParams(paramSet, &processNameParam2, 1);
/base/security/huks/interfaces/kits/c/src/
Dnative_huks_api_adapter.c44 … ret = HksAddParams(newParamSet, (const struct HksParam *)paramSet->params, paramSet->paramsCnt); in HuksAttestAdapter()
49 ret = HksAddParams(newParamSet, &isBase64Param, 1); in HuksAttestAdapter()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/os_dependency/idl/ipc/src/
Dhuks_ipc_serialization_test.cpp73 ret = HksAddParams(paramSet, &aliasParam, 1);
120 ret = HksAddParams(paramSet, &aliasNullParam, 1);
144 ret = HksAddParams(paramSet, &param, 1);
168 ret = HksAddParams(paramSet, &param, 1);
192 ret = HksAddParams(paramSet, &param, 1);
216 ret = HksAddParams(paramSet, &param, 1);
240 ret = HksAddParams(paramSet, &param, 1);
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_upgrade_key.c58 ret = HksAddParams(targetParamSet, &(srcParamSet->params[i]), 1); in AddAlgParamsTags()
78 ret = HksAddParams(targetParamSet, param, 1); in AddMandatoryParams()
95 return HksAddParams(targetParamSet, &HksParamKeyVerison, 1); in HksAddKeyVersionToParamSet()
102 return HksAddParams(targetParamSet, &HksParamOsVersion, 1); in HksAddOsVersionToParamSet()
110 return HksAddParams(targetParamSet, &HksOsPatchLevel, 1); in HksAddOsPatchToParamSet()
118 return HksAddParams(targetParamSet, keyParam, 1); in HksAddkeyToParamSet()
146 ret = HksAddParams(outParamSet, srcParamSet->params, srcParamSet->paramsCnt); in AddMandatoryParamsInCore()
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_storage_adapter.c66 int32_t ret = HksAddParams(paramSet, params, sizeof(params) / sizeof(params[0])); in AddStorageFixedParams()
95 ret = HksAddParams(paramSet, &keyAuthIdParam, 1); in AddStorageParams()
104 ret = HksAddParams(paramSet, &keyParam, 1); in AddStorageParams()
Dhks_upgrade_key_accesser.c41 return HksAddParams(targetParamSet, srcParamSet->params, srcParamSet->paramsCnt); in AddMandatoryParamsInService()
/base/security/huks/test/unittest/modify_old_version_key_test_util/
Dhks_test_modify_old_key.c43 (void)HksAddParams(newParamSet, paramSet->params, paramSet->paramsCnt); in HksTestGenerateOldKey()
49 (void)HksAddParams(newParamSet, &tmpParam, 1); in HksTestGenerateOldKey()
/base/security/huks/test/unittest/huks_standard_test/module_test/upgrade_key_test/src/
Dhks_upgrade_key_test.cpp159 ret = HksAddParams(genParamSet, genParams, genParamsCnt); in TestGenerateOldkey()
178 ret = HksAddParams(encryptParamSet, encParams, encParamsCnt); in TestDoEncrypt()
195 ret = HksAddParams(decryptParamSet, decParams, decParamsCnt); in TestDoDecrypt()
219 (void)HksAddParams(paramOutSet, &getParam, 1); in TestCheckKeyVersionIsExpected()
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/
Dhks_base_check_test.cpp298 ret = HksAddParams(paramSet, &aadParam, 1);
324 ret = HksAddParams(paramSet, &aadParam, 1);
329 ret = HksAddParams(paramSet, &param, 1);
350 ret = HksAddParams(paramSet, &param, 1);
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_attest_key_test_common.cpp83 ret = HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])); in TestGenerateKey()
155 ret = HksAddParams(*paramSet, tmpParams, paramCount); in GenerateParamSet()
224 ret = HksAddParams(paramSet, tmpParam, paramCount); in ValidateCertChainTest()
/base/security/huks/interfaces/inner_api/huks_standard/main/include/
Dhks_param.h54 HKS_API_EXPORT int32_t HksAddParams(struct HksParamSet *paramSet,
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dhks_rsa_common_mt.cpp47 …EXPECT_EQ(HksAddParams(paramInSet, testCaseParams.params.data(), testCaseParams.params.size()), HK… in GenerateKeyTestCase()
109 …EXPECT_EQ(HksAddParams(paramInSet, testCaseParams.params.data(), testCaseParams.params.size()), HK… in EncryptLocalTestCase()
175 …EXPECT_EQ(HksAddParams(paramInSet, testCaseParams.params.data(), testCaseParams.params.size()), HK… in EncryptServiceTestCase()
240 …EXPECT_EQ(HksAddParams(paramInSet, testCaseParams.params.data(), testCaseParams.params.size()), HK… in DecryptLocalTestCase()
307 …EXPECT_EQ(HksAddParams(paramInSet, testCaseParams.params.data(), testCaseParams.params.size()), HK… in DecryptServiceTestCase()
364 …EXPECT_EQ(HksAddParams(paramInSet, testCaseParams.params.data(), testCaseParams.params.size()), HK… in SignLocalTestCase()
431 …EXPECT_EQ(HksAddParams(paramInSet, testCaseParams.params.data(), testCaseParams.params.size()), HK… in SignServiceTestCase()
490 …EXPECT_EQ(HksAddParams(paramInSet, testCaseParams.params.data(), testCaseParams.params.size()), HK… in VerifyLocalTestCase()
550 …EXPECT_EQ(HksAddParams(paramInSet, testCaseParams.params.data(), testCaseParams.params.size()), HK… in VerifyServiceTestCase()
/base/security/code_signature/services/local_code_sign/include/
Dlocal_sign_key.h54 ret = HksAddParams(paramSet, tmpParams, paramCount); in Init()
/base/security/huks/interfaces/inner_api/huks_standard/main/
Dlibhukssdk.map49 HksAddParams;

1234