Home
last modified time | relevance | path

Searched refs:newKey (Results 1 - 25 of 25) sorted by relevance

/base/security/huks/services/huks_standard/huks_service/main/core/src/
H A Dhks_upgrade_helper.c159 struct HksBlob newKey = { .size = 0, .data = NULL }; in HksChangeKeyOwner() local
176 newKey.data = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in HksChangeKeyOwner()
177 if (newKey.data == NULL) { in HksChangeKeyOwner()
181 newKey.size = MAX_KEY_SIZE; in HksChangeKeyOwner()
182 ret = HksDoUpgradeKeyAccess(&oldKey, upgradeParamSet, &newKey); in HksChangeKeyOwner()
185 ret = HksManageStoreKeyBlob(processInfo, NULL, keyAlias, &newKey, HKS_STORAGE_TYPE_KEY); in HksChangeKeyOwner()
197 HKS_FREE_BLOB(newKey); in HksChangeKeyOwner()
H A Dhks_upgrade_key_accesser.c45 struct HksBlob *newKey) in HksDoUpgradeKeyAccess()
58 ret = HuksAccessUpgradeKey(oldKey, paramSet, newKey); in HksDoUpgradeKeyAccess()
44 HksDoUpgradeKeyAccess(const struct HksBlob *oldKey, const struct HksParamSet *srcParamSet, struct HksBlob *newKey) HksDoUpgradeKeyAccess() argument
H A Dhks_client_service.c362 struct HksBlob newKey = { .size = 0, .data = NULL }; in CheckAndUpgradeKeyIfNeed() local
369 newKey.data = (uint8_t *)HksMalloc(MAX_KEY_SIZE); in CheckAndUpgradeKeyIfNeed()
370 if (newKey.data == NULL) { in CheckAndUpgradeKeyIfNeed()
374 newKey.size = MAX_KEY_SIZE; in CheckAndUpgradeKeyIfNeed()
375 ret = HksDoUpgradeKeyAccess(key, paramSet, &newKey); in CheckAndUpgradeKeyIfNeed()
377 ret = HksManageStoreKeyBlob(processInfo, paramSet, keyAlias, &newKey, HKS_STORAGE_TYPE_KEY); in CheckAndUpgradeKeyIfNeed()
381 key->data = newKey.data; in CheckAndUpgradeKeyIfNeed()
382 key->size = newKey.size; in CheckAndUpgradeKeyIfNeed()
386 HKS_FREE_BLOB(newKey); in CheckAndUpgradeKeyIfNeed()
2179 static int32_t HksMallocNewKey(struct HksBlob *newKey) in HksMallocNewKey() argument
2197 struct HksBlob newKey = { 0, NULL }; HksServiceChangeStorageLevel() local
[all...]
/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Dscreen_off_time_plugin.cpp92 std::string newKey; in OnGetPolicy() local
94 newKey = KEY_AC_SCREEN_OFF_TIME; in OnGetPolicy()
96 newKey = KEY_DC_SCREEN_OFF_TIME; in OnGetPolicy()
98 code = EdmDataAbilityUtils::GetIntFromSettingsDataShare(BatteryUtils::GetSubUserTableUri(), newKey, result); in OnGetPolicy()
H A Dpower_policy_plugin.cpp104 std::string newKey; in DealPowerSuspendPolicy() local
106 newKey = KEY_POWER_AC_SUSPEND; in DealPowerSuspendPolicy()
108 newKey = KEY_POWER_DC_SUSPEND; in DealPowerSuspendPolicy()
111 BatteryUtils::GetSubUserTableUri(), newKey, powerSuspend))) { in DealPowerSuspendPolicy()
/base/security/huks/test/fuzz_test/innerapi_fuzzer/hksrename_fuzzer/
H A Dhksrename_fuzzer.cpp39 struct HksBlob newKey = { sizeof(uint32_t), ReadData<uint8_t *>(data, size, sizeof(uint32_t)) }; in DoSomethingInterestingWithMyAPI() local
43 [[maybe_unused]] int ret = HksRenameKeyAlias(&oldKey, ps.s, &newKey); in DoSomethingInterestingWithMyAPI()
/base/security/huks/services/huks_standard/huks_service/main/core/include/
H A Dhks_upgrade_key_accesser.h35 struct HksBlob *newKey);
H A Dhuks_access.h95 int32_t HuksAccessUpgradeKey(const struct HksBlob *oldKey, const struct HksParamSet *paramSet, struct HksBlob *newKey);
/base/security/huks/services/huks_standard/huks_engine/main/core/include/
H A Dhks_upgrade_key.h28 int32_t HksUpgradeKey(const struct HksBlob *oldKey, const struct HksParamSet *paramSet, struct HksBlob *newKey);
H A Dhks_core_service_key_operate_one_stage.h54 struct HksBlob *newKey);
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/asymmetric_alg_test/
H A Dhks_ecc_sign_verify_test_common.cpp95 char newKey[] = "ECC_Sign_Verify_Import_KeyAlias"; in HksEccSignVerifyTestNormalCase() local
96 struct HksBlob newKeyAlias = { .size = strlen(newKey), .data = reinterpret_cast<uint8_t *>(newKey) }; in HksEccSignVerifyTestNormalCase()
H A Dhks_ed25519_sign_verify_test.cpp133 char newKey[] = "ECC_Sign_Verify_Import_KeyAlias"; in HksEd25519SignVerifyTestNormalCase() local
134 struct HksBlob newKeyAlias = { .size = (uint32_t)strlen(newKey), .data = (uint8_t *)newKey }; in HksEd25519SignVerifyTestNormalCase()
190 char newKey[] = "ECC_Sign_Verify_Import_KeyAlias"; in HWTEST_F() local
191 struct HksBlob newKeyAlias = { .size = (uint32_t)strlen(newKey), .data = (uint8_t *)newKey }; in HWTEST_F()
256 char newKey[] = "ED25519_Sign_Verify_Import_KeyAlias"; in HWTEST_F() local
257 struct HksBlob newKeyAlias = { .size = (uint32_t)strlen(newKey), .data = (uint8_t *)newKey }; in HWTEST_F()
H A Dhks_rsa_sign_verify_test_common.cpp71 char newKey[] = "RSA_Sign_Verify_Import_KeyAlias"; in RsaSignVerifyTestNormalCase() local
72 struct HksBlob newKeyAlias = { .size = (uint32_t)strlen(newKey), .data = reinterpret_cast<uint8_t *>(newKey) }; in RsaSignVerifyTestNormalCase()
243 char newKey[] = "RSA_Sign_Verify_Import_KeyAlias"; in RSASignVerifyTestAbnormalCase() local
244 struct HksBlob newKeyAlias = { .size = (uint32_t)strlen(newKey), .data = reinterpret_cast<uint8_t *>(newKey) }; in RSASignVerifyTestAbnormalCase()
H A Dhks_rsa_sign_verify_part8_test.cpp412 char newKey[] = "RSA_Sign_Verify_Import_KeyAlias"; in HWTEST_F() local
413 struct HksBlob newKeyAlias = { .size = (uint32_t)strlen(newKey), .data = (uint8_t *)newKey }; in HWTEST_F()
H A Dhks_dsa_sign_verify_test.cpp498 char newKey[] = "DSA_Sign_Verify_Import_KeyAlias"; in HksDsaSignVerifyTestNormalCase() local
499 struct HksBlob newKeyAlias = { .size = strlen(newKey), .data = (uint8_t *)newKey }; in HksDsaSignVerifyTestNormalCase()
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
H A Dhks_upgrade_key.c292 int32_t HksUpgradeKey(const struct HksBlob *oldKey, const struct HksParamSet *paramSet, struct HksBlob *newKey) in HksUpgradeKey() argument
318 ret = HksBuildKeyBlobWithOutAddKeyParam(newKeyBlobParamSet, newKey); in HksUpgradeKey()
332 int32_t HksUpgradeKey(const struct HksBlob *oldKey, const struct HksParamSet *paramSet, struct HksBlob *newKey) in HksUpgradeKey() argument
336 (void)newKey; in HksUpgradeKey()
H A Dhks_core_interfaces.c161 struct HksBlob *newKey) in HuksHdiUpgradeKey()
163 return HksCoreUpgradeKey(oldKey, paramSet, newKey); in HuksHdiUpgradeKey()
160 HuksHdiUpgradeKey(const struct HksBlob *oldKey, const struct HksParamSet *paramSet, struct HksBlob *newKey) HuksHdiUpgradeKey() argument
H A Dhks_core_service_key_operate_one_stage.c438 int32_t HksCoreUpgradeKey(const struct HksBlob *oldKey, const struct HksParamSet *paramSet, struct HksBlob *newKey) in HksCoreUpgradeKey() argument
440 return HksUpgradeKey(oldKey, paramSet, newKey); in HksCoreUpgradeKey()
444 int32_t HksCoreUpgradeKey(const struct HksBlob *oldKey, const struct HksParamSet *paramSet, struct HksBlob *newKey) in HksCoreUpgradeKey() argument
448 (void)newKey; in HksCoreUpgradeKey()
/base/security/huks/test/unittest/huks_standard_test/module_test/mock/idl/src/
H A Dhuks_access_mock.c158 struct HksBlob *newKey)) in HuksAccessUpgradeKey()
160 return HksCoreUpgradeKey(oldKey, paramSet, newKey); in HuksAccessUpgradeKey()
157 HuksAccessUpgradeKey(const struct HksBlob *oldKey, const struct HksParamSet *paramSet, struct HksBlob *newKey) HuksAccessUpgradeKey() argument
/base/security/huks/interfaces/inner_api/huks_standard/main/include/
H A Dhuks_hdi.h296 #define HDI_CONVERTER_FUNC_UPGRADEKEY(oldKey, paramSet, newKey, ret, func) \
302 HDI_CONVERTER_PARAM_IN_BLOB(newKey, newKeyCore) \
305 HDI_ADAPTER_PARAM(newKey, &newKeyCore)); \
306 HDI_CONVERTER_PARAM_OUT_BLOB(newKeyCore, newKey)
552 * @param newKey new key
556 struct HksBlob *newKey);
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/passthrough/
H A Dhuks_hdi_access.c390 struct HuksBlob *newKey) in HdiProxyUpgradeKey()
396 return g_hksHdiProxyInstance->UpgradeKey(g_hksHdiProxyInstance, oldKey, paramSet, newKey); in HdiProxyUpgradeKey()
400 struct HksBlob *newKey)) in HuksAccessUpgradeKey()
403 HDI_CONVERTER_FUNC_UPGRADEKEY(oldKey, paramSet, newKey, ret, HdiProxyUpgradeKey) in HuksAccessUpgradeKey()
389 HdiProxyUpgradeKey(const struct HuksBlob *oldKey, const struct HuksParamSet *paramSet, struct HuksBlob *newKey) HdiProxyUpgradeKey() argument
399 HuksAccessUpgradeKey(const struct HksBlob *oldKey, const struct HksParamSet *paramSet, struct HksBlob *newKey) HuksAccessUpgradeKey() argument
H A Dhuks_access.c260 struct HksBlob *newKey)) in HuksAccessUpgradeKey()
267 return g_hksHalDevicePtr->HuksHdiUpgradeKey(oldKey, paramSet, newKey); in HuksAccessUpgradeKey()
259 HuksAccessUpgradeKey(const struct HksBlob *oldKey, const struct HksParamSet *paramSet, struct HksBlob *newKey) HuksAccessUpgradeKey() argument
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
H A Dhks_access_control_rsa_sign_verify_test_common.cpp432 char newKey[] = "RSA_Sign_Verify_Import_KeyAlias"; in AcRsaSignVerifyTestNormalCase() local
433 struct HksBlob newKeyAlias = { .size = strlen(newKey), .data = reinterpret_cast<uint8_t *>(newKey) }; in AcRsaSignVerifyTestNormalCase()
520 char newKey[] = "RSA_Sign_Verify_Import_KeyAlias"; in AcRsaSignVerifyTestAbnormalCase() local
521 struct HksBlob newKeyAlias = { .size = strlen(newKey), .data = reinterpret_cast<uint8_t *>(newKey) }; in AcRsaSignVerifyTestAbnormalCase()
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_rdb_data_mgr_test/
H A Dnotification_rdb_data_mgr_test.cpp255 virtual int Restore(const std::string &backupPath, const std::vector<uint8_t> &newKey) in Restore() argument
260 const std::vector<uint8_t> &newKey) in ChangeDbFileForRestore()
259 ChangeDbFileForRestore(const std::string newPath, const std::string backupPath, const std::vector<uint8_t> &newKey) ChangeDbFileForRestore() argument
/base/inputmethod/imf/test/unittest/cpp_test/src/
H A Dinputmethod_controller_capi_test.cpp360 std::string newKey = "newKey"; in HWTEST_F() local
362 IME_ERR_OK, OH_PrivateCommand_SetKey(privateCommand, const_cast<char *>(newKey.c_str()), newKey.length())); in HWTEST_F()
364 EXPECT_EQ(newKey, std::string(actStrKey, actStrKeyLength)); in HWTEST_F()

Completed in 22 milliseconds