Home
last modified time | relevance | path

Searched refs:password (Results 1 - 25 of 93) sorted by relevance

1234

/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/include/
H A Dsecurity_manager.h29 DistributedDB::CipherPassword password; member
32 return password.GetSize(); in GetSize()
36 return password.GetData(); in GetData()
40 return password.SetValue(inputData, inputSize); in SetValue()
44 return password.GetSize() != 0; in IsValid()
48 return password.Clear(); in Clear()
H A Dkvdb_service_client.h36 const std::vector<uint8_t> &password) override;
52 Status GetBackupPassword(const AppId &appId, const StoreId &storeId, std::vector<uint8_t> &password,
H A Dkvdb_service.h52 const AppId &appId, const StoreId &storeId, const Options &options, const std::vector<uint8_t> &password) = 0;
69 const AppId &appId, const StoreId &storeId, std::vector<uint8_t> &password, int32_t passwordType) = 0;
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/
H A Dupgrade.cpp58 DBPassword password; in UpdateStore() local
59 auto backupFile = exporter_(old, password); in UpdateStore()
83 DBPassword password; in ExportStore() local
84 auto backupFile = exporter_(old, password); in ExportStore()
91 void Upgrade::UpdatePassword(const StoreMeta &meta, const std::vector<uint8_t> &password) in UpdatePassword() argument
99 secretKey.sKey = CryptoManager::GetInstance().Encrypt(password); in UpdatePassword()
146 DBPassword password; in GetDBStore() local
147 password.SetValue(pwd.data(), pwd.size()); in GetDBStore()
149 manager.GetKvStore(meta.storeId, KVDBGeneralStore::GetDBOption(meta, password), in GetDBStore()
H A Dkvdb_service_stub.cpp151 std::vector<uint8_t> password; in OnAfterCreate() local
152 if (!ITypesUtil::Unmarshal(data, options, password)) { in OnAfterCreate()
157 int32_t status = AfterCreate(appId, storeId, options, password); in OnAfterCreate()
158 password.assign(password.size(), 0); in OnAfterCreate()
430 std::vector<uint8_t> password; in OnGetBackupPassword() local
431 int32_t status = GetBackupPassword(appId, storeId, password, passwordType); in OnGetBackupPassword()
432 if (!ITypesUtil::Marshal(reply, status, password)) { in OnGetBackupPassword()
435 password.assign(password in OnGetBackupPassword()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/
H A Dkvdb_properties.cpp61 void KvDBProperties::GetPassword(CipherType &type, CipherPassword &password) const in GetPassword()
64 password = password_; in GetPassword()
67 void KvDBProperties::SetPassword(CipherType type, const CipherPassword &password) in SetPassword() argument
70 password_ = password; in SetPassword()
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/src/
H A Dstore_manager.cpp42 auto password = SecurityManager::GetInstance().GetDBPassword(storeId.storeId, options.baseDir, options.encrypt); in GetKVStore() local
43 std::vector<uint8_t> pwd(password.GetData(), password.GetData() + password.GetSize()); in GetKVStore()
H A Dsecurity_manager.cpp39 DBPassword password; in GetDBPassword() local
40 password.SetValue(secKey.data(), secKey.size()); in GetDBPassword()
42 return password; in GetDBPassword()
H A Dstore_factory.cpp52 auto password = SecurityManager::GetInstance().GetDBPassword(storeId.storeId, options.baseDir, options.encrypt); in GetOrOpenStore()
54 dbManager->GetKvStore(storeId, GetDBOption(options, password), in GetOrOpenStore()
128 StoreFactory::DBOption StoreFactory::GetDBOption(const Options &options, const DBPassword &password) const in GetDBOption()
137 dbOption.passwd = password; in GetDBOption()
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Drdb_security_manager_test.cpp86 auto password = RdbSecurityManager::GetInstance().GetRdbPassword(dbFile_, KeyType::PUB_KEY_FILE); in HWTEST_F() local
87 ASSERT_EQ(password.GetSize(), key.size()); in HWTEST_F()
88 auto ret = memcmp(password.GetData(), key.data(), password.GetSize()); in HWTEST_F()
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/
H A Dlnn_decision_db_deps_mock.cpp109 int32_t EncryptedDb(DbContext *ctx, const uint8_t *password, uint32_t len) in EncryptedDb() argument
111 return GetDecisionDbDepsInterface()->EncryptedDb(ctx, password, len); in EncryptedDb()
114 int32_t UpdateDbPassword(DbContext *ctx, const uint8_t *password, uint32_t len) in UpdateDbPassword() argument
116 return GetDecisionDbDepsInterface()->UpdateDbPassword(ctx, password, len); in UpdateDbPassword()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Dmeta_data_test.cpp138 std::vector<uint8_t> password {}; in HWTEST_F()
139 auto status = kvdbServiceImpl_->AfterCreate(appId, storeId, options_, password); in HWTEST_F()
157 std::vector<uint8_t> password {}; in HWTEST_F()
158 auto status = kvdbServiceImpl_->AfterCreate(appId, storeId, options_, password); in HWTEST_F()
H A Dkvdb_service_test.cpp141 std::vector<uint8_t> password = {0x01, 0x02, 0x03}; in HWTEST_F() local
142 auto dbStatus = upgrade.UpdateStore(oldMeta, metaData_, password); in HWTEST_F()
146 dbStatus = upgrade.UpdateStore(oldMeta, metaData_, password); in HWTEST_F()
154 dbStatus = upgrade.UpdateStore(oldMeta, metaData_, password); in HWTEST_F()
163 upgrade.UpdatePassword(metaData_, password); in HWTEST_F()
164 dbStatus = upgrade.UpdateStore(oldMeta, metaData_, password); in HWTEST_F()
168 upgrade.UpdatePassword(metaData_, password); in HWTEST_F()
171 dbStatus = upgrade.UpdateStore(oldMeta, metaData_, password); in HWTEST_F()
175 dbStatus = upgrade.UpdateStore(oldMetas, metaData_, password); in HWTEST_F()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/
H A Dkvdb_properties.h35 // Get the password
36 void GetPassword(CipherType &type, CipherPassword &password) const;
38 // Set the password
39 void SetPassword(CipherType type, const CipherPassword &password);
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/
H A Dhttp_proxy.h60 void inline SetPassword(const SecureData &password) in SetPassword() argument
62 password_ = password; in SetPassword()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/
H A Dwifi_encryption_util.h39 EncryptedData(const std::string password, const std::string inputIV) in EncryptedData() argument
41 encryptedPassword = password; in EncryptedData()
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dstore_factory.cpp78 ZLOGE("Crypt kvStore failed to get password, storeId is %{public}s, error is %{public}d", in GetOrOpenStore()
85 ZLOGE("KvStore password error, storeId is %{public}s, error is %{public}d", in GetOrOpenStore()
184 dbOption.passwd = dbPassword.password; in GetDBOption()
260 SecurityManager::GetInstance().SaveDBPassword(storeId, path, dbPassword.password); in RekeyRecover()
293 auto dbStatus = dbStore->Rekey(newDbPassword.password); in ExecuteRekey()
301 if (!SecurityManager::GetInstance().SaveDBPassword(storeId, path, newDbPassword.password)) { in ExecuteRekey()
302 ZLOGE("save new password failed"); in ExecuteRekey()
303 dbStore->Rekey(dbPassword.password); in ExecuteRekey()
307 dbPassword.password = newDbPassword.password; in ExecuteRekey()
[all...]
H A Dbackup_manager.cpp136 auto dbStatus = dbStore->Export(backupFullName, dbPassword.password); in Backup()
140 SecurityManager::GetInstance().SaveDBPassword(keyName, baseDir, dbPassword.password); in Backup()
190 auto password = GetRestorePassword(backupFile.name, baseDir, appId, storeId).password; in Restore() local
191 auto dbStatus = dbStore->Import(fullName, password); in Restore()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_rd_single_ver_natural_executor_test.cpp499 CipherPassword password; in HWTEST_F() local
501 CipherType::DEFAULT, password, cacheDir, EngineState::INVALID), -E_NOT_SUPPORT); in HWTEST_F()
503 CipherType::DEFAULT, password, cacheDir, EngineState::CACHEDB), -E_NOT_SUPPORT); in HWTEST_F()
505 CipherType::DEFAULT, password, cacheDir, EngineState::ATTACHING), -E_NOT_SUPPORT); in HWTEST_F()
507 CipherType::DEFAULT, password, cacheDir, EngineState::MAINDB), -E_NOT_SUPPORT); in HWTEST_F()
537 CipherPassword password; in HWTEST_F() local
539 CipherType::DEFAULT, password, cacheDir, EngineState::MAINDB), -E_NOT_SUPPORT); in HWTEST_F()
574 CipherType::DEFAULT, password, cacheDir, EngineState::CACHEDB), -E_NOT_SUPPORT); in HWTEST_F()
H A Ddistributeddb_storage_rd_single_ver_natural_store_test.cpp257 CipherPassword password; in HWTEST_F() local
258 EXPECT_EQ(g_store->Export(g_testDir, password), -E_READ_ONLY); in HWTEST_F()
/foundation/communication/dsoftbus/core/common/include/
H A Dsqlite3_utils.h76 int32_t EncryptedDb(DbContext *ctx, const uint8_t *password, uint32_t len);
77 int32_t UpdateDbPassword(DbContext *ctx, const uint8_t *password, uint32_t len);
/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/
H A Dobex_utils.cpp247 std::vector<uint8_t> ObexUtils::MakeRequestDigest(const uint8_t *nonce, int sz, const std::string &password) in MakeRequestDigest() argument
255 reinterpret_cast<uint8_t *>(const_cast<char *>(password.c_str())), password.size()); in MakeRequestDigest()
258 std::vector<uint8_t> vc = digest->Digest((uint8_t *)nonceBuf, sz + password.size() + 1); in MakeRequestDigest()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/
H A Ddistributeddb_nb_create_test.cpp1176 vector<uint8_t> password; in HWTEST_F() local
1195 password.assign(VALUE_ONE_HUNDRED_BYTE, 'a'); in HWTEST_F()
1196 option.passwd = password; in HWTEST_F()
1206 password.clear(); in HWTEST_F()
1207 password.assign(BATCH_RECORDS, 'a'); in HWTEST_F()
1209 option.passwd = password; in HWTEST_F()
1219 password.clear(); in HWTEST_F()
1220 password.assign(PASSWD_BYTE, 'a'); in HWTEST_F()
1222 option.passwd = password; in HWTEST_F()
1260 vector<uint8_t> password; in HWTEST_F() local
1430 CipherPassword password; HWTEST_F() local
1562 CipherPassword password; HWTEST_F() local
[all...]
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/
H A Dconfig.rs307 pub fn basic_auth(mut self, username: &str, password: &str) -> Self { in basic_auth()
309 p = p.basic_auth(username, password); in basic_auth()
/foundation/communication/bluetooth_service/test/unittest/pbap/
H A Dpbap_server_test.cpp214 * @tc.desc: Set device's password. please call after OnServicePasswordRequired event.
221 string password = "123"; in HWTEST_F() local
223 int state = profile_->SetDevicePassword(device, password, userId); in HWTEST_F()

Completed in 16 milliseconds

1234