/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/relational/ |
H A D | relationaldb_properties.cpp | 42 void RelationalDBProperties::SetCipherArgs(CipherType cipherType, const CipherPassword &passwd, uint32_t iterTimes) in SetCipherArgs() argument 46 passwd_ = passwd; in SetCipherArgs()
|
/third_party/curl/lib/ |
H A D | url.c | 325 Curl_safefree(data->state.aptr.passwd); in Curl_close() 587 Curl_safefree(conn->http_proxy.passwd); in conn_free() 588 Curl_safefree(conn->socks_proxy.passwd); in conn_free() 593 Curl_safefree(conn->passwd); in conn_free() 733 Curl_timestrcmp(data->passwd, needle->passwd)) in socks_proxy_info_matches() 1146 Curl_timestrcmp(needle->passwd, check->passwd) || in ConnectionExists() 1231 Curl_timestrcmp(needle->passwd, check->passwd)) { in ConnectionExists() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_encrypt_test.cpp | 101 int SetEncryptParam(const char *passwd, int iterNumber, const string &algName) in SetEncryptParam() argument 104 int errCode = sqlite3_key(g_db, static_cast<const void *>(passwd), strlen(passwd)); in SetEncryptParam() 128 int OpenWithKey(const char *passwd, int iterNumber, const string &algName, bool isEncrypted) in OpenWithKey() argument 135 errCode = SetEncryptParam(passwd, iterNumber, algName); in OpenWithKey() 158 int InputPasswd(const char *passwd, int iterNumber, const string &algName) in InputPasswd() argument 160 int errCode = SetEncryptParam(passwd, iterNumber, algName); in InputPasswd() 168 int Reconnect(const char *passwd, int iterNumber, const string &algName) in Reconnect() argument 174 errCode = InputPasswd(passwd, iterNumber, algName); in Reconnect() 178 errCode = InputPasswd(passwd, iterNumbe in Reconnect() 270 AttachWithKey(const string &dbName, const char *passwd) AttachWithKey() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/ |
H A D | multi_ver_natural_store_commit_storage.h | 65 int RunRekeyLogic(CipherType type, const CipherPassword &passwd); 67 int RunExportLogic(CipherType type, const CipherPassword &passwd, const std::string &dbDir); 71 int ImportDatabase(const Property &property, const std::string &dir, const CipherPassword &passwd) override;
|
H A D | multi_ver_natural_store_connection.h | 93 int Rekey(const CipherPassword &passwd) override; 95 int Export(const std::string &filePath, const CipherPassword &passwd) override; 97 int Import(const std::string &filePath, const CipherPassword &passwd) override;
|
H A D | multi_ver_natural_store.cpp | 281 CipherPassword passwd; in InitStorages() local 282 kvDBProp.GetPassword(cipherType, passwd); in InitStorages() 284 IKvDBMultiVerDataStorage::Property multiVerProp = {dataDir, identifierDir, isNeedCreate, cipherType, passwd}; in InitStorages() 285 IKvDBCommitStorage::Property commitProp = {dataDir, identifierDir, isNeedCreate, cipherType, passwd}; in InitStorages() 286 MultiVerKvDataStorage::Property multiVerKvProp = {dataDir, identifierDir, isNeedCreate, cipherType, passwd}; in InitStorages() 331 CipherPassword passwd; in CheckSubStorageVersion() local 332 kvDBProp.GetPassword(cipherType, passwd); in CheckSubStorageVersion() 334 IKvDBMultiVerDataStorage::Property multiVerProp = {dataDir, identifierDir, isNeedCreate, cipherType, passwd}; in CheckSubStorageVersion() 335 IKvDBCommitStorage::Property commitProp = {dataDir, identifierDir, isNeedCreate, cipherType, passwd}; in CheckSubStorageVersion() 336 MultiVerKvDataStorage::Property multiVerKvProp = {dataDir, identifierDir, true, cipherType, passwd}; in CheckSubStorageVersion() 742 Rekey(const CipherPassword &passwd) Rekey() argument 772 Export(const std::string &filePath, const CipherPassword &passwd) Export() argument 798 Import(const std::string &filePath, const CipherPassword &passwd) Import() argument [all...] |
H A D | ikvdb_multi_ver_data_storage.h | 46 CipherPassword passwd; member 63 virtual int ImportDatabase(const Property &property, const std::string &dir, const CipherPassword &passwd) = 0;
|
H A D | multi_ver_natural_store_commit_storage.cpp | 90 dbProperties.SetPassword(property.cipherType, property.passwd); in GetVersion() 121 dbProperties.SetPassword(property.cipherType, property.passwd); in Open() 631 int MultiVerNaturalStoreCommitStorage::RunRekeyLogic(CipherType type, const CipherPassword &passwd) in RunRekeyLogic() argument 633 int errCode = static_cast<SQLiteLocalKvDB *>(commitStorageDatabase_)->RunRekeyLogic(type, passwd); in RunRekeyLogic() 640 int MultiVerNaturalStoreCommitStorage::RunExportLogic(CipherType type, const CipherPassword &passwd, in RunExportLogic() argument 645 int errCode = static_cast<SQLiteLocalKvDB *>(commitStorageDatabase_)->RunExportLogic(type, passwd, newDbName); in RunExportLogic() 895 dbProperties.SetPassword(property.cipherType, property.passwd); in BackupCurrentDatabase() 901 const CipherPassword &passwd) in ImportDatabase() 909 dbProperties.SetPassword(property.cipherType, property.passwd); in ImportDatabase() 910 int errCode = SQLiteLocalKvDB::ImportDatabase(dbProperties, dir, passwd); in ImportDatabase() 900 ImportDatabase(const Property &property, const std::string &dir, const CipherPassword &passwd) ImportDatabase() argument [all...] |
H A D | multi_ver_natural_store_connection.cpp | 436 int MultiVerNaturalStoreConnection::Rekey(const CipherPassword &passwd) in Rekey() argument 456 errCode = kvDB_->Rekey(passwd); in Rekey() 462 int MultiVerNaturalStoreConnection::Export(const std::string &filePath, const CipherPassword &passwd) in Export() argument 467 return kvDB_->Export(filePath, passwd); in Export() 470 int MultiVerNaturalStoreConnection::Import(const std::string &filePath, const CipherPassword &passwd) in Import() argument 487 errCode = kvDB_->Import(filePath, passwd); in Import()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/ |
H A D | rd_single_ver_natural_store.h | 77 int Rekey(const CipherPassword &passwd) override; 79 int Export(const std::string &filePath, const CipherPassword &passwd) override; 81 int Import(const std::string &filePath, const CipherPassword &passwd) override;
|
H A D | rd_single_ver_natural_store.cpp | 233 int RdSingleVerNaturalStore::Rekey(const CipherPassword &passwd) in Rekey() argument 238 int RdSingleVerNaturalStore::Export(const std::string &filePath, const CipherPassword &passwd) in Export() argument 273 uint8_t *encryptedKey = const_cast<uint8_t*>(passwd.GetData()); in Export() 274 uint32_t encryptedKeyLen = (uint32_t)passwd.GetSize(); in Export() 314 int RdSingleVerNaturalStore::Import(const std::string &filePath, const CipherPassword &passwd) in Import() argument 325 uint8_t *decryptedKey = const_cast<uint8_t*>(passwd.GetData()); in Import() 326 uint32_t decryptedKeyLen = (uint32_t)passwd.GetSize(); in Import()
|
H A D | rd_single_ver_natural_store_connection.h | 76 int Rekey(const CipherPassword &passwd) override; 78 int Export(const std::string &filePath, const CipherPassword &passwd) override; 80 int Import(const std::string &filePath, const CipherPassword &passwd) override;
|
H A D | rd_single_ver_natural_store_connection.cpp | 375 int RdSingleVerNaturalStoreConnection::Rekey(const CipherPassword &passwd) in Rekey() argument 380 int RdSingleVerNaturalStoreConnection::Export(const std::string &filePath, const CipherPassword &passwd) in Export() argument 386 // not support passwd in Export() 387 if (passwd.GetSize() != 0) { in Export() 388 LOGE("[RdSingleVerNaturalStoreConnection][Export]unsupport passwd."); in Export() 392 return kvDB_->Export(filePath, passwd); in Export() 395 int RdSingleVerNaturalStoreConnection::Import(const std::string &filePath, const CipherPassword &passwd) in Import() argument 397 // not support passwd in Import() 398 if (passwd.GetSize() != 0) { in Import() 399 LOGE("[RdSingleVerNaturalStoreConnection][Export]unsupport passwd in Import() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
H A D | pkcs8.c | 111 pkcs8_enc_key_import(const u8 *buf, size_t len, const char *passwd) in pkcs8_enc_key_import() argument 119 if (passwd == NULL) in pkcs8_enc_key_import() 159 passwd, &data_len); in pkcs8_enc_key_import()
|
/third_party/ltp/testcases/kernel/syscalls/setgroups/ |
H A D | setgroups03.c | 31 static struct passwd *user_info; 70 {&user_info, .size = sizeof(struct passwd)},
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/include/ |
H A D | distributeddb_nb_test_tools.h | 43 std::vector<uint8_t> passwd; // cipher password member 62 std::vector<uint8_t> passwd) in Option() 64 cipher(cipher), passwd(passwd) in Option() 69 const std::vector<uint8_t> &passwd, const DistributedDB::SecurityOption &secOption, in Option() 72 cipher(cipher), passwd(passwd), secOption(secOption), observer(observer), notifier(notifier) in Option()
|
/third_party/musl/src/passwd/ |
H A D | getpwent_a.c | 11 int __getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size, struct passwd **res) in __getpwent_a()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/ |
H A D | database_oper.cpp | 33 int DatabaseOper::ExecuteRekey(const CipherPassword &passwd, const KvDBProperties &property) in ExecuteRekey() argument 36 if (!RekeyPreHandle(passwd, errCode)) { in ExecuteRekey() 49 errCode = BackupDb(passwd); in ExecuteRekey() 68 errCode = RekeyPostHandle(passwd); in ExecuteRekey() 174 int DatabaseOper::ExecuteImport(const std::string &filePath, const CipherPassword &passwd, in ExecuteImport() argument 215 errCode = ImportUnpackedDatabase(importInfo, passwd); in ExecuteImport() 251 int DatabaseOper::ExecuteExport(const std::string &filePath, const CipherPassword &passwd, in ExecuteExport() argument 265 errCode = ExportAllDatabases(currentDir, passwd, backupDir); in ExecuteExport()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_utils_extend.cpp | 386 errCode = SQLiteUtils::SetKey(db, properties.cipherType, properties.passwd, setWal, in SetDataBaseProperty() 546 int SQLiteUtils::SetKeyInner(sqlite3 *db, CipherType type, const CipherPassword &passwd, uint32_t iterTimes) in SetKeyInner() argument 549 int errCode = sqlite3_key(db, static_cast<const void *>(passwd.GetData()), static_cast<int>(passwd.GetSize())); in SetKeyInner() 610 int SQLiteUtils::UpdateCipherShaAlgo(sqlite3 *db, bool setWal, CipherType type, const CipherPassword &passwd, in UpdateCipherShaAlgo() argument 613 if (passwd.GetSize() != 0) { in UpdateCipherShaAlgo() 614 int errCode = SetKeyInner(db, type, passwd, iterTimes); in UpdateCipherShaAlgo() 649 return Rekey(db, passwd); in UpdateCipherShaAlgo()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/ |
H A D | ikvdb_connection.h | 111 virtual int Rekey(const CipherPassword &passwd) = 0; 115 virtual int Export(const std::string &filePath, const CipherPassword &passwd) = 0; 118 virtual int Import(const std::string &filePath, const CipherPassword &passwd) = 0;
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/ |
H A D | generic_kvdb.h | 81 virtual int Rekey(const CipherPassword &passwd) = 0; 85 virtual int Export(const std::string &filePath, const CipherPassword &passwd) = 0; 88 virtual int Import(const std::string &filePath, const CipherPassword &passwd) = 0;
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
H A D | pkcs8.c | 122 pkcs8_enc_key_import(const u8 *buf, size_t len, const char *passwd) in pkcs8_enc_key_import() argument 130 if (passwd == NULL) in pkcs8_enc_key_import() 178 passwd, &data_len); in pkcs8_enc_key_import()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/kv/ |
H A D | sqlite_local_kvdb_connection.cpp | 422 int SQLiteLocalKvDBConnection::Rekey(const CipherPassword &passwd) in Rekey() argument 447 errCode = kvDB_->Rekey(passwd); in Rekey() 454 int SQLiteLocalKvDBConnection::Export(const std::string &filePath, const CipherPassword &passwd) in Export() argument 459 return kvDB_->Export(filePath, passwd); in Export() 462 int SQLiteLocalKvDBConnection::Import(const std::string &filePath, const CipherPassword &passwd) in Import() argument 486 errCode = kvDB_->Import(filePath, passwd); in Import()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/ |
H A D | kv_store_delegate_impl.h | 93 DBStatus Export(const std::string &filePath, const CipherPassword &passwd) override; 96 DBStatus Import(const std::string &filePath, const CipherPassword &passwd) override;
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | ikvdb_commit_storage.h | 36 CipherPassword passwd; member 57 virtual int ImportDatabase(const Property &property, const std::string &dir, const CipherPassword &passwd) = 0;
|