Searched refs:newKeyAlias (Results 1 – 6 of 6) sorted by relevance
| /test/xts/acts/security/huks/huks_napi_BasicTest/src/ |
| D | huks_cipher_rsa_test_common.cpp | 110 struct OH_Huks_Blob newKeyAlias = {.size = strlen(tmpKey), .data = (uint8_t *)tmpKey}; in HksRsaCipherTestCase() local 111 ret = OH_Huks_ImportKeyItem(&newKeyAlias, encryptParamSet, &publicKey); in HksRsaCipherTestCase() 116 ret = HksRsaCipherTestEncrypt(&newKeyAlias, encryptParamSet, inData, &cipherText); in HksRsaCipherTestCase() 127 …EXPECT_EQ(OH_Huks_DeleteKeyItem(&newKeyAlias, encryptParamSet).errorCode, (int32_t)OH_HUKS_SUCCESS) in HksRsaCipherTestCase() 149 struct OH_Huks_Blob newKeyAlias = {.size = strlen(tmpKey), .data = (uint8_t *)tmpKey}; in HksRsaCipherTestCaseAbnormal() local 150 ret = OH_Huks_ImportKeyItem(&newKeyAlias, encryptParamSet, &publicKey); in HksRsaCipherTestCaseAbnormal() 155 ret = HksRsaCipherTestEncryptAbnormal(&newKeyAlias, encryptParamSet, inData, &cipherText); in HksRsaCipherTestCaseAbnormal() 160 …EXPECT_EQ(OH_Huks_DeleteKeyItem(&newKeyAlias, encryptParamSet).errorCode, (int32_t)OH_HUKS_SUCCESS) in HksRsaCipherTestCaseAbnormal()
|
| D | huks_signverify_rsa_test_common.cpp | 85 struct OH_Huks_Blob newKeyAlias = {.size = strlen(newKey), .data = (uint8_t *)newKey}; in HksRsaSignVerifyTestNormalCase() local 86 ret = OH_Huks_ImportKeyItem(&newKeyAlias, verifyParamSet, &publicKey); in HksRsaSignVerifyTestNormalCase() 93 ret = OH_Huks_InitSession(&newKeyAlias, verifyParamSet, &handleVerify, nullptr); in HksRsaSignVerifyTestNormalCase() 105 ret = OH_Huks_DeleteKeyItem(&newKeyAlias, verifyParamSet); in HksRsaSignVerifyTestNormalCase() 148 struct OH_Huks_Blob newKeyAlias = {.size = strlen(newKey), .data = (uint8_t *)newKey}; in HksRSASignVerifyTestAbnormalCase() local 149 ret = OH_Huks_ImportKeyItem(&newKeyAlias, verifyParamSet, &publicKey); in HksRSASignVerifyTestAbnormalCase() 156 ret = OH_Huks_InitSession(&newKeyAlias, verifyParamSet, &handleVerify, nullptr); in HksRSASignVerifyTestAbnormalCase() 170 ret = OH_Huks_DeleteKeyItem(&newKeyAlias, verifyParamSet); in HksRSASignVerifyTestAbnormalCase()
|
| D | huks_signverify_ecc_test_common.cpp | 73 struct OH_Huks_Blob newKeyAlias = {.size = strlen(newKey), .data = (uint8_t *)newKey}; in HksEccSignVerifyTestNormalCase() local 74 ret = OH_Huks_ImportKeyItem(&newKeyAlias, verifyParamSet, &publicKey); in HksEccSignVerifyTestNormalCase() 78 ret = HksTestSignVerify(&newKeyAlias, verifyParamSet, &inData, &outDataSign, false); in HksEccSignVerifyTestNormalCase() 82 ret = OH_Huks_DeleteKeyItem(&newKeyAlias, verifyParamSet); in HksEccSignVerifyTestNormalCase()
|
| D | huks_signverify_ed25519_test.cpp | 117 struct OH_Huks_Blob newKeyAlias = {.size = strlen(newKey), .data = (uint8_t *)newKey}; variable 118 ret = OH_Huks_ImportKeyItem(&newKeyAlias, verifyParamSet, &publicKey); 122 ret = HksTestSignVerify(&newKeyAlias, verifyParamSet, &g_inData, &outDataSign, false); 127 … EXPECT_EQ(OH_Huks_DeleteKeyItem(&newKeyAlias, verifyParamSet).errorCode, (int32_t)OH_HUKS_SUCCESS)
|
| D | huks_signverify_dsa_test.cpp | 112 struct OH_Huks_Blob newKeyAlias = {.size = strlen(newKey), .data = (uint8_t *)newKey}; in HksDsaSignVerifyTestNormalCase() local 113 ret = OH_Huks_ImportKeyItem(&newKeyAlias, verifyParamSet, &publicKey); in HksDsaSignVerifyTestNormalCase() 117 ret = HksTestSignVerify(&newKeyAlias, verifyParamSet, &inData, &outDataSign, false); in HksDsaSignVerifyTestNormalCase() 121 ret = OH_Huks_DeleteKeyItem(&newKeyAlias, verifyParamSet); in HksDsaSignVerifyTestNormalCase()
|
| /test/xts/acts/security/huks/huks_ndk_Test/entry/src/main/cpp/ |
| D | huksndk.cpp | 246 struct OH_Huks_Blob newKeyAlias = {.size = sizeof(tmpKey), in doOHHuksImportKeyItem() local 251 … struct OH_Huks_Result resultSt = OH_Huks_ImportKeyItem(&newKeyAlias, encryptParamSet, &publicKey); in doOHHuksImportKeyItem() 257 OH_Huks_DeleteKeyItem(&newKeyAlias, encryptParamSet); in doOHHuksImportKeyItem()
|