/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
H A D | hks_upgrade_helper.c | 159 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 D | hks_upgrade_key_accesser.c | 45 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 D | hks_client_service.c | 362 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 D | screen_off_time_plugin.cpp | 92 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 D | power_policy_plugin.cpp | 104 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 D | hksrename_fuzzer.cpp | 39 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 D | hks_upgrade_key_accesser.h | 35 struct HksBlob *newKey);
|
H A D | huks_access.h | 95 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 D | hks_upgrade_key.h | 28 int32_t HksUpgradeKey(const struct HksBlob *oldKey, const struct HksParamSet *paramSet, struct HksBlob *newKey);
|
H A D | hks_core_service_key_operate_one_stage.h | 54 struct HksBlob *newKey);
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/asymmetric_alg_test/ |
H A D | hks_ecc_sign_verify_test_common.cpp | 95 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 D | hks_ed25519_sign_verify_test.cpp | 133 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 D | hks_rsa_sign_verify_test_common.cpp | 71 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 D | hks_rsa_sign_verify_part8_test.cpp | 412 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 D | hks_dsa_sign_verify_test.cpp | 498 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 D | hks_upgrade_key.c | 292 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 D | hks_core_interfaces.c | 161 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 D | hks_core_service_key_operate_one_stage.c | 438 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 D | huks_access_mock.c | 158 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 D | huks_hdi.h | 296 #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 D | huks_hdi_access.c | 390 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 D | huks_access.c | 260 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 D | hks_access_control_rsa_sign_verify_test_common.cpp | 432 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 D | notification_rdb_data_mgr_test.cpp | 255 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 D | inputmethod_controller_capi_test.cpp | 360 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()
|