Home
last modified time | relevance | path

Searched refs:MAX_KEY_LEN (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_common/
H A Dkvstore_common.c50 if (!IsValidValue(key, MAX_KEY_LEN)) { in IsValidKey()
53 size_t keyLen = strnlen(key, MAX_KEY_LEN); in IsValidKey()
113 size_t keyLen = strnlen(key, MAX_KEY_LEN); in AddKVCache()
115 if ((keyLen >= MAX_KEY_LEN) || (valueLen >= MAX_VALUE_LEN)) { in AddKVCache()
H A Dkvstore_common.h22 #define MAX_KEY_LEN 32 macro
/ohos5.0/foundation/communication/wifi/wifi/base/security_utils/include/
H A Dwifi_openssl_utils.h24 #define MAX_KEY_LEN 32 macro
30 uint8_t key[MAX_KEY_LEN];
/ohos5.0/foundation/communication/wifi/wifi/interfaces/kits/c/
H A Dwifi_hid2d.h36 #define MAX_KEY_LEN 65 // max length: 64 + \0 macro
95 char preSharedKey[MAX_KEY_LEN];
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/dbm_kv_store/src/kv_store_impl_hal/
H A Ddbm_kv_store.c123 char key[MAX_KEY_LEN + 1];
336 …ret = memcpy_s(item->key, MAX_KEY_LEN, itemContent + 2 * KV_SUM_BLOCK_SIZE, MAX_KEY_LEN); // 2 blo… in LoadDataItem()
340 item->key[MAX_KEY_LEN] = '\0'; // make sure key is a string in LoadDataItem()
389 char bakKey[MAX_KEY_LEN + 8] = {0}; // 8 is bak file suffix len in DelItem()
390 if (sprintf_s(bakKey, MAX_KEY_LEN + 8, "%s_dbm_kv", item->key) < 0) { in DelItem()
678 …DBM_DEBUG("Limitation:key len[%d],value len[%d], keys sum[%d]", MAX_KEY_LEN, MAX_VALUE_LEN, DBM_MA… in DBM_GetKVStore()
1017 ret = FileWriteCursor(db->sumFileFd, strKeyOffset, SEEK_SET_FS, item->key, MAX_KEY_LEN); in WriteNewItemToSumFile()
1036 char tmpKey[MAX_KEY_LEN + 1] = {0}; in AddNewDataItem()
1147 if (strcpy_s(item->key, MAX_KEY_LEN + 1, key) != EOK) { in Put()
1231 if (strcpy_s(item->key, MAX_KEY_LEN + 1, key) != EOK) { in Delete()
/ohos5.0/base/startup/init/simulator/parameter/src/
H A Dparam_adaptor.h28 #define MAX_KEY_LEN 32 macro
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/frameworks/native/c_adapter/wifichid2d_fuzzer/
H A Dwifichid2d_fuzzer.cpp109 if (memcpy_s(cppConfig.preSharedKey, MAX_KEY_LEN, data, MAX_KEY_LEN - 1) != EOK) { in Hid2dConnectTest()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/dbm_kv_store/inc/
H A Ddbm_def.h25 #define MAX_KEY_LEN 32 // the suffix is 7 bytes macro
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_base/security_utils/
H A Dwifi_openssl_utils_test.cpp60 memcpy_s(info.key, MAX_KEY_LEN, key, KEY_LEN);
/ohos5.0/foundation/window/window_manager/window_scene/session/host/include/
H A Dscene_persistent_storage.h39 static constexpr int32_t MAX_KEY_LEN = 80; // 80: max length of preference's key variable
/ohos5.0/base/startup/init/simulator/parameter/src/param_impl_posix/
H A Dparam_impl_posix.c55 if (!IsValidValue(key, MAX_KEY_LEN)) { in IsValidKey()
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/
H A Dsym_key_openssl.c26 #define MAX_KEY_LEN 4096 macro
288 if ((key->len == 0) || (key->len > MAX_KEY_LEN)) { in IsBlobKeyLenValid()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/dfx/test/unittest/fake/hiview/include/
H A Dhievent.h56 static const size_t MAX_KEY_LEN = 32; variable
/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/
H A Dscene_session.cpp2459 if (key.length() > ScenePersistentStorage::MAX_KEY_LEN) { in GetRatioPreferenceKey()
2460 return key.substr(key.length() - ScenePersistentStorage::MAX_KEY_LEN); in GetRatioPreferenceKey()