/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
D | hks_crypto_hal_rsa_sign.cpp | 37 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 …]
|
D | hks_crypto_hal_ecdsa_sign.cpp | 37 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 …]
|
D | hks_crypto_hal_rsa_cipher.cpp | 36 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/ |
D | hks_rsa_common_mt.h | 36 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/ |
D | hks_aes_cipher_test_common.cpp | 29 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 …]
|
D | hks_dh_agree_test.cpp | 205 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 …]
|
D | hks_rsa_cipher_test_common.cpp | 26 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 …]
|
D | hks_ed25519_sign_verify_test.cpp | 64 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 …]
|
D | hks_cross_test_common.cpp | 25 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 …]
|
D | hks_ecdh_agree_test_common.cpp | 33 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 …]
|
D | hks_sm4_cipher_test_common.cpp | 29 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 …]
|
D | hks_cross_test.cpp | 64 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 …]
|
D | hks_x25519_agree_test.cpp | 320 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 …]
|
D | hks_access_control_rsa_sign_verify_test_common.cpp | 41 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 …]
|
D | hks_ecdh_agree_part2_test.cpp | 369 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 …]
|
D | hks_rsa_sign_verify_test_common.cpp | 46 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/ |
D | hks_ecc_sign_mt.cpp | 37 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 …]
|
D | hks_ecc_verify_mt.cpp | 36 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 …]
|
D | hks_ecc_key_mt.cpp | 37 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 …]
|
D | hks_rsa_ecb_nopadding_mt.cpp | 50 .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 …]
|
D | hks_rsa_sha384_with_rsa_pss_mt.cpp | 49 .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 …]
|
D | hks_rsa_sha224_with_rsa_pss_mt.cpp | 49 .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 …]
|
D | hks_rsa_sha224_with_rsa_mt.cpp | 49 .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 …]
|
D | hks_rsa_sha256_with_rsa_pss_mt.cpp | 49 .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/ |
D | huks_ipc_serialization_test.cpp | 66 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 …]
|