/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
D | hks_crypto_hal_rsa_sign.cpp | 38 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS; 39 HksErrorCode signResult = HksErrorCode::HKS_SUCCESS; 40 HksErrorCode verifyResult = HksErrorCode::HKS_SUCCESS; 61 .generateKeyResult = HKS_SUCCESS, 62 .signResult = HKS_SUCCESS, 63 .verifyResult = HKS_SUCCESS, 81 .generateKeyResult = HKS_SUCCESS, 82 .signResult = HKS_SUCCESS, 83 .verifyResult = HKS_SUCCESS, 101 .generateKeyResult = HKS_SUCCESS, [all …]
|
D | hks_crypto_hal_ecdsa_sign.cpp | 38 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS; 39 HksErrorCode signResult = HksErrorCode::HKS_SUCCESS; 40 HksErrorCode verifyResult = HksErrorCode::HKS_SUCCESS; 61 .generateKeyResult = HKS_SUCCESS, 62 .signResult = HKS_SUCCESS, 63 .verifyResult = HKS_SUCCESS, 81 .generateKeyResult = HKS_SUCCESS, 82 .signResult = HKS_SUCCESS, 83 .verifyResult = HKS_SUCCESS, 100 .generateKeyResult = HKS_SUCCESS, [all …]
|
D | hks_crypto_hal_rsa_cipher.cpp | 37 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS; 38 HksErrorCode encryptResult = HksErrorCode::HKS_SUCCESS; 39 HksErrorCode decryptResult = HksErrorCode::HKS_SUCCESS; 60 .generateKeyResult = HKS_SUCCESS, 62 .encryptResult = HKS_SUCCESS, 63 .decryptResult = HKS_SUCCESS, 88 .generateKeyResult = HKS_SUCCESS, 90 .encryptResult = HKS_SUCCESS, 91 .decryptResult = HKS_SUCCESS, 116 .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 | 40 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS; 41 HksErrorCode encryptResult = HksErrorCode::HKS_SUCCESS; 42 HksErrorCode decryptResult = HksErrorCode::HKS_SUCCESS; 51 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS; 52 HksErrorCode encryptResult = HksErrorCode::HKS_SUCCESS; 53 HksErrorCode decryptResult = HksErrorCode::HKS_SUCCESS; 64 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS; 65 HksErrorCode encryptResult = HksErrorCode::HKS_SUCCESS; 66 HksErrorCode decryptResult = HksErrorCode::HKS_SUCCESS; 75 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS; [all …]
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/symmetric_alg_test/ |
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 …]
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/asymmetric_alg_test/ |
D | hks_dh_agree_test.cpp | 334 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksDhAgreeFinish() 335 if (ret != HKS_SUCCESS) { in HksDhAgreeFinish() 342 EXPECT_EQ(ret, HKS_SUCCESS) << "Update failed."; in HksDhAgreeFinish() 343 if (ret != HKS_SUCCESS) { in HksDhAgreeFinish() 356 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksDhAgreeAbort() 357 if (ret != HKS_SUCCESS) { in HksDhAgreeAbort() 364 EXPECT_EQ(ret, HKS_SUCCESS) << "Update failed."; in HksDhAgreeAbort() 365 if (ret != HKS_SUCCESS) { in HksDhAgreeAbort() 370 EXPECT_EQ(ret, HKS_SUCCESS) << "Finish failed."; in HksDhAgreeAbort() 371 if (ret != HKS_SUCCESS) { 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 | 73 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksTestSignVerify() 74 if (ret != HKS_SUCCESS) { in HksTestSignVerify() 80 if (ret != HKS_SUCCESS) { in HksTestSignVerify() 86 EXPECT_EQ(ret, HKS_SUCCESS) << "TestUpdateFinish failed."; in HksTestSignVerify() 87 if (ret != HKS_SUCCESS) { in HksTestSignVerify() 95 EXPECT_EQ(ret, HKS_SUCCESS) << "HksSign failed."; in HksTestSignVerify() 98 EXPECT_EQ(ret, HKS_SUCCESS) << "HksVerify failed."; in HksTestSignVerify() 115 EXPECT_EQ(ret, HKS_SUCCESS) << "GetParam failed."; in HksEd25519SignVerifyTestNormalCase() 123 EXPECT_EQ(ret, HKS_SUCCESS) << "GenerateKey failed."; in HksEd25519SignVerifyTestNormalCase() 129 EXPECT_EQ(ret, HKS_SUCCESS) << "Sign failed."; in HksEd25519SignVerifyTestNormalCase() [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_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 …]
|
D | hks_ecdh_agree_part2_test.cpp | 361 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(gen) failed."; 363 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(init & update)01 failed."; 366 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(finish)01 failed."; 368 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(init & update)02 failed."; 371 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(finish)02 failed."; 374 EXPECT_EQ(ret, HKS_SUCCESS) << "GenerateKey01 failed."; 376 EXPECT_EQ(ret, HKS_SUCCESS) << "GenerateKey02 failed."; 380 …EXPECT_EQ(MallocAndCheckBlobData(&publicKey01, publicKey01.size), HKS_SUCCESS) << "Malloc publicKe… 381 …EXPECT_EQ(MallocAndCheckBlobData(&publicKey02, publicKey02.size), HKS_SUCCESS) << "Malloc publicKe… 383 EXPECT_EQ(ret, HKS_SUCCESS) << "ExportKey failed."; [all …]
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/ |
D | hks_ecc_sign_mt.cpp | 41 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS; 42 HksErrorCode signResult = HksErrorCode::HKS_SUCCESS; 43 HksErrorCode verifyResult = HksErrorCode::HKS_SUCCESS; 60 .generateKeyResult = HKS_SUCCESS, 61 .signResult = HKS_SUCCESS, 62 .verifyResult = HKS_SUCCESS, 76 .generateKeyResult = HKS_SUCCESS, 77 .signResult = HKS_SUCCESS, 78 .verifyResult = HKS_SUCCESS, 92 .generateKeyResult = HKS_SUCCESS, [all …]
|
D | hks_ecc_verify_mt.cpp | 40 HksErrorCode generateKeyResult = HksErrorCode::HKS_SUCCESS; 41 HksErrorCode signResult = HksErrorCode::HKS_SUCCESS; 42 HksErrorCode verifyResult = HksErrorCode::HKS_SUCCESS; 58 .generateKeyResult = HKS_SUCCESS, 59 .signResult = HKS_SUCCESS, 60 .verifyResult = HKS_SUCCESS, 74 .generateKeyResult = HKS_SUCCESS, 75 .signResult = HKS_SUCCESS, 76 .verifyResult = HKS_SUCCESS, 90 .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; 56 .generateKeyResult = HKS_SUCCESS, 57 .signResult = HKS_SUCCESS, 58 .verifyResult = HKS_SUCCESS, 72 .generateKeyResult = HKS_SUCCESS, 73 .signResult = HKS_SUCCESS, 74 .verifyResult = HKS_SUCCESS, 88 .generateKeyResult = HKS_SUCCESS, [all …]
|
D | hks_rsa_ecb_nopadding_mt.cpp | 58 .generateKeyResult = HKS_SUCCESS, 59 .encryptResult = HKS_SUCCESS, 60 .decryptResult = HKS_SUCCESS, 79 .generateKeyResult = HKS_SUCCESS, 80 .encryptResult = HKS_SUCCESS, 81 .decryptResult = HKS_SUCCESS, 101 .generateKeyResult = HKS_SUCCESS, 102 .encryptResult = HKS_SUCCESS, 103 .decryptResult = HKS_SUCCESS, 125 .generateKeyResult = HKS_SUCCESS, [all …]
|
D | hks_rsa_sha1_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_sha256_with_rsa_mt.cpp | 57 .generateKeyResult = HKS_SUCCESS, 58 .signResult = HKS_SUCCESS, 59 .verifyResult = HKS_SUCCESS, 79 .generateKeyResult = HKS_SUCCESS, 80 .signResult = HKS_SUCCESS, 81 .verifyResult = HKS_SUCCESS, 100 .generateKeyResult = HKS_SUCCESS, 101 .signResult = HKS_SUCCESS, 102 .verifyResult = HKS_SUCCESS, 123 .generateKeyResult = HKS_SUCCESS, [all …]
|
D | hks_rsa_sha384_with_rsa_pss_mt.cpp | 57 .generateKeyResult = HKS_SUCCESS, 61 .signResult = HKS_SUCCESS, 62 .verifyResult = HKS_SUCCESS, 83 .generateKeyResult = HKS_SUCCESS, 87 .signResult = HKS_SUCCESS, 88 .verifyResult = HKS_SUCCESS, 108 .generateKeyResult = HKS_SUCCESS, 109 .signResult = HKS_SUCCESS, 110 .verifyResult = HKS_SUCCESS, 131 .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 …]
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
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_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 | 73 EXPECT_EQ(ret, HKS_SUCCESS) << "HksCrossTestGenerateKey failed."; 78 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(en) failed."; 80 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(de) failed."; 90 EXPECT_EQ(ret, HKS_SUCCESS) << "HksEncrypt failed."; 91 …EXPECT_NE(HksMemCmp(inData.data, cipherText.data, cipherText.size), HKS_SUCCESS) << "inData equals… 94 EXPECT_EQ(ret, HKS_SUCCESS) << "HksCrossTestAesDecrypt failed."; 95 …EXPECT_EQ(HksMemCmp(inData.data, plainText.data, plainText.size), HKS_SUCCESS) << "inData not equa… 116 EXPECT_EQ(ret, HKS_SUCCESS) << "HksCrossTestGenerateKey failed."; 121 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(en) failed."; 123 EXPECT_EQ(ret, HKS_SUCCESS) << "InitParamSet(de) failed."; [all …]
|
D | hks_x25519_agree_test.cpp | 310 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksX25519AgreeFinish() 311 if (ret != HKS_SUCCESS) { in HksX25519AgreeFinish() 318 EXPECT_EQ(ret, HKS_SUCCESS) << "Update failed."; in HksX25519AgreeFinish() 319 if (ret != HKS_SUCCESS) { in HksX25519AgreeFinish() 324 EXPECT_EQ(ret, HKS_SUCCESS) << "Finish failed."; in HksX25519AgreeFinish() 325 if (ret != HKS_SUCCESS) { in HksX25519AgreeFinish() 328 return HKS_SUCCESS; in HksX25519AgreeFinish() 337 EXPECT_EQ(ret, HKS_SUCCESS) << "Init failed."; in HksX25519AgreeAbort() 338 if (ret != HKS_SUCCESS) { in HksX25519AgreeAbort() 345 EXPECT_EQ(ret, HKS_SUCCESS) << "Update failed."; in HksX25519AgreeAbort() [all …]
|
D | hks_access_control_rsa_sign_verify_test_common.cpp | 46 if (ret != HKS_SUCCESS) { in RSAAuthTokenSign() 55 if (ret != HKS_SUCCESS) { in RSAAuthTokenSign() 67 return HKS_SUCCESS; in RSAAuthTokenSign() 73 if (ret != HKS_SUCCESS) { in AddAuthTokenParam() 78 if (ret != HKS_SUCCESS) { in AddAuthTokenParam() 82 return HKS_SUCCESS; in AddAuthTokenParam() 92 if (ret != HKS_SUCCESS) { in AppendToNewParamSet() 98 if (ret != HKS_SUCCESS) { in AppendToNewParamSet() 104 if (ret != HKS_SUCCESS) { in AppendToNewParamSet() 110 if (ret != HKS_SUCCESS) { in AppendToNewParamSet() [all …]
|
/base/security/huks/test/unittest/huks_standard_test/module_test/mock/ipc/src/ |
D | huks_access_test.cpp | 67 EXPECT_NE(ret, HKS_SUCCESS); 80 EXPECT_NE(ret, HKS_SUCCESS); 93 EXPECT_NE(ret, HKS_SUCCESS); 106 EXPECT_NE(ret, HKS_SUCCESS); 119 EXPECT_NE(ret, HKS_SUCCESS); 132 EXPECT_NE(ret, HKS_SUCCESS); 145 EXPECT_NE(ret, HKS_SUCCESS); 158 EXPECT_NE(ret, HKS_SUCCESS); 171 EXPECT_NE(ret, HKS_SUCCESS); 184 EXPECT_NE(ret, HKS_SUCCESS); [all …]
|