Searched refs:newKeyAlias (Results 1 – 5 of 5) sorted by relevance
/test/xts/acts/security/huks_napi_BasicTest/src/ |
D | huks_cipher_rsa_test_common.cpp | 101 struct OH_Huks_Blob newKeyAlias = { .size = strlen(tmpKey), .data = (uint8_t *)tmpKey }; in HksRsaCipherTestCase() local 102 ret = OH_Huks_ImportKeyItem(&newKeyAlias, encryptParamSet, &publicKey); in HksRsaCipherTestCase() 107 ret = HksRsaCipherTestEncrypt(&newKeyAlias, encryptParamSet, inData, &cipherText); in HksRsaCipherTestCase() 118 …EXPECT_EQ(OH_Huks_DeleteKeyItem(&newKeyAlias, encryptParamSet).errorCode, (int32_t)OH_HUKS_SUCCESS… in HksRsaCipherTestCase() 137 struct OH_Huks_Blob newKeyAlias = { .size = strlen(tmpKey), .data = (uint8_t *)tmpKey }; in HksRsaCipherTestCaseAbnormal() local 138 ret = OH_Huks_ImportKeyItem(&newKeyAlias, encryptParamSet, &publicKey); in HksRsaCipherTestCaseAbnormal() 143 ret = HksRsaCipherTestEncryptAbnormal(&newKeyAlias, encryptParamSet, inData, &cipherText); in HksRsaCipherTestCaseAbnormal() 148 …EXPECT_EQ(OH_Huks_DeleteKeyItem(&newKeyAlias, encryptParamSet).errorCode, (int32_t)OH_HUKS_SUCCESS… in HksRsaCipherTestCaseAbnormal()
|
D | huks_signverify_rsa_test_common.cpp | 83 struct OH_Huks_Blob newKeyAlias = { .size = strlen(newKey), .data = (uint8_t *)newKey }; in HksRsaSignVerifyTestNormalCase() local 84 ret = OH_Huks_ImportKeyItem(&newKeyAlias, verifyParamSet, &publicKey); in HksRsaSignVerifyTestNormalCase() 91 ret = OH_Huks_InitSession(&newKeyAlias, verifyParamSet, &handleVerify, nullptr); in HksRsaSignVerifyTestNormalCase() 103 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 | 74 struct OH_Huks_Blob newKeyAlias = { .size = strlen(newKey), .data = (uint8_t *)newKey }; in HksEccSignVerifyTestNormalCase() local 75 ret = OH_Huks_ImportKeyItem(&newKeyAlias, verifyParamSet, &publicKey); in HksEccSignVerifyTestNormalCase() 79 ret = HksTestSignVerify(&newKeyAlias, verifyParamSet, &inData, &outDataSign, false); in HksEccSignVerifyTestNormalCase() 83 ret = OH_Huks_DeleteKeyItem(&newKeyAlias, verifyParamSet); in HksEccSignVerifyTestNormalCase()
|
D | huks_signverify_ed25519_test.cpp | 124 struct OH_Huks_Blob newKeyAlias = { .size = strlen(newKey), .data = (uint8_t *)newKey }; variable 125 ret = OH_Huks_ImportKeyItem(&newKeyAlias, verifyParamSet, &publicKey); 129 ret = HksTestSignVerify(&newKeyAlias, verifyParamSet, &g_inData, &outDataSign, false); 134 …EXPECT_EQ(OH_Huks_DeleteKeyItem(&newKeyAlias, verifyParamSet).errorCode, (int32_t)OH_HUKS_SUCCESS)…
|
D | huks_signverify_dsa_test.cpp | 146 struct OH_Huks_Blob newKeyAlias = { .size = strlen(newKey), .data = (uint8_t *)newKey }; in HksDsaSignVerifyTestNormalCase() local 147 ret = OH_Huks_ImportKeyItem(&newKeyAlias, verifyParamSet, &publicKey); in HksDsaSignVerifyTestNormalCase() 151 ret = HksTestSignVerify(&newKeyAlias, verifyParamSet, &inData, &outDataSign, false); in HksDsaSignVerifyTestNormalCase() 155 ret = OH_Huks_DeleteKeyItem(&newKeyAlias, verifyParamSet); in HksDsaSignVerifyTestNormalCase()
|