/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/ |
H A D | hks_agreement_test.cpp | 118 /* 2. agreeKey */ in HWTEST_F() 119 struct HksBlob *agreeKey = NULL; in HWTEST_F() local 120 ret = TestConstuctBlob(&agreeKey, in HWTEST_F() 127 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKey, agreeKey); in HWTEST_F() 143 TestFreeBlob(&agreeKey); in HWTEST_F() 171 /* 2. agreeKey */ in HWTEST_F() 172 struct HksBlob *agreeKey = NULL; in HWTEST_F() local 173 ret = TestConstuctBlob(&agreeKey, g_testAgreeParams[0].agreedKeyParams.blobExist, \ in HWTEST_F() 184 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKey2, agreeKey); in HWTEST_F() 189 EXPECT_EQ(agreeKey in HWTEST_F() [all...] |
/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/ |
H A D | hks_agreement_test.c | 120 /* 2. agreeKey */ in LITE_TEST_CASE() 121 struct HksBlob *agreeKey = NULL; in LITE_TEST_CASE() local 122 ret = TestConstuctBlob(&agreeKey, in LITE_TEST_CASE() 129 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKey, agreeKey); in LITE_TEST_CASE() 145 TestFreeBlob(&agreeKey); in LITE_TEST_CASE() 175 /* 2. agreeKey */ in LITE_TEST_CASE() 176 struct HksBlob *agreeKey = NULL; in LITE_TEST_CASE() local 177 ret = TestConstuctBlob(&agreeKey, g_testAgreeParams[0].agreedKeyParams.blobExist, \ in LITE_TEST_CASE() 182 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKey1, agreeKey); in LITE_TEST_CASE() 193 TEST_ASSERT_EQUAL(agreeKey in LITE_TEST_CASE() [all...] |
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
H A D | hks_agreement_test.cpp | 118 /* 2. agreeKey */ in HWTEST_F() 119 struct HksBlob *agreeKey = NULL; in HWTEST_F() local 120 ret = TestConstuctBlob(&agreeKey, in HWTEST_F() 127 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKeyTest, agreeKey); in HWTEST_F() 143 TestFreeBlob(&agreeKey); in HWTEST_F()
|
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
H A D | hks_crypto_hal_api_openssl.cpp | 494 HksBlob agreeKey = { .size = 0, .data = nullptr }; in HWTEST_F() local 497 EXPECT_EQ(HksCryptoHalAgreeKey(&key, &pubKey, nullptr, &agreeKey), HKS_ERROR_INVALID_ARGUMENT); in HWTEST_F() 500 EXPECT_EQ(HksCryptoHalAgreeKey(&key, &pubKey, nullptr, &agreeKey), HKS_ERROR_INVALID_ARGUMENT); in HWTEST_F() 503 EXPECT_EQ(HksCryptoHalAgreeKey(&key, &pubKey, nullptr, &agreeKey), HKS_ERROR_INVALID_ARGUMENT); in HWTEST_F() 505 EXPECT_EQ(HksCryptoHalAgreeKey(&key, &pubKey, &spec, &agreeKey), HKS_ERROR_INVALID_ARGUMENT); in HWTEST_F() 507 agreeKey = { .size = 1, .data = buff }; in HWTEST_F() 508 EXPECT_EQ(HksCryptoHalAgreeKey(&key, &pubKey, &spec, &agreeKey), HKS_ERROR_INVALID_ARGUMENT); in HWTEST_F() 527 HksBlob agreeKey = { .size = sizeof(buff), .data = buff }; in HWTEST_F() local 529 EXPECT_EQ(HksCryptoHalAgreeKey(&key, &pubKey, &spec, &agreeKey), HKS_ERROR_INVALID_ARGUMENT); in HWTEST_F() 532 EXPECT_EQ(HksCryptoHalAgreeKey(&key, &pubKey, &spec, &agreeKey), HKS_ERROR_CRYPTO_ENGINE_ERRO in HWTEST_F() 556 HksBlob agreeKey = { .size = sizeof(buff), .data = buff }; HWTEST_F() local [all...] |
/base/security/huks/test/reliability/src/ |
H A D | api_pressure_test.cpp | 740 HksBlob agreeKey = { .size = HKS_ECC_KEY_SIZE_224, .data = (uint8_t *)HksMalloc(HKS_ECC_KEY_SIZE_224) }; in AgreeKeyTest() local 741 ASSERT_NE(agreeKey.data, nullptr); in AgreeKeyTest() 742 EXPECT_EQ(HksAgreeKey(paramInSet, authId, &pubKey, &agreeKey), HKS_SUCCESS); in AgreeKeyTest() 743 HKS_FREE(agreeKey.data); in AgreeKeyTest() 905 HksBlob agreeKey = { .size = TEST_KEY_SIZE, .data = (uint8_t *)HksMalloc(TEST_KEY_SIZE) }; in AgreeScene() local 906 ASSERT_NE(agreeKey.data, nullptr); in AgreeScene() 907 EXPECT_EQ(HksAgreeKey(agreeKeyParam, &authId, &pubKey, &agreeKey), HKS_SUCCESS); in AgreeScene() 909 HKS_FREE(agreeKey.data); in AgreeScene()
|
H A D | pressure_test.cpp | 699 HksBlob agreeKey = { .size = HKS_ECC_KEY_SIZE_224, .data = (uint8_t *)HksMalloc(HKS_ECC_KEY_SIZE_224) }; in HWTEST_F() local 700 ASSERT_NE(agreeKey.data, nullptr); in HWTEST_F() 702 int32_t ret = HksAgreeKey(paramInSet, &authId, &pubKey, &agreeKey); in HWTEST_F() 707 HKS_FREE(agreeKey.data); in HWTEST_F() 1187 HksBlob agreeKey = { .size = HKS_ECC_KEY_SIZE_224, .data = (uint8_t *)HksMalloc(HKS_ECC_KEY_SIZE_224) }; in HWTEST_F() local 1188 ASSERT_NE(agreeKey.data, nullptr); in HWTEST_F() 1190 int32_t ret = HksAgreeKey(paramInSet, &priKey, &pubKey, &agreeKey); in HWTEST_F() 1195 HKS_FREE(agreeKey.data); in HWTEST_F()
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
H A D | hks_import_agree_test.cpp | 1049 static int32_t TestAgree(const struct HksBlob *keyAlias, const struct HksBlob *peerPubKey, struct HksBlob *agreeKey) in TestAgree() argument 1075 ret = HksFinishForDe(&handle, finishParamSet, &tmpInBlob, agreeKey); in TestAgree()
|