Home
last modified time | relevance | path

Searched refs:genParamSet (Results 1 – 25 of 31) sorted by relevance

12

/test/xts/acts/security/huks_napi_BasicTest/src/
Dhuks_hmac_test.cpp106 …s_Result HksHmacTestCase(const struct OH_Huks_Blob *keyAlias, struct OH_Huks_ParamSet *genParamSet, in HksHmacTestCase() argument
112 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(keyAlias, genParamSet, nullptr); in HksHmacTestCase()
124 OH_Huks_DeleteKeyItem(keyAlias, genParamSet); in HksHmacTestCase()
132 OH_Huks_DeleteKeyItem(keyAlias, genParamSet); in HksHmacTestCase()
137 ret = OH_Huks_DeleteKeyItem(keyAlias, genParamSet); in HksHmacTestCase()
152 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
153 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParams001, sizeof(g_genParams001) / sizeof(OH…
158 ret = HksHmacTestCase(&keyAlias, genParamSet, hmacParamSet);
161 OH_Huks_FreeParamSet(&genParamSet);
175 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
[all …]
Dhuks_signverify_ecc_test.cpp104 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
109 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParamsTest001, sizeof(g_genParamsTest001) / s…
115 if ((genParamSet != nullptr) || (signParamSet != nullptr) || (verifyParamSet != nullptr)) {
116 ret = HksEccSignVerifyTestNormalCase(keyAlias, genParamSet, signParamSet, verifyParamSet);
120 ret = OH_Huks_DeleteKeyItem(&keyAlias, genParamSet);
123 OH_Huks_FreeParamSet(&genParamSet);
Dhuks_signverify_dsa_test.cpp120 … HksDsaSignVerifyTestNormalCase(struct OH_Huks_Blob keyAlias, struct OH_Huks_ParamSet *genParamSet, in HksDsaSignVerifyTestNormalCase() argument
129 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(&keyAlias, genParamSet, nullptr); in HksDsaSignVerifyTestNormalCase()
141 ret = OH_Huks_ExportPublicKeyItem(&keyAlias, genParamSet, &publicKey); in HksDsaSignVerifyTestNormalCase()
171 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
176 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParamsTest001, sizeof(g_genParamsTest001) / s…
182 if ((genParamSet != nullptr) || (signParamSet != nullptr) || (verifyParamSet != nullptr)) {
183 … ret = HksDsaSignVerifyTestNormalCase(keyAlias, genParamSet, signParamSet, verifyParamSet);
187 ret = OH_Huks_DeleteKeyItem(&keyAlias, genParamSet);
190 OH_Huks_FreeParamSet(&genParamSet);
Dhuks_signverify_rsa_test.cpp114 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
118 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParamsTest071, sizeof(g_genParamsTest071) / s…
128 if ((genParamSet != nullptr) || (signParamSet != nullptr) || (verifyParamSet != nullptr)) {
129 ret = HksRsaSignVerifyTestNormalCase(keyAlias, genParamSet, signParamSet, verifyParamSet);
133 ret = OH_Huks_DeleteKeyItem(&keyAlias, genParamSet);
136 OH_Huks_FreeParamSet(&genParamSet);
Dhuks_agree_dh_test.cpp108 const struct OH_Huks_ParamSet *genParamSet) in HksDhAgreeExport() argument
110 OH_Huks_Result ret = OH_Huks_ExportPublicKeyItem(keyAlias1, genParamSet, publicKey1); in HksDhAgreeExport()
115 ret = OH_Huks_ExportPublicKeyItem(keyAlias2, genParamSet, publicKey2); in HksDhAgreeExport()
163 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
168 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParams001, sizeof(g_genParams001) / sizeof(OH…
181 OH_Huks_Result ret1 = OH_Huks_GenerateKeyItem(&g_keyAlias01001, genParamSet, nullptr);
183 ret1 = OH_Huks_GenerateKeyItem(&g_keyAlias02001, genParamSet, nullptr);
192 …et = HksDhAgreeExport(&g_keyAlias01001, &g_keyAlias02001, &publicKey01, &publicKey02, genParamSet);
206 OH_Huks_DeleteKeyItem(&g_keyAlias01001, genParamSet);
207 OH_Huks_DeleteKeyItem(&g_keyAlias02001, genParamSet);
[all …]
Dhuks_derive_hkdf_test.cpp115 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
116 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParams001, sizeof(g_genParams001) / sizeof(OH…
129 HksHkdfDeriveTestNormalCase(keyAlias, genParamSet, hkdfParamSet, hkdfFinishParamSet);
131 ret = OH_Huks_DeleteKeyItem(&keyAlias, genParamSet);
138 OH_Huks_FreeParamSet(&genParamSet);
Dhuks_cipher_aes_test.cpp206 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
207 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParams015, sizeof(g_genParams015) / sizeof(OH…
218 ret = HksAesCipherTestCaseOther(&keyAlias, genParamSet, encryptParamSet, decryptParamSet);
221 OH_Huks_FreeParamSet(&genParamSet);
239 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
240 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParams019, sizeof(g_genParams019) / sizeof(OH…
243 ret = OH_Huks_GenerateKeyItem(&keyAlias, genParamSet, nullptr);
278 ret = OH_Huks_DeleteKeyItem(&keyAlias, genParamSet);
281 OH_Huks_FreeParamSet(&genParamSet);
Dhuks_signverify_ed25519_test.cpp90 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
94 OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParamsTest001,
107 ret = OH_Huks_GenerateKeyItem(&keyAlias, genParamSet, nullptr);
119 ret = OH_Huks_ExportPublicKeyItem(&keyAlias, genParamSet, &publicKey);
133 …EXPECT_EQ(OH_Huks_DeleteKeyItem(&keyAlias, genParamSet).errorCode, (int32_t)OH_HUKS_SUCCESS) << "D…
136 HksTestFreeParamSet(genParamSet, signParamSet, verifyParamSet);
Dhuks_derive_pbkdf_test.cpp141 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
142 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParams001, sizeof(g_genParams001) / sizeof(OH…
156 HksPbkdf2DeriveTestNormalCase(keyAlias, genParamSet, pbkdf2ParamSet, pbkdf2FinishParamSet);
158 ret = OH_Huks_DeleteKeyItem(&keyAlias, genParamSet);
165 OH_Huks_FreeParamSet(&genParamSet);
Dhuks_agree_ecdh_test.cpp179 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
184 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParams001, sizeof(g_genParams001) / sizeof(OH…
197 OH_Huks_Result ret1 = OH_Huks_GenerateKeyItem(&g_keyAlias01001, genParamSet, nullptr);
199 ret1 = OH_Huks_GenerateKeyItem(&g_keyAlias02001, genParamSet, nullptr);
208 … = HksEcdhAgreeExport(&g_keyAlias01001, &g_keyAlias02001, &publicKey01, &publicKey02, genParamSet);
222 OH_Huks_DeleteKeyItem(&g_keyAlias01001, genParamSet);
223 OH_Huks_DeleteKeyItem(&g_keyAlias02001, genParamSet);
226 …HksEcdhAgreeFreeParamSet(genParamSet, initParamSet01, finishParamSet01, initParamSet02, finishPara…
Dhuks_agree_x25519_test.cpp220 …Huks_Blob *publicKey1, struct OH_Huks_Blob *publicKey2, const struct OH_Huks_ParamSet *genParamSet) in HksX25519AgreeExport() argument
222 OH_Huks_Result ret = OH_Huks_ExportPublicKeyItem(keyAlias1, genParamSet, publicKey1); in HksX25519AgreeExport()
227 ret = OH_Huks_ExportPublicKeyItem(keyAlias2, genParamSet, publicKey2); in HksX25519AgreeExport()
274 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
279 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParams001, sizeof(g_genParams001) / sizeof(OH…
292 ret = OH_Huks_GenerateKeyItem(&g_keyAlias01001, genParamSet, nullptr);
294 ret = OH_Huks_GenerateKeyItem(&g_keyAlias02001, genParamSet, nullptr);
301 … HksX25519AgreeExport(&g_keyAlias01001, &g_keyAlias02001, &publicKey01, &publicKey02, genParamSet);
313 OH_Huks_DeleteKeyItem(&g_keyAlias01001, genParamSet);
314 OH_Huks_DeleteKeyItem(&g_keyAlias02001, genParamSet);
[all …]
Dhuks_cipher_rsa_test_common.cpp87 …er::HksRsaCipherTestCase(const struct OH_Huks_Blob *keyAlias, struct OH_Huks_ParamSet *genParamSet, in HksRsaCipherTestCase() argument
91 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(keyAlias, genParamSet, nullptr); in HksRsaCipherTestCase()
97 ret = OH_Huks_ExportPublicKeyItem(keyAlias, genParamSet, &publicKey); in HksRsaCipherTestCase()
117 …EXPECT_EQ(OH_Huks_DeleteKeyItem(keyAlias, genParamSet).errorCode, (int32_t)OH_HUKS_SUCCESS) << "De… in HksRsaCipherTestCase()
123 …struct OH_Huks_ParamSet *genParamSet, struct OH_Huks_ParamSet *encryptParamSet, struct OH_Huks_Par… in HksRsaCipherTestCaseAbnormal() argument
127 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(keyAlias, genParamSet, nullptr); in HksRsaCipherTestCaseAbnormal()
133 ret = OH_Huks_ExportPublicKeyItem(keyAlias, genParamSet, &publicKey); in HksRsaCipherTestCaseAbnormal()
147 …EXPECT_EQ(OH_Huks_DeleteKeyItem(keyAlias, genParamSet).errorCode, (int32_t)OH_HUKS_SUCCESS) << "De… in HksRsaCipherTestCaseAbnormal()
Dhuks_cipher_aes_test_common.cpp73 const struct OH_Huks_Blob *keyAlias, struct OH_Huks_ParamSet *genParamSet, in HksAesCipherTestCaseOther() argument
82 OH_Huks_Result ret = OH_Huks_GetParam(genParamSet, OH_HUKS_TAG_BLOCK_MODE, &modeParam); in HksAesCipherTestCaseOther()
90 ret = OH_Huks_GenerateKeyItem(keyAlias, genParamSet, nullptr); in HksAesCipherTestCaseOther()
110 …EXPECT_EQ(OH_Huks_DeleteKeyItem(keyAlias, genParamSet).errorCode, (int32_t)OH_HUKS_SUCCESS) << "De… in HksAesCipherTestCaseOther()
115 const struct OH_Huks_Blob *keyAlias, struct OH_Huks_ParamSet *genParamSet, in HksAesCipherTestCaseGcm2() argument
123 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(keyAlias, genParamSet, nullptr); in HksAesCipherTestCaseGcm2()
165 …EXPECT_EQ(OH_Huks_DeleteKeyItem(keyAlias, genParamSet).errorCode, (int32_t)OH_HUKS_SUCCESS) << "De… in HksAesCipherTestCaseGcm2()
Dhuks_cipher_rsa_test.cpp127 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
128 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParams041, sizeof(g_genParams041) / sizeof(OH…
139 ret = HksRsaCipherTestCase(&keyAlias, genParamSet, encryptParamSet, decryptParamSet, &inData);
142 OH_Huks_FreeParamSet(&genParamSet);
Dhuks_derive_hkdf_test_common.cpp23 …const struct OH_Huks_ParamSet *genParamSet, struct OH_Huks_ParamSet *deriveParamSet, struct OH_Huk… in HksHkdfDeriveTestNormalCase() argument
32 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(&keyAlias, genParamSet, nullptr); in HksHkdfDeriveTestNormalCase()
56 …const struct OH_Huks_ParamSet *genParamSet, struct OH_Huks_ParamSet *deriveParamSet, struct OH_Huk… in HksHkdfDeriveTestCmpCase() argument
65 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(&keyAlias, genParamSet, nullptr); in HksHkdfDeriveTestCmpCase()
Dhuks_cipher_sm4_test.cpp132 struct OH_Huks_ParamSet *genParamSet = nullptr; variable
133 …OH_Huks_Result ret = InitParamSet(&genParamSet, g_genParams001, sizeof(g_genParams001) / sizeof(OH…
144 ret = HksSm4CipherTestCaseOther(&keyAlias, genParamSet, encryptParamSet, decryptParamSet);
147 OH_Huks_FreeParamSet(&genParamSet);
Dhuks_derive_pbkdf_test_common.cpp23 …const struct OH_Huks_ParamSet *genParamSet, struct OH_Huks_ParamSet *deriveParamSet, struct OH_Huk… in HksPbkdf2DeriveTestNormalCase() argument
32 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(&keyAlias, genParamSet, nullptr); in HksPbkdf2DeriveTestNormalCase()
56 …const struct OH_Huks_ParamSet *genParamSet, struct OH_Huks_ParamSet *deriveParamSet, struct OH_Huk… in HksPbkdf2DeriveTestCmpCase() argument
65 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(&keyAlias, genParamSet, nullptr); in HksPbkdf2DeriveTestCmpCase()
Dhuks_cipher_sm4_test_common.cpp63 …ksSm4CipherTestCaseOther(const struct OH_Huks_Blob *keyAlias, struct OH_Huks_ParamSet *genParamSet, in HksSm4CipherTestCaseOther() argument
73 OH_Huks_GetParam(genParamSet, OH_HUKS_TAG_BLOCK_MODE, &modeParam); in HksSm4CipherTestCaseOther()
80 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(keyAlias, genParamSet, nullptr); in HksSm4CipherTestCaseOther()
98 …EXPECT_EQ(OH_Huks_DeleteKeyItem(keyAlias, genParamSet).errorCode, (int32_t)OH_HUKS_SUCCESS) << "De… in HksSm4CipherTestCaseOther()
Dhuks_signverify_rsa_test_common.cpp49 …struct OH_Huks_ParamSet *genParamSet, struct OH_Huks_ParamSet *signParamSet, struct OH_Huks_ParamS… in HksRsaSignVerifyTestNormalCase() argument
57 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(&keyAlias, genParamSet, nullptr); in HksRsaSignVerifyTestNormalCase()
78 ret = OH_Huks_ExportPublicKeyItem(&keyAlias, genParamSet, &publicKey); in HksRsaSignVerifyTestNormalCase()
110 …struct OH_Huks_ParamSet *genParamSet, struct OH_Huks_ParamSet *signParamSet, struct OH_Huks_ParamS… in HksRSASignVerifyTestAbnormalCase() argument
120 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(&keyAlias, genParamSet, nullptr); in HksRSASignVerifyTestAbnormalCase()
143 ret = OH_Huks_ExportPublicKeyItem(&keyAlias, genParamSet, &publicKey); in HksRSASignVerifyTestAbnormalCase()
Dhuks_signverify_ecc_test_common.cpp48 …struct OH_Huks_ParamSet *genParamSet, struct OH_Huks_ParamSet *signParamSet, struct OH_Huks_ParamS… in HksEccSignVerifyTestNormalCase() argument
57 OH_Huks_Result ret = OH_Huks_GenerateKeyItem(&keyAlias, genParamSet, nullptr); in HksEccSignVerifyTestNormalCase()
69 ret = OH_Huks_ExportPublicKeyItem(&keyAlias, genParamSet, &publicKey); in HksEccSignVerifyTestNormalCase()
/test/xts/acts/security/huks_napi_BasicTest/include/
Dhuks_derive_hkdf_test_common.h30 …eriveTestNormalCase(const struct OH_Huks_Blob keyAlias, const struct OH_Huks_ParamSet *genParamSet,
32 …dfDeriveTestCmpCase(const struct OH_Huks_Blob keyAlias, const struct OH_Huks_ParamSet *genParamSet,
Dhuks_derive_pbkdf_test_common.h31 …eriveTestNormalCase(const struct OH_Huks_Blob keyAlias, const struct OH_Huks_ParamSet *genParamSet,
33 …f2DeriveTestCmpCase(const struct OH_Huks_Blob keyAlias, const struct OH_Huks_ParamSet *genParamSet,
Dhuks_signverify_rsa_test_common.h27 … HksRsaSignVerifyTestNormalCase(struct OH_Huks_Blob keyAlias, struct OH_Huks_ParamSet *genParamSet,
29 …ksRSASignVerifyTestAbnormalCase(struct OH_Huks_Blob keyAlias, struct OH_Huks_ParamSet *genParamSet,
Dhuks_cipher_aes_test_common.h53 struct OH_Huks_ParamSet *genParamSet,
59 struct OH_Huks_ParamSet *genParamSet,
Dhuks_cipher_rsa_test_common.h52 …ult HksRsaCipherTestCase(const struct OH_Huks_Blob *keyAlias, struct OH_Huks_ParamSet *genParamSet,
54 …saCipherTestCaseAbnormal(const struct OH_Huks_Blob *keyAlias, struct OH_Huks_ParamSet *genParamSet,

12