Home
last modified time | relevance | path

Searched refs:HKS_SUCCESS (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
Dhks_crypto_hal_rsa_sign.cpp37 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS;
38 HksErrorCode signResult = HksErrorCode::HKS_SUCCESS;
39 HksErrorCode verifyResult = HksErrorCode::HKS_SUCCESS;
59 .generateKeyResult = HKS_SUCCESS,
60 .signResult = HKS_SUCCESS,
61 .verifyResult = HKS_SUCCESS,
79 .generateKeyResult = HKS_SUCCESS,
80 .signResult = HKS_SUCCESS,
81 .verifyResult = HKS_SUCCESS,
99 .generateKeyResult = HKS_SUCCESS,
[all …]
Dhks_crypto_hal_ecdsa_sign.cpp37 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS;
38 HksErrorCode signResult = HksErrorCode::HKS_SUCCESS;
39 HksErrorCode verifyResult = HksErrorCode::HKS_SUCCESS;
58 .generateKeyResult = HKS_SUCCESS,
59 .signResult = HKS_SUCCESS,
60 .verifyResult = HKS_SUCCESS,
77 .generateKeyResult = HKS_SUCCESS,
78 .signResult = HKS_SUCCESS,
79 .verifyResult = HKS_SUCCESS,
96 .generateKeyResult = HKS_SUCCESS,
[all …]
Dhks_crypto_hal_rsa_cipher.cpp36 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS;
37 HksErrorCode encryptResult = HksErrorCode::HKS_SUCCESS;
38 HksErrorCode decryptResult = HksErrorCode::HKS_SUCCESS;
58 .generateKeyResult = HKS_SUCCESS,
60 .encryptResult = HKS_SUCCESS,
61 .decryptResult = HKS_SUCCESS,
86 .generateKeyResult = HKS_SUCCESS,
88 .encryptResult = HKS_SUCCESS,
89 .decryptResult = HKS_SUCCESS,
114 .generateKeyResult = HKS_SUCCESS,
[all …]
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/include/
Dhks_rsa_common_mt.h36 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS;
37 HksErrorCode encryptResult = HksErrorCode::HKS_SUCCESS;
38 HksErrorCode decryptResult = HksErrorCode::HKS_SUCCESS;
47 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS;
48 HksErrorCode encryptResult = HksErrorCode::HKS_SUCCESS;
49 HksErrorCode decryptResult = HksErrorCode::HKS_SUCCESS;
60 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS;
61 HksErrorCode encryptResult = HksErrorCode::HKS_SUCCESS;
62 HksErrorCode decryptResult = HksErrorCode::HKS_SUCCESS;
71 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS;
[all …]
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_aes_cipher_test_common.cpp29 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksAesCipherTestEncrypt()
30 if (ret != HKS_SUCCESS) { in HksAesCipherTestEncrypt()
35 EXPECT_EQ(ret, HKS_SUCCESS) << "TestUpdateLoopFinish failed."; in HksAesCipherTestEncrypt()
36 if (ret != HKS_SUCCESS) { in HksAesCipherTestEncrypt()
39 …EXPECT_NE(HksMemCmp(inData->data, cipherText->data, inData->size), HKS_SUCCESS) << "cipherText equ… in HksAesCipherTestEncrypt()
44 EXPECT_EQ(ret, HKS_SUCCESS) << "HksEncrypt failed."; in HksAesCipherTestEncrypt()
45 if (ret != HKS_SUCCESS) { in HksAesCipherTestEncrypt()
48 …EXPECT_EQ(HksMemCmp(outData.data, cipherText->data, outData.size), HKS_SUCCESS) << "cipherText not… in HksAesCipherTestEncrypt()
50 return HKS_SUCCESS; in HksAesCipherTestEncrypt()
60 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksAesCipherTestDecrypt()
[all …]
Dhks_dh_agree_test.cpp205 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksDhAgreeFinish()
206 if (ret != HKS_SUCCESS) { in HksDhAgreeFinish()
213 EXPECT_EQ(ret, HKS_SUCCESS) << "Update failed."; in HksDhAgreeFinish()
214 if (ret != HKS_SUCCESS) { in HksDhAgreeFinish()
219 EXPECT_EQ(ret, HKS_SUCCESS) << "Finish failed."; in HksDhAgreeFinish()
220 if (ret != HKS_SUCCESS) { in HksDhAgreeFinish()
223 return HKS_SUCCESS; in HksDhAgreeFinish()
232 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksDhAgreeAbort()
233 if (ret != HKS_SUCCESS) { in HksDhAgreeAbort()
240 EXPECT_EQ(ret, HKS_SUCCESS) << "Update failed."; in HksDhAgreeAbort()
[all …]
Dhks_rsa_cipher_test_common.cpp26 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksRsaCipherTestEncryptAbnormal()
27 if (ret != HKS_SUCCESS) { in HksRsaCipherTestEncryptAbnormal()
33 if (ret != HKS_SUCCESS) { in HksRsaCipherTestEncryptAbnormal()
35 EXPECT_EQ(abortRet, HKS_SUCCESS) << "Abort failed."; in HksRsaCipherTestEncryptAbnormal()
38 …EXPECT_NE(HksMemCmp(inData->data, cipherText->data, inData->size), HKS_SUCCESS) << "cipherText equ… in HksRsaCipherTestEncryptAbnormal()
43 EXPECT_EQ(ret, HKS_SUCCESS) << "HksEncrypt failed."; in HksRsaCipherTestEncryptAbnormal()
44 if (ret != HKS_SUCCESS) { in HksRsaCipherTestEncryptAbnormal()
47 …EXPECT_EQ(HksMemCmp(outData.data, cipherText->data, outData.size), HKS_SUCCESS) << "cipherText not… in HksRsaCipherTestEncryptAbnormal()
49 return HKS_SUCCESS; in HksRsaCipherTestEncryptAbnormal()
58 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksRsaCipherTestEncrypt()
[all …]
Dhks_ed25519_sign_verify_test.cpp64 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksTestSignVerify()
65 if (ret != HKS_SUCCESS) { in HksTestSignVerify()
71 if (ret != HKS_SUCCESS) { in HksTestSignVerify()
77 EXPECT_EQ(ret, HKS_SUCCESS) << "TestUpdateFinish failed."; in HksTestSignVerify()
78 if (ret != HKS_SUCCESS) { in HksTestSignVerify()
86 EXPECT_EQ(ret, HKS_SUCCESS) << "HksSign failed."; in HksTestSignVerify()
89 EXPECT_EQ(ret, HKS_SUCCESS) << "HksVerify failed."; in HksTestSignVerify()
106 EXPECT_EQ(ret, HKS_SUCCESS) << "GetParam failed."; in HksEd25519SignVerifyTestNormalCase()
114 EXPECT_EQ(ret, HKS_SUCCESS) << "GenerateKey failed."; in HksEd25519SignVerifyTestNormalCase()
120 EXPECT_EQ(ret, HKS_SUCCESS) << "Sign failed."; in HksEd25519SignVerifyTestNormalCase()
[all …]
Dhks_cross_test_common.cpp25 if (InitParamSet(&genParamSet, genParams, paramCnt) != HKS_SUCCESS) { in HksCrossTestGenerateKey()
36 if (HksExportPublicKey(keyAlias, firstParamSet, &publicKey) != HKS_SUCCESS) { in HksCrossTestImportKey()
48 if (ret != HKS_SUCCESS) { in HksCrossTestAesEncrypt()
54 if (ret != HKS_SUCCESS) { in HksCrossTestAesEncrypt()
60 if (ret == HKS_SUCCESS) { in HksCrossTestAesEncrypt()
64 return HKS_SUCCESS; in HksCrossTestAesEncrypt()
73 if (ret != HKS_SUCCESS) { in HksCrossTestAesDecrypt()
79 if (ret != HKS_SUCCESS) { in HksCrossTestAesDecrypt()
86 if (ret != HKS_SUCCESS) { in HksCrossTestAesDecrypt()
90 return HKS_SUCCESS; in HksCrossTestAesDecrypt()
[all …]
Dhks_ecdh_agree_test_common.cpp33 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksEcdhAgreeFinish()
34 if (ret != HKS_SUCCESS) { in HksEcdhAgreeFinish()
41 EXPECT_EQ(ret, HKS_SUCCESS) << "Update failed."; in HksEcdhAgreeFinish()
42 if (ret != HKS_SUCCESS) { in HksEcdhAgreeFinish()
47 EXPECT_EQ(ret, HKS_SUCCESS) << "Finish failed."; in HksEcdhAgreeFinish()
48 if (ret != HKS_SUCCESS) { in HksEcdhAgreeFinish()
51 return HKS_SUCCESS; in HksEcdhAgreeFinish()
60 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksEcdhAgreeAbort()
61 if (ret != HKS_SUCCESS) { in HksEcdhAgreeAbort()
68 EXPECT_EQ(ret, HKS_SUCCESS) << "Update failed."; in HksEcdhAgreeAbort()
[all …]
Dhks_sm4_cipher_test_common.cpp29 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksSm4CipherTestEncrypt()
30 if (ret != HKS_SUCCESS) { in HksSm4CipherTestEncrypt()
35 EXPECT_EQ(ret, HKS_SUCCESS) << "TestUpdateLoopFinish failed."; in HksSm4CipherTestEncrypt()
36 if (ret != HKS_SUCCESS) { in HksSm4CipherTestEncrypt()
39 …EXPECT_NE(HksMemCmp(inData->data, cipherText->data, inData->size), HKS_SUCCESS) << "cipherText equ… in HksSm4CipherTestEncrypt()
41 return HKS_SUCCESS; in HksSm4CipherTestEncrypt()
51 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksSm4CipherTestDecrypt()
52 if (ret != HKS_SUCCESS) { in HksSm4CipherTestDecrypt()
57 EXPECT_EQ(ret, HKS_SUCCESS) << "TestUpdateLoopFinish failed."; in HksSm4CipherTestDecrypt()
58 if (ret != HKS_SUCCESS) { in HksSm4CipherTestDecrypt()
[all …]
Dhks_cross_test.cpp64 EXPECT_EQ(ret, HKS_SUCCESS) << "HksCrossTestGenerateKey failed.";
69 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(en) failed.";
71 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(de) failed.";
81 EXPECT_EQ(ret, HKS_SUCCESS) << "HksEncrypt failed.";
82 …EXPECT_NE(HksMemCmp(inData.data, cipherText.data, cipherText.size), HKS_SUCCESS) << "inData equals…
85 EXPECT_EQ(ret, HKS_SUCCESS) << "HksCrossTestAesDecrypt failed.";
86 …EXPECT_EQ(HksMemCmp(inData.data, plainText.data, plainText.size), HKS_SUCCESS) << "inData not equa…
107 EXPECT_EQ(ret, HKS_SUCCESS) << "HksCrossTestGenerateKey failed.";
112 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(en) failed.";
114 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(de) failed.";
[all …]
Dhks_x25519_agree_test.cpp320 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksX25519AgreeFinish()
321 if (ret != HKS_SUCCESS) { in HksX25519AgreeFinish()
328 EXPECT_EQ(ret, HKS_SUCCESS) << "Update failed."; in HksX25519AgreeFinish()
329 if (ret != HKS_SUCCESS) { in HksX25519AgreeFinish()
334 EXPECT_EQ(ret, HKS_SUCCESS) << "Finish failed."; in HksX25519AgreeFinish()
335 if (ret != HKS_SUCCESS) { in HksX25519AgreeFinish()
338 return HKS_SUCCESS; in HksX25519AgreeFinish()
347 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksX25519AgreeAbort()
348 if (ret != HKS_SUCCESS) { in HksX25519AgreeAbort()
355 EXPECT_EQ(ret, HKS_SUCCESS) << "Update failed."; in HksX25519AgreeAbort()
[all …]
Dhks_access_control_rsa_sign_verify_test_common.cpp41 if (ret != HKS_SUCCESS) { in RSAAuthTokenSign()
52 return HKS_SUCCESS; in RSAAuthTokenSign()
58 if (ret != HKS_SUCCESS) { in AddAuthTokenParam()
63 if (ret != HKS_SUCCESS) { in AddAuthTokenParam()
67 return HKS_SUCCESS; in AddAuthTokenParam()
77 if (ret != HKS_SUCCESS) { in AppendToNewParamSet()
83 if (ret != HKS_SUCCESS) { in AppendToNewParamSet()
89 if (ret != HKS_SUCCESS) { in AppendToNewParamSet()
95 if (ret != HKS_SUCCESS) { in AppendToNewParamSet()
130 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksAcRsaThreeStageNormalCase()
[all …]
Dhks_ecdh_agree_part2_test.cpp369 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(gen) failed.";
371 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(init & update)01 failed.";
374 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(finish)01 failed.";
376 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(init & update)02 failed.";
379 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(finish)02 failed.";
382 EXPECT_EQ(ret, HKS_SUCCESS) << "GenerateKey01 failed.";
384 EXPECT_EQ(ret, HKS_SUCCESS) << "GenerateKey02 failed.";
388 …EXPECT_EQ(MallocAndCheckBlobData(&publicKey01, publicKey01.size), HKS_SUCCESS) << "Malloc publicKe…
389 …EXPECT_EQ(MallocAndCheckBlobData(&publicKey02, publicKey02.size), HKS_SUCCESS) << "Malloc publicKe…
391 EXPECT_EQ(ret, HKS_SUCCESS) << "ExportKey failed.";
[all …]
Dhks_rsa_sign_verify_test_common.cpp46 EXPECT_EQ(ret, HKS_SUCCESS) << "GenerateKey failed."; in RsaSignVerifyTestNormalCase()
53 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in RsaSignVerifyTestNormalCase()
56 EXPECT_EQ(ret, HKS_SUCCESS) << "Update failed."; in RsaSignVerifyTestNormalCase()
61 EXPECT_EQ(ret, HKS_SUCCESS) << "Finish failed."; in RsaSignVerifyTestNormalCase()
67 EXPECT_EQ(ret, HKS_SUCCESS) << "ExportPublicKey failed."; in RsaSignVerifyTestNormalCase()
77 EXPECT_EQ(ret, HKS_SUCCESS) << "ImportKey failed"; in RsaSignVerifyTestNormalCase()
84 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in RsaSignVerifyTestNormalCase()
87 EXPECT_EQ(ret, HKS_SUCCESS) << "Update failed."; in RsaSignVerifyTestNormalCase()
92 EXPECT_EQ(ret, HKS_SUCCESS) << "Finish failed."; in RsaSignVerifyTestNormalCase()
96 EXPECT_EQ(ret, HKS_SUCCESS) << "Delete ImportKey failed."; in RsaSignVerifyTestNormalCase()
[all …]
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dhks_ecc_sign_mt.cpp37 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS;
38 HksErrorCode signResult = HksErrorCode::HKS_SUCCESS;
39 HksErrorCode verifyResult = HksErrorCode::HKS_SUCCESS;
55 .generateKeyResult = HKS_SUCCESS,
56 .signResult = HKS_SUCCESS,
57 .verifyResult = HKS_SUCCESS,
71 .generateKeyResult = HKS_SUCCESS,
72 .signResult = HKS_SUCCESS,
73 .verifyResult = HKS_SUCCESS,
87 .generateKeyResult = HKS_SUCCESS,
[all …]
Dhks_ecc_verify_mt.cpp36 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS;
37 HksErrorCode signResult = HksErrorCode::HKS_SUCCESS;
38 HksErrorCode verifyResult = HksErrorCode::HKS_SUCCESS;
53 .generateKeyResult = HKS_SUCCESS,
54 .signResult = HKS_SUCCESS,
55 .verifyResult = HKS_SUCCESS,
69 .generateKeyResult = HKS_SUCCESS,
70 .signResult = HKS_SUCCESS,
71 .verifyResult = HKS_SUCCESS,
85 .generateKeyResult = HKS_SUCCESS,
[all …]
Dhks_ecc_key_mt.cpp37 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS;
38 HksErrorCode signResult = HksErrorCode::HKS_SUCCESS;
39 HksErrorCode verifyResult = HksErrorCode::HKS_SUCCESS;
55 .generateKeyResult = HKS_SUCCESS,
56 .signResult = HKS_SUCCESS,
57 .verifyResult = HKS_SUCCESS,
71 .generateKeyResult = HKS_SUCCESS,
72 .signResult = HKS_SUCCESS,
73 .verifyResult = HKS_SUCCESS,
87 .generateKeyResult = HKS_SUCCESS,
[all …]
Dhks_rsa_ecb_nopadding_mt.cpp50 .generateKeyResult = HKS_SUCCESS,
51 .encryptResult = HKS_SUCCESS,
52 .decryptResult = HKS_SUCCESS,
71 .generateKeyResult = HKS_SUCCESS,
72 .encryptResult = HKS_SUCCESS,
73 .decryptResult = HKS_SUCCESS,
93 .generateKeyResult = HKS_SUCCESS,
94 .encryptResult = HKS_SUCCESS,
95 .decryptResult = HKS_SUCCESS,
117 .generateKeyResult = HKS_SUCCESS,
[all …]
Dhks_rsa_sha384_with_rsa_pss_mt.cpp49 .generateKeyResult = HKS_SUCCESS,
53 .signResult = HKS_SUCCESS,
54 .verifyResult = HKS_SUCCESS,
74 .generateKeyResult = HKS_SUCCESS,
78 .signResult = HKS_SUCCESS,
79 .verifyResult = HKS_SUCCESS,
98 .generateKeyResult = HKS_SUCCESS,
99 .signResult = HKS_SUCCESS,
100 .verifyResult = HKS_SUCCESS,
120 .generateKeyResult = HKS_SUCCESS,
[all …]
Dhks_rsa_sha224_with_rsa_pss_mt.cpp49 .generateKeyResult = HKS_SUCCESS,
50 .signResult = HKS_SUCCESS,
51 .verifyResult = HKS_SUCCESS,
70 .generateKeyResult = HKS_SUCCESS,
71 .signResult = HKS_SUCCESS,
72 .verifyResult = HKS_SUCCESS,
90 .generateKeyResult = HKS_SUCCESS,
91 .signResult = HKS_SUCCESS,
92 .verifyResult = HKS_SUCCESS,
112 .generateKeyResult = HKS_SUCCESS,
[all …]
Dhks_rsa_sha224_with_rsa_mt.cpp49 .generateKeyResult = HKS_SUCCESS,
50 .signResult = HKS_SUCCESS,
51 .verifyResult = HKS_SUCCESS,
70 .generateKeyResult = HKS_SUCCESS,
71 .signResult = HKS_SUCCESS,
72 .verifyResult = HKS_SUCCESS,
90 .generateKeyResult = HKS_SUCCESS,
91 .signResult = HKS_SUCCESS,
92 .verifyResult = HKS_SUCCESS,
112 .generateKeyResult = HKS_SUCCESS,
[all …]
Dhks_rsa_sha256_with_rsa_pss_mt.cpp49 .generateKeyResult = HKS_SUCCESS,
50 .signResult = HKS_SUCCESS,
51 .verifyResult = HKS_SUCCESS,
70 .generateKeyResult = HKS_SUCCESS,
71 .signResult = HKS_SUCCESS,
72 .verifyResult = HKS_SUCCESS,
90 .generateKeyResult = HKS_SUCCESS,
91 .signResult = HKS_SUCCESS,
92 .verifyResult = HKS_SUCCESS,
112 .generateKeyResult = HKS_SUCCESS,
[all …]
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/os_dependency/idl/ipc/src/
Dhuks_ipc_serialization_test.cpp66 ASSERT_TRUE(ret == HKS_SUCCESS);
71 ASSERT_TRUE(ret == HKS_SUCCESS);
73 ASSERT_TRUE(ret == HKS_SUCCESS);
76 ASSERT_TRUE(ret == HKS_SUCCESS);
90 ASSERT_TRUE(ret == HKS_SUCCESS);
95 ASSERT_TRUE(ret == HKS_SUCCESS);
111 ASSERT_TRUE(ret == HKS_SUCCESS);
118 ASSERT_TRUE(ret == HKS_SUCCESS);
120 ASSERT_TRUE(ret == HKS_SUCCESS);
122 ASSERT_TRUE(ret == HKS_SUCCESS);
[all …]

12345678910>>...13