Home
last modified time | relevance | path

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

123456

/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/
H A Dhdf_tool_settings.py67 key = self.supported_boards_key
68 if key in self.settings:
69 return ','.join(self.settings.get(key).keys())
73 key = self.supported_boards_key
75 if key in self.settings:
76 if board_name in self.settings.get(key):
77 board_entry = self.settings.get(key).get(board_name)
78 key = self.board_path_key
79 return board_entry.get(key, '')
82 key
[all...]
/drivers/interface/camera/sequenceable/map_data/
H A Dmap_data_sequenceable.cpp57 auto key = parcel.ReadString(); in Unmarshalling() local
61 ret = sequenceData->Set(key, type, parcel.ReadInt32()); in Unmarshalling()
65 ret = sequenceData->Set(key, type, parcel.ReadInt64()); in Unmarshalling()
69 ret = sequenceData->Set(key, type, parcel.ReadDouble()); in Unmarshalling()
73 ret = sequenceData->Set(key, type, parcel.ReadString()); in Unmarshalling()
93 for (const auto &[key, data] : datas_) { in Marshalling()
94 dataParcel.WriteString(key); in Marshalling()
132 int32_t MapDataSequenceable::Get(const std::string &key, int32_t &value) const in Get() argument
134 return Get<int32_t>(key, MapDataType::I32, value); in Get()
137 int32_t MapDataSequenceable::Get(const std::string &key, int64_ argument
142 Get(const std::string &key, double &value) const Get() argument
147 Get(const std::string &key, std::string &value) const Get() argument
152 Set(const std::string &key, int32_t value) Set() argument
157 Set(const std::string &key, int64_t value) Set() argument
162 Set(const std::string &key, double value) Set() argument
167 Set(const std::string &key, const std::string& value) Set() argument
173 Get(const std::string &key, MapDataType type, T &value) const Get() argument
191 Set(const std::string &key, MapDataType type, const std::any& val) Set() argument
[all...]
H A Dmap_data_sequenceable.h38 int32_t Get(const std::string &key, int32_t &value) const;
39 int32_t Get(const std::string &key, int64_t &value) const;
40 int32_t Get(const std::string &key, double &value) const;
41 int32_t Get(const std::string &key, std::string &value) const;
42 int32_t Set(const std::string &key, int32_t value);
43 int32_t Set(const std::string &key, int64_t value);
44 int32_t Set(const std::string &key, double value);
45 int32_t Set(const std::string &key, const std::string& value);
59 int32_t Get(const std::string &key, MapDataType type, T &value) const;
60 int32_t Set(const std::string &key, MapDataTyp
[all...]
/drivers/peripheral/pin_auth/hdi_service/common/inc/
H A Dattribute.h73 ResultCode GetAttributeLength(const Attribute *attribute, AttributeKey key, uint32_t *len);
74 ResultCode GetAttributeUint32(const Attribute *attribute, AttributeKey key, uint32_t *retValue);
75 ResultCode SetAttributeUint32(Attribute *attribute, AttributeKey key, const uint32_t value);
76 ResultCode GetAttributeInt32(const Attribute *attribute, AttributeKey key, int32_t *retValue);
77 ResultCode SetAttributeInt32(Attribute *attribute, AttributeKey key, const int32_t value);
78 ResultCode GetAttributeUint64(const Attribute *attribute, AttributeKey key, uint64_t *retValue);
79 ResultCode SetAttributeUint64(Attribute *attribute, AttributeKey key, const uint64_t value);
80 ResultCode GetAttributeUint8Array(const Attribute *attribute, AttributeKey key, Uint8Array *retData);
81 ResultCode SetAttributeUint8Array(Attribute *attribute, AttributeKey key, const Uint8Array data);
82 ResultCode GetAttributeUint64Array(const Attribute *attribute, AttributeKey key, Uint64Arra
[all...]
/drivers/peripheral/user_auth/hdi_service/utils/inc/
H A Dattribute.h93 /* public key */
113 ResultCode GetAttributeUint32(const Attribute *attribute, AttributeKey key, uint32_t *retValue);
114 ResultCode SetAttributeUint32(Attribute *attribute, AttributeKey key, const uint32_t value);
115 ResultCode GetAttributeInt32(const Attribute *attribute, AttributeKey key, int32_t *retValue);
116 ResultCode SetAttributeInt32(Attribute *attribute, AttributeKey key, const int32_t value);
117 ResultCode GetAttributeUint64(const Attribute *attribute, AttributeKey key, uint64_t *retValue);
118 ResultCode SetAttributeUint64(Attribute *attribute, AttributeKey key, const uint64_t value);
119 ResultCode GetAttributeUint8Array(const Attribute *attribute, AttributeKey key, Uint8Array *retData);
120 ResultCode SetAttributeUint8Array(Attribute *attribute, AttributeKey key, const Uint8Array data);
121 ResultCode GetAttributeUint64Array(const Attribute *attribute, AttributeKey key, Uint64Arra
[all...]
/drivers/hdf_core/framework/utils/src/
H A Dhdf_map.c22 void *key; member
98 static struct MapNode *MapCreateNode(const char *key, uint32_t hash, in MapCreateNode() argument
101 uint32_t keySize = strlen(key) + 1; in MapCreateNode()
108 node->key = (uint8_t *)node + sizeof(*node); in MapCreateNode()
111 if (memcpy_s(node->key, keySize, key, keySize) != EOK) { in MapCreateNode()
123 static int32_t MapSetCheckPara(const Map *map, const char *key, const void *value, uint32_t valueSize) in MapSetCheckPara() argument
125 if (map == NULL || key == NULL || value == NULL || valueSize == 0) { in MapSetCheckPara()
129 if (valueSize > HDF_MAP_KEY_MAX_SIZE || strlen(key) > HDF_MAP_VALUE_MAX_SIZE) { in MapSetCheckPara()
136 int32_t MapSet(Map *map, const char *key, cons argument
191 MapGet(const Map *map, const char *key) MapGet() argument
216 MapErase(Map *map, const char *key) MapErase() argument
[all...]
H A Dhdf_cstring.c16 uint32_t HdfStringMakeHashKey(const char *key, uint32_t mask) in HdfStringMakeHashKey() argument
20 while ((key != NULL) && *key) { in HdfStringMakeHashKey()
21 hashValue = hashValue * seed + (*key++); in HdfStringMakeHashKey()
/drivers/peripheral/user_auth/hdi_service/key_mgr/src/
H A Dhmac_key.c53 Buffer *key = NULL; in GenerateHmacKey() local
54 ResultCode result = (ResultCode)GetDistributeKey(peerUdid, salt, &key); in GenerateHmacKey()
60 if (!IsBufferValid(key)) { in GenerateHmacKey()
61 DestoryBuffer(key); in GenerateHmacKey()
65 return key; in GenerateHmacKey()
76 Buffer *key = GenerateHmacKey(&peerUdidBuf); in HmacSign() local
77 if (!IsBufferValid(key)) { in HmacSign()
83 int32_t ret = HmacSha256(key, data, &signature); in HmacSign()
84 DestoryBuffer(key); in HmacSign()
108 Buffer *key in HmacVerify() local
[all...]
H A Dtoken_key.c23 * The key here is only for example.
24 * The real scene key needs to be obtained from huks, and the key life cycle is consistent with huks key.
26 ResultCode GetTokenKey(HksAuthTokenKey *key) in GetTokenKey() argument
28 if (memcpy_s(key->macKey, HKS_DEFAULT_USER_AT_KEY_LEN, HKS_DEFAULT_USER_AT_MAC_KEY, in GetTokenKey()
34 if (memcpy_s(key->cipherKey, HKS_DEFAULT_USER_AT_KEY_LEN, HKS_DEFAULT_USER_AT_CIPHER_KEY, in GetTokenKey()
/drivers/peripheral/huks/hdi_service/
H A Dhuks_sa_hdi_struct.h35 * @brief HUKS fresh key info
41 * @brief Generate key
42 * @param keyAlias key alias
44 * @param keyIn key to generate key
45 * @param keyOut output key
52 * @brief Import key
53 * @param keyAlias key alias
54 * @param key the key need
[all...]
H A Dhuks_hdi_template.h60 #define HDI_CONVERTER_FUNC_IMPORTKEY(keyAlias, key, paramSet, keyOut, ret, func) \
67 HDI_CONVERTER_PARAM_IN_BLOB(key, &keyCore) \
70 HDI_ADAPTER_PARAM(key, &keyCore), \
75 #define HDI_CONVERTER_FUNC_IMPORTWRAPPEDKEY(wrappedKeyAlias, key, wrappedKeyData, paramSet, keyOut, ret, func) \
83 HDI_CONVERTER_PARAM_IN_BLOB(key, &keyCore) \
87 HDI_ADAPTER_PARAM(key, &keyCore), \
93 #define HDI_CONVERTER_FUNC_EXPORTPUBLICKEY(key, paramSet, keyOut, ret, func) \
97 HDI_CONVERTER_PARAM_IN_BLOB(key, &keyCore) \
100 ret = (func)(HDI_ADAPTER_PARAM(key, &keyCore), \
105 #define HDI_CONVERTER_FUNC_INIT(key, paramSe
[all...]
H A Dhuks_hdi_passthrough_adapter.h30 int32_t HuksHdiAdapterSign(const struct HksBlob *key, const struct HksParamSet *paramSet, const struct HksBlob *srcData,
33 int32_t HuksHdiAdapterVerify(const struct HksBlob *key, const struct HksParamSet *paramSet,
36 int32_t HuksHdiAdapterEncrypt(const struct HksBlob *key, const struct HksParamSet *paramSet,
39 int32_t HuksHdiAdapterDecrypt(const struct HksBlob *key, const struct HksParamSet *paramSet,
44 int32_t HuksHdiAdapterImportKey(const struct HksBlob *keyAlias, const struct HksBlob *key,
47 int32_t HuksHdiAdapterExportPublicKey(const struct HksBlob *key, const struct HksParamSet *paramSet,
56 int32_t HuksHdiAdapterMac(const struct HksBlob *key, const struct HksParamSet *paramSet, const struct HksBlob *srcData,
66 int32_t HuksHdiAdapterInit(const struct HksBlob *key, const struct HksParamSet *paramSet, struct HksBlob *handle,
77 int32_t HuksHdiAdapterGetKeyProperties(const struct HksParamSet *paramSet, const struct HksBlob *key);
79 int32_t HuksHdiAdapterAttestKey(const struct HksBlob *key, cons
[all...]
H A Dhuks_hdi_passthrough_adapter.c72 int32_t HuksHdiAdapterImportKey(const struct HksBlob *keyAlias, const struct HksBlob *key, in HuksHdiAdapterImportKey() argument
80 return g_coreEngine->HuksHdiImportKey(keyAlias, key, paramSet, keyOut); in HuksHdiAdapterImportKey()
94 int32_t HuksHdiAdapterExportPublicKey(const struct HksBlob *key, const struct HksParamSet *paramSet, in HuksHdiAdapterExportPublicKey() argument
102 return g_coreEngine->HuksHdiExportPublicKey(key, paramSet, keyOut); in HuksHdiAdapterExportPublicKey()
105 int32_t HuksHdiAdapterInit(const struct HksBlob *key, const struct HksParamSet *paramSet, in HuksHdiAdapterInit() argument
113 return g_coreEngine->HuksHdiInit(key, paramSet, handle, token); in HuksHdiAdapterInit()
148 int32_t HuksHdiAdapterGetKeyProperties(const struct HksParamSet *paramSet, const struct HksBlob *key) in HuksHdiAdapterGetKeyProperties() argument
155 return g_coreEngine->HuksHdiGetKeyProperties(paramSet, key); in HuksHdiAdapterGetKeyProperties()
158 int32_t HuksHdiAdapterSign(const struct HksBlob *key, const struct HksParamSet *paramSet, in HuksHdiAdapterSign() argument
166 return g_coreEngine->HuksHdiSign(key, paramSe in HuksHdiAdapterSign()
169 HuksHdiAdapterVerify(const struct HksBlob *key, const struct HksParamSet *paramSet, const struct HksBlob *srcData, const struct HksBlob *signature) HuksHdiAdapterVerify() argument
180 HuksHdiAdapterEncrypt(const struct HksBlob *key, const struct HksParamSet *paramSet, const struct HksBlob *plainText, struct HksBlob *cipherText) HuksHdiAdapterEncrypt() argument
191 HuksHdiAdapterDecrypt(const struct HksBlob *key, const struct HksParamSet *paramSet, const struct HksBlob *cipherText, struct HksBlob *plainText) HuksHdiAdapterDecrypt() argument
224 HuksHdiAdapterMac(const struct HksBlob *key, const struct HksParamSet *paramSet, const struct HksBlob *srcData, struct HksBlob *mac) HuksHdiAdapterMac() argument
246 HuksHdiAdapterAttestKey(const struct HksBlob *key, const struct HksParamSet *paramSet, struct HksBlob *certChain) HuksHdiAdapterAttestKey() argument
[all...]
/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/usb/
H A Dusb_driver_info.cpp24 static int32_t SetArrayToObj(cJSON *obj, const string &key, const vector<uint16_t> &arr) in SetArrayToObj() argument
28 EDM_LOGE(MODULE_BUS_USB, "Create %{public}s error", key.c_str()); in SetArrayToObj()
34 EDM_LOGE(MODULE_BUS_USB, "AddItemToArray error, key:%{public}s, item:%{public}hu", key.c_str(), item); in SetArrayToObj()
40 if (!cJSON_AddItemToObject(obj, key.c_str(), array)) { in SetArrayToObj()
41 EDM_LOGE(MODULE_BUS_USB, "Add %{public}s to jsonRoot error", key.c_str()); in SetArrayToObj()
49 static bool GetObjectItem(const cJSON *jsonObj, const string &key, vector<uint16_t> &array) in GetObjectItem() argument
52 cJSON* item = cJSON_GetObjectItem(jsonObj, key.c_str()); in GetObjectItem()
54 EDM_LOGE(MODULE_BUS_USB, "json member error, need menbers: %{public}s", key.c_str()); in GetObjectItem()
59 key in GetObjectItem()
[all...]
/drivers/peripheral/distributed_audio/hdi_service/common/utils/src/
H A Ddaudio_utils.cpp79 int32_t GetAudioParamStr(const std::string &params, const std::string &key, std::string &value) in GetAudioParamStr() argument
81 size_t step = key.size(); in GetAudioParamStr()
85 size_t pos = params.find(key); in GetAudioParamStr()
101 int32_t GetAudioParamInt(const std::string &params, const std::string &key, int32_t &value) in GetAudioParamInt() argument
104 int32_t ret = GetAudioParamStr(params, key, val); in GetAudioParamInt()
128 int32_t GetAudioParamUInt(const std::string &params, const std::string &key, uint32_t &value) in GetAudioParamUInt() argument
134 int32_t GetAudioParamBool(const std::string &params, const std::string &key, bool &value) in GetAudioParamBool() argument
137 GetAudioParamStr(params, key, val); in GetAudioParamBool()
142 int32_t SetAudioParamStr(std::string &params, const std::string &key, const std::string &value) in SetAudioParamStr() argument
144 params = params + key in SetAudioParamStr()
281 ParseStringFromArgs(const std::string &args, const char *key) ParseStringFromArgs() argument
308 GetSysPara(const char *key, T &value) GetSysPara() argument
327 IsParamEnabled(const std::string &key, bool &isEnabled) IsParamEnabled() argument
[all...]
/drivers/peripheral/display/buffer/test/benchmarktest/
H A Ddisplay_buffer_benchmark_test.cpp84 int32_t key = 0; in BENCHMARK_F() local
87 ret = g_gralloc->SetMetadata(*g_bufferHandle, key, values); in BENCHMARK_F()
102 int32_t key = 0; in BENCHMARK_F() local
105 ret = g_gralloc->SetMetadata(*g_bufferHandle, key, values); in BENCHMARK_F()
108 ret = g_gralloc->GetMetadata(*g_bufferHandle, key, rets); in BENCHMARK_F()
123 int32_t key = 0; in BENCHMARK_F() local
127 ret = g_gralloc->SetMetadata(*g_bufferHandle, key, values); in BENCHMARK_F()
144 int32_t key = 0; in BENCHMARK_F() local
147 ret = g_gralloc->SetMetadata(*g_bufferHandle, key, values); in BENCHMARK_F()
149 ret = g_gralloc->EraseMetadataKey(*g_bufferHandle, key); in BENCHMARK_F()
[all...]
/drivers/peripheral/battery/interfaces/hdi_service/src/
H A Dbattery_config.cpp203 std::string key = *iter; in ParseLightConfig() local
204 Json::Value valueObj = lightConfig[key]; in ParseLightConfig()
206 BATTERY_HILOGW(COMP_HDI, "The light conf is invalid, key=%{public}s", key.c_str()); in ParseLightConfig()
213 BATTERY_HILOGW(COMP_HDI, "The battery light %{public}s configuration is invalid.", key.c_str()); in ParseLightConfig()
217 BATTERY_HILOGW(COMP_HDI, "The battery light %{public}s soc data type error.", key.c_str()); in ParseLightConfig()
222 BATTERY_HILOGW(COMP_HDI, "The battery light %{public}s rgb data type error.", key.c_str()); in ParseLightConfig()
249 std::string key = *iter; in ParseChargeSceneConfig() local
250 Json::Value valueObj = chargeSceneConfig[key]; in ParseChargeSceneConfig()
251 if (!IsValidChargeSceneConfig(key, valueOb in ParseChargeSceneConfig()
268 IsValidChargeSceneConfig(const std::string& key, const Json::Value& valueObj) IsValidChargeSceneConfig() argument
349 std::string key = *iter; ParseUeventConfig() local
372 SplitKey(const std::string& key, std::vector<std::string>& keys) const SplitKey() argument
[all...]
/drivers/peripheral/distributed_audio/hdi_service/common/utils/include/
H A Ddaudio_utils.h39 int32_t GetAudioParamStr(const std::string &params, const std::string &key, std::string &value);
41 int32_t GetAudioParamInt(const std::string &params, const std::string &key, int32_t &value);
43 int32_t GetAudioParamUInt(const std::string &params, const std::string &key, uint32_t &value);
45 int32_t GetAudioParamBool(const std::string &params, const std::string &key, bool &value);
47 int32_t SetAudioParamStr(std::string &params, const std::string &key, const std::string &value);
74 std::string ParseStringFromArgs(const std::string &args, const char *key);
79 bool GetSysPara(const char *key, T &value);
80 bool IsParamEnabled(const std::string &key, bool &isEnabled);
/drivers/peripheral/pin_auth/hdi_service/common/src/
H A Dattribute.c96 IAM_STATIC ResultCode GetAttributeIndex(AttributeKey key, uint32_t *index) in GetAttributeIndex() argument
99 if (g_attributeKeyArray[i] == key) { in GetAttributeIndex()
318 ResultCode GetAttributeUint32(const Attribute *attribute, AttributeKey key, uint32_t *value) in GetAttributeUint32() argument
325 ResultCode getAttrResult = GetAttributeUint8Array(attribute, key, &uint32Data); in GetAttributeUint32()
333 ResultCode SetAttributeUint32(Attribute *attribute, AttributeKey key, const uint32_t value) in SetAttributeUint32() argument
339 SetAttributeUint8Array(attribute, key, (Uint8Array) { (uint8_t *)&netOrderValue, sizeof(netOrderValue) }); in SetAttributeUint32()
345 ResultCode GetAttributeInt32(const Attribute *attribute, AttributeKey key, int32_t *retValue) in GetAttributeInt32() argument
350 return GetAttributeUint32(attribute, key, (uint32_t *)retValue); in GetAttributeInt32()
353 ResultCode SetAttributeInt32(Attribute *attribute, AttributeKey key, const int32_t value) in SetAttributeInt32() argument
357 return SetAttributeUint32(attribute, key, (uint32_ in SetAttributeInt32()
360 GetAttributeUint64(const Attribute *attribute, AttributeKey key, uint64_t *retValue) GetAttributeUint64() argument
375 SetAttributeUint64(Attribute *attribute, AttributeKey key, const uint64_t value) SetAttributeUint64() argument
387 GetAttributeLength(const Attribute *attribute, AttributeKey key, uint32_t *len) GetAttributeLength() argument
405 GetAttributeUint8Array(const Attribute *attributePub, AttributeKey key, Uint8Array *retData) GetAttributeUint8Array() argument
435 SetAttributeUint8Array(Attribute *attributePub, AttributeKey key, const Uint8Array data) SetAttributeUint8Array() argument
456 GetAttributeUint64Array(const Attribute *attribute, AttributeKey key, Uint64Array *retData) GetAttributeUint64Array() argument
475 SetAttributeUint64Array(Attribute *attribute, AttributeKey key, const Uint64Array data) SetAttributeUint64Array() argument
[all...]
/drivers/peripheral/pin_auth/hdi_service/adaptor/src/
H A Dadaptor_algorithm.c39 LOG_ERROR("no memory for key pair"); in CreateEd25519KeyPair()
44 LOG_ERROR("no memory for pub key"); in CreateEd25519KeyPair()
50 LOG_ERROR("no memory for pri key"); in CreateEd25519KeyPair()
75 LOG_ERROR("invalid key pair"); in IsEd25519KeyPairValid()
79 LOG_ERROR("invalid pub key"); in IsEd25519KeyPairValid()
83 LOG_ERROR("invalid pri key"); in IsEd25519KeyPairValid()
93 LOG_ERROR("create key pair fail"); in GenerateEd25519KeyPair()
96 EVP_PKEY *key = NULL; in GenerateEd25519KeyPair() local
106 if (EVP_PKEY_keygen(ctx, &key) != OPENSSL_SUCCESS) { in GenerateEd25519KeyPair()
107 LOG_ERROR("generate key fai in GenerateEd25519KeyPair()
144 EVP_PKEY *key = EVP_PKEY_new_raw_private_key(EVP_PKEY_ED25519, NULL, Ed25519Sign() local
189 EVP_PKEY *key = EVP_PKEY_new_raw_public_key(EVP_PKEY_ED25519, NULL, pubKey->buf, pubKey->contentSize); Ed25519Verify() local
312 Buffer *key = CreateBufferBySize(SHA256_DIGEST_SIZE); Hkdf() local
359 GetDistributeKey(const Buffer *peerUdid, const Buffer *salt, Buffer **key) GetDistributeKey() argument
[all...]
/drivers/peripheral/user_auth/hdi_service/adaptor/src/
H A Dadaptor_algorithm.c48 LOG_ERROR("no memory for key pair"); in CreateEd25519KeyPair()
53 LOG_ERROR("no memory for public key"); in CreateEd25519KeyPair()
59 LOG_ERROR("no memory for private key"); in CreateEd25519KeyPair()
84 LOG_ERROR("invalid key pair"); in IsEd25519KeyPairValid()
88 LOG_ERROR("invalid public key"); in IsEd25519KeyPairValid()
92 LOG_ERROR("invalid private key"); in IsEd25519KeyPairValid()
102 LOG_ERROR("create key pair failed"); in GenerateEd25519KeyPair()
105 EVP_PKEY *key = NULL; in GenerateEd25519KeyPair() local
115 if (EVP_PKEY_keygen(ctx, &key) != OPENSSL_SUCCESS) { in GenerateEd25519KeyPair()
116 LOG_ERROR("generate key faile in GenerateEd25519KeyPair()
153 EVP_PKEY *key = EVP_PKEY_new_raw_private_key(EVP_PKEY_ED25519, NULL, Ed25519Sign() local
198 EVP_PKEY *key = EVP_PKEY_new_raw_public_key(EVP_PKEY_ED25519, NULL, pubKey->buf, pubKey->contentSize); Ed25519Verify() local
489 GetDistributeKey(const Buffer *peerUdid, const Buffer *salt, Buffer **key) GetDistributeKey() argument
[all...]
/drivers/hdf_core/interfaces/inner_api/utils/
H A Dhdf_map.h30 int32_t MapSet(Map *map, const char *key, const void *value, uint32_t valueSize);
32 void *MapGet(const Map *map, const char *key);
34 int32_t MapErase(Map *map, const char *key);
/drivers/peripheral/pin_auth/test/unittest/pin_auth/adaptor/src/
H A Dadaptor_algorithm_test.cpp201 param.key = RandomBuffer(AES_GCM_256_KEY_SIZE); in HWTEST_F()
202 ASSERT_NE(param.key, nullptr); in HWTEST_F()
218 DestroyBuffer(param.key); in HWTEST_F()
242 Buffer *key = DeriveDeviceKey(pinData, secret); in HWTEST_F() local
243 ASSERT_NE(key, nullptr); in HWTEST_F()
244 EXPECT_EQ(key->contentSize, SHA256_DIGEST_SIZE); in HWTEST_F()
245 DestroyBuffer(key); in HWTEST_F()
266 Buffer *key = Hkdf(salt, rootKey); in HWTEST_F() local
267 ASSERT_NE(key, nullptr); in HWTEST_F()
268 EXPECT_EQ(key in HWTEST_F()
286 Buffer *key = Sha256Adaptor(data); HWTEST_F() local
[all...]
/drivers/hdf_core/adapter/uhdf2/manager/src/
H A Ddevmgr_uevent.c59 char *key; member
88 OsalMemFree(matchKey->key); in DevMgrUeventReleaseKeyList()
147 HDF_LOGD("key:%{public}s,value:[%{public}s]", str, value); in DevMgrUeventParseKeyValue()
148 matchKey->key = strdup(str); in DevMgrUeventParseKeyValue()
150 if (matchKey->key == NULL || matchKey->value == NULL) { in DevMgrUeventParseKeyValue()
151 HDF_LOGE("invalid param : matchKey->key or matchKey->value"); in DevMgrUeventParseKeyValue()
175 HDF_LOGE("match key invalid [%{public}s]", subStr); in DevMgrUeventParseMatchKey()
184 if (matchKey->value == NULL || matchKey->key == NULL) { in DevMgrUeventParseMatchKey()
185 HDF_LOGW("%{public}s OsalMemCalloc matchKey->value or matchKey->key failed", __func__); in DevMgrUeventParseMatchKey()
250 HDF_LOGE("parse failed, no match key"); in DevMgrUeventParseHdfEvent()
434 struct DevMgrMatchKey *key = NULL; DevMgrUeventMatchRule() local
496 struct DevMgrMatchKey *key = NULL; DevMgrParseUevent() local
[all...]
/drivers/liteos/hievent/src/
H A Dhiview_hievent.c73 char *key; member
85 const char *key);
100 payload->key = NULL; in HiviewHieventPayloadCreate()
117 LOS_MemFree((VOID *)OS_SYS_MEM_ADDR, p->key); in HiviewHieventPayloadDestroy()
122 const char *key) in HiviewHieventGetPayload()
127 if (key && p->key) { in HiviewHieventGetPayload()
128 if (strcmp(p->key, key) == 0) { in HiviewHieventGetPayload()
171 const char *key, lon in HiviewHieventPutIntegral()
121 HiviewHieventGetPayload(struct HiviewHieventPayload *head, const char *key) HiviewHieventGetPayload() argument
170 HiviewHieventPutIntegral(struct HiviewHievent *event, const char *key, long value) HiviewHieventPutIntegral() argument
209 HiviewHieventPutString(struct HiviewHievent *event, const char *key, const char *value) HiviewHieventPutString() argument
[all...]

Completed in 11 milliseconds

123456