Home
last modified time | relevance | path

Searched refs:keyParam (Results 1 – 15 of 15) sorted by relevance

/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_keyblob.c52 struct HksParam *keyParam = NULL; in CleanKey() local
53 int32_t ret = HksGetParam(paramSet, HKS_TAG_KEY, &keyParam); in CleanKey()
58 (void)memset_s(keyParam->blob.data, keyParam->blob.size, 0, keyParam->blob.size); in CleanKey()
169 static int32_t BuildKeyBlobUsageSpec(const struct HksBlob *aad, const struct HksParam *keyParam, in BuildKeyBlobUsageSpec() argument
180 struct HksKeyBlobInfo *keyBlobInfo = (struct HksKeyBlobInfo *)keyParam->blob.data; in BuildKeyBlobUsageSpec()
199 struct HksParam *keyParam = NULL; in EncryptAndDecryptKeyBlob() local
200 int32_t ret = HksGetParam(paramSet, HKS_TAG_KEY, &keyParam); in EncryptAndDecryptKeyBlob()
203 if (keyParam->blob.size <= sizeof(struct HksKeyBlobInfo)) { in EncryptAndDecryptKeyBlob()
211 ret = BuildKeyBlobUsageSpec(aad, keyParam, isEncrypt, usageSpec); in EncryptAndDecryptKeyBlob()
217 struct HksKeyBlobInfo *keyBlobInfo = (struct HksKeyBlobInfo *)keyParam->blob.data; in EncryptAndDecryptKeyBlob()
[all …]
Dhks_upgrade_key.c115 struct HksParam *keyParam = NULL; in HksAddkeyToParamSet() local
116 int32_t ret = HksGetParam(srcParamSet, HKS_TAG_KEY, &keyParam); in HksAddkeyToParamSet()
118 return HksAddParams(targetParamSet, keyParam, 1); in HksAddkeyToParamSet()
230 struct HksParam *keyParam = NULL; in CleanParamSetKey() local
231 int32_t ret = HksGetParam(paramSet, HKS_TAG_KEY, &keyParam); in CleanParamSetKey()
236 (void)memset_s(keyParam->blob.data, keyParam->blob.size, 0, keyParam->blob.size); in CleanParamSetKey()
Dhks_keynode.c110 struct HksParam *keyParam = NULL; in FreeKeyBlobParamSet() local
111 int32_t ret = HksGetParam(*paramSet, HKS_TAG_KEY, &keyParam); in FreeKeyBlobParamSet()
117 (void)memset_s(keyParam->blob.data, keyParam->blob.size, 0, keyParam->blob.size); in FreeKeyBlobParamSet()
Dhks_keyblob_lite.c441 struct HksParam *keyParam = NULL; in HksGetRawKey() local
442 int32_t ret = HksGetParam(paramSet, HKS_TAG_KEY, &keyParam); in HksGetRawKey()
445 uint8_t *data = HksMalloc(keyParam->blob.size); in HksGetRawKey()
448 (void)memcpy_s(data, keyParam->blob.size, keyParam->blob.data, keyParam->blob.size); in HksGetRawKey()
450 rawKey->size = keyParam->blob.size; in HksGetRawKey()
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dres_desc_test.cpp118 KeyParam keyParam; in TestKeyParam() local
119 keyParam.type_ = keyType; in TestKeyParam()
120 keyParam.value_ = value; in TestKeyParam()
121 keyParam.InitStr(); in TestKeyParam()
122 EXPECT_EQ(expectStr, keyParam.str_); in TestKeyParam()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/
Dhks_keyblob_test.cpp97 …struct HksParam keyParam = { .tag = HKS_TAG_KEY, .blob = { .size = HKS_ARRAY_SIZE(blobArray), .dat… variable
101 ret = HksAddParams(paramSet, &keyParam, 1);
158 struct HksParam keyParam = { .tag = HKS_TAG_KEY, variable
163 ret = HksAddParams(paramSet, &keyParam, 1);
196 struct HksParam keyParam = { .tag = HKS_TAG_KEY, variable
201 ret = HksAddParams(paramSet, &keyParam, 1);
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dres_desc_test.cpp118 KeyParam keyParam; in TestKeyParam() local
119 keyParam.type_ = keyType; in TestKeyParam()
120 keyParam.value_ = value; in TestKeyParam()
121 keyParam.InitStr(); in TestKeyParam()
122 EXPECT_EQ(expectStr, keyParam.str_); in TestKeyParam()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp509 KeyParam *keyParam = keyParams[i]; in ToFolderPath() local
510 switch (keyParam->type_) { in ToFolderPath()
512 language = keyParam->GetStr(); in ToFolderPath()
515 script = keyParam->GetStr(); in ToFolderPath()
518 region = keyParam->GetStr(); in ToFolderPath()
521 direction = keyParam->GetStr(); in ToFolderPath()
524 deviceType = keyParam->GetStr(); in ToFolderPath()
527 screenDensity = keyParam->GetStr(); in ToFolderPath()
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp742 KeyParam *keyParam = keyParams[i]; in ToFolderPath() local
743 switch (keyParam->type_) { in ToFolderPath()
745 determiner.language = keyParam->GetStr(); in ToFolderPath()
748 determiner.script = keyParam->GetStr(); in ToFolderPath()
751 determiner.region = keyParam->GetStr(); in ToFolderPath()
754 determiner.direction = keyParam->GetStr(); in ToFolderPath()
757 determiner.deviceType = keyParam->GetStr(); in ToFolderPath()
760 determiner.colorMode = keyParam->GetStr(); in ToFolderPath()
763 determiner.inputDevice = keyParam->GetStr(); in ToFolderPath()
766 determiner.mcc = keyParam->GetStr(); in ToFolderPath()
[all …]
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_storage_adapter.c100 struct HksParam keyParam = { in AddStorageParams() local
104 ret = HksAddParams(paramSet, &keyParam, 1); in AddStorageParams()
Dhks_client_service.c575 struct HksParam *keyParam = NULL; in GetAgreePublicKey() local
576 ret = HksGetParam(paramSet, HKS_TAG_AGREE_PUBLIC_KEY, &keyParam); in GetAgreePublicKey()
579 return TranslateToInnerCurve25519Format(alg, &(keyParam->blob), key); in GetAgreePublicKey()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dglobal_utils.c44 static void SetLocaleItemViaKeys(const KeyParam *keyParam, LocaleItem *localeItem);
155 static void SetLocaleItemViaKeys(const KeyParam *keyParam, LocaleItem *localeItem) in SetLocaleItemViaKeys() argument
157 if (keyParam == NULL || localeItem == NULL) { in SetLocaleItemViaKeys()
160 switch (keyParam->type) { in SetLocaleItemViaKeys()
162 localeItem->language = keyParam->value; in SetLocaleItemViaKeys()
165 localeItem->script = keyParam->value; in SetLocaleItemViaKeys()
168 localeItem->region = keyParam->value; in SetLocaleItemViaKeys()
/base/global/resource_management/frameworks/resmgr/src/
Dhap_resource.cpp482 for_each(keyParams.begin(), keyParams.end(), [&](auto &keyParam) { in GetLimitPathsKeys() argument
483 uint32_t typeValue = static_cast<uint32_t>(keyParam->type_); in GetLimitPathsKeys()
484 if (keyParam->type_ < KeyType::KEY_TYPE_MAX && !keyTypes[typeValue]) { in GetLimitPathsKeys()
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/small/
Dhuks_adapter.c623 struct HksParam keyParam[] = { in ConstructGenerateKeyPairWithStorageParams() local
645 int32_t res = ConstructParamSet(paramSet, keyParam, CAL_ARRAY_SIZE(keyParam)); in ConstructGenerateKeyPairWithStorageParams()
724 struct HksParam keyParam[] = { in ConstructGenerateKeyPairParams() local
740 int32_t res = ConstructParamSet(paramSet, keyParam, CAL_ARRAY_SIZE(keyParam)); in ConstructGenerateKeyPairParams()
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/standard/
Dhuks_adapter.c745 struct HksParam keyParam[] = { in ConstructGenerateKeyPairWithStorageParams() local
767 int32_t res = ConstructParamSet(paramSet, keyParam, CAL_ARRAY_SIZE(keyParam)); in ConstructGenerateKeyPairWithStorageParams()
846 struct HksParam keyParam[] = { in ConstructGenerateKeyPairParams() local
862 int32_t res = ConstructParamSet(paramSet, keyParam, CAL_ARRAY_SIZE(keyParam)); in ConstructGenerateKeyPairParams()