/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_common/ |
H A D | kvstore_common.c | 50 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 D | kvstore_common.h | 22 #define MAX_KEY_LEN 32 macro
|
/ohos5.0/foundation/communication/wifi/wifi/base/security_utils/include/ |
H A D | wifi_openssl_utils.h | 24 #define MAX_KEY_LEN 32 macro 30 uint8_t key[MAX_KEY_LEN];
|
/ohos5.0/foundation/communication/wifi/wifi/interfaces/kits/c/ |
H A D | wifi_hid2d.h | 36 #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 D | dbm_kv_store.c | 123 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 D | param_adaptor.h | 28 #define MAX_KEY_LEN 32 macro
|
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/frameworks/native/c_adapter/wifichid2d_fuzzer/ |
H A D | wifichid2d_fuzzer.cpp | 109 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 D | dbm_def.h | 25 #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 D | wifi_openssl_utils_test.cpp | 60 memcpy_s(info.key, MAX_KEY_LEN, key, KEY_LEN);
|
/ohos5.0/foundation/window/window_manager/window_scene/session/host/include/ |
H A D | scene_persistent_storage.h | 39 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 D | param_impl_posix.c | 55 if (!IsValidValue(key, MAX_KEY_LEN)) { in IsValidKey()
|
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/ |
H A D | sym_key_openssl.c | 26 #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 D | hievent.h | 56 static const size_t MAX_KEY_LEN = 32; variable
|
/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/ |
H A D | scene_session.cpp | 2459 if (key.length() > ScenePersistentStorage::MAX_KEY_LEN) { in GetRatioPreferenceKey() 2460 return key.substr(key.length() - ScenePersistentStorage::MAX_KEY_LEN); in GetRatioPreferenceKey()
|