Home
last modified time | relevance | path

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

12345

/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/kdf/src/
H A Dpbkdf2_openssl.c30 unsigned char *password; member
76 if ((*data)->password != NULL) { in FreeKdfData()
77 HcfClearAndFreeUnsignedChar((*data)->password, (*data)->passwordLen); in FreeKdfData()
78 (*data)->password = NULL; in FreeKdfData()
108 if (params->output.len > INT_MAX || params->salt.len > INT_MAX || params->password.len > INT_MAX) { in CheckPBKDF2Params()
112 // when params password == nullptr, the size will be set 0 by openssl; in CheckPBKDF2Params()
129 if (params->password.data != NULL && params->password.len != 0) { in GetPBKDF2PasswordFromSpec()
130 data->password = (unsigned char *)HcfMalloc(params->password in GetPBKDF2PasswordFromSpec()
[all...]
/base/security/crypto_framework/test/unittest/src/
H A Dcrypto_pbkdf2_test.cpp68 HcfBlob password = {.data = reinterpret_cast<uint8_t *>(const_cast<char *>(g_password)), in HWTEST_F() local
72 .password = password, in HWTEST_F()
91 HcfBlob password = {.data = reinterpret_cast<uint8_t *>(const_cast<char *>(g_password)), in HWTEST_F() local
95 .password = password, in HWTEST_F()
114 HcfBlob password = {.data = nullptr, .len = 0}; in HWTEST_F() local
117 .password = password, in HWTEST_F()
135 HcfBlob password in HWTEST_F() local
159 HcfBlob password = {.data = reinterpret_cast<uint8_t *>(const_cast<char *>(g_passwordLong)), HWTEST_F() local
183 HcfBlob password = {.data = reinterpret_cast<uint8_t *>(const_cast<char *>(g_passwordLong)), HWTEST_F() local
206 HcfBlob password = {.data = reinterpret_cast<uint8_t *>(const_cast<char *>(g_password)), HWTEST_F() local
229 HcfBlob password = {.data = reinterpret_cast<uint8_t *>(const_cast<char *>(g_password)), HWTEST_F() local
252 HcfBlob password = {.data = reinterpret_cast<uint8_t *>(const_cast<char *>(g_password)), HWTEST_F() local
275 HcfBlob password = {.data = reinterpret_cast<uint8_t *>(const_cast<char *>(g_password)), HWTEST_F() local
298 HcfBlob password = {.data = reinterpret_cast<uint8_t *>(const_cast<char *>(g_password)), HWTEST_F() local
342 HcfBlob password = {.data = nullptr, .len = 0}; HWTEST_F() local
[all...]
/base/web/webview/interfaces/kits/cj/src/
H A Dweb_data_base.cpp34 char password[MAX_PWD_LENGTH + 1] = {0}; in CJGetHttpAuthCredentials() local
37 database->GetHttpAuthCredentials(host, realm, username_s, password, MAX_PWD_LENGTH + 1); in CJGetHttpAuthCredentials()
40 if (username_s.empty() || strlen(password) == 0) { in CJGetHttpAuthCredentials()
60 WEBVIEWLOGI("Webdatabase getHttpAuthCredentials malloc password failed!"); in CJGetHttpAuthCredentials()
65 result[1] = std::char_traits<char>::copy(result[1], password, MAX_PWD_LENGTH); in CJGetHttpAuthCredentials()
66 (void)memset_s(password, MAX_PWD_LENGTH + 1, 0, MAX_PWD_LENGTH + 1); in CJGetHttpAuthCredentials()
73 const std::string &username, const std::string &password) in CJSaveHttpAuthCredentials()
78 database->SaveHttpAuthCredentials(host, realm, username, password.c_str()); in CJSaveHttpAuthCredentials()
72 CJSaveHttpAuthCredentials(const std::string &host, const std::string &realm, const std::string &username, const std::string &password) CJSaveHttpAuthCredentials() argument
/base/web/webview/test/fuzztest/ohos_adapter/distributeddatamgr_adapter/webdatabase/gethttpauthcredentials_fuzzer/
H A Dgethttpauthcredentials_fuzzer.cpp35 char password[maxLen + 1] = { 0 }; in GetHttpAuthCredentialsFuzzTest() local
36 OhosWebDataBaseAdapterImpl::GetInstance().GetHttpAuthCredentials(host, realm, username, password, maxLen + 1); in GetHttpAuthCredentialsFuzzTest()
37 (void)memset_s(password, maxLen + 1, 0, maxLen + 1); in GetHttpAuthCredentialsFuzzTest()
/base/web/webview/ohos_adapter/distributeddatamgr_adapter/webdatabase/src/
H A Dohos_web_data_base_adapter_impl.cpp38 static const std::string HTTPAUTH_PASSWORD_COL = "password";
110 const std::string& username, const char* password) in SaveHttpAuthCredentials()
113 if (host.empty() || username.empty() || password == nullptr) { in SaveHttpAuthCredentials()
122 std::vector<uint8_t> passwordVector(password, password + strlen(password)); in SaveHttpAuthCredentials()
139 std::string& username, char* password, uint32_t passwordSize) in GetHttpAuthCredentials()
141 WVLOG_I("webdatabase get username and password"); in GetHttpAuthCredentials()
142 if (host.empty() || password == nullptr || passwordSize == 0) { in GetHttpAuthCredentials()
170 if (memcpy_s(password, passwordSiz in GetHttpAuthCredentials()
109 SaveHttpAuthCredentials(const std::string& host, const std::string& realm, const std::string& username, const char* password) SaveHttpAuthCredentials() argument
138 GetHttpAuthCredentials(const std::string& host, const std::string& realm, std::string& username, char* password, uint32_t passwordSize) GetHttpAuthCredentials() argument
[all...]
/base/web/webview/interfaces/kits/napi/webdatabase/
H A Dnapi_web_data_base.cpp176 "BusinessError 401: Parameter error. The length of 'password' must be between 0 and 256."); in JsSaveHttpAuthCredentials()
180 char password[bufferSize + 1]; in JsSaveHttpAuthCredentials() local
181 if (!GetCharPara(env, argv[PARAMTHREE], password, bufferSize)) { in JsSaveHttpAuthCredentials()
183 "BusinessError 401: Parameter error. The length of 'password' obtained twice are different"); in JsSaveHttpAuthCredentials()
188 dataBase->SaveHttpAuthCredentials(host, realm, username, password); in JsSaveHttpAuthCredentials()
190 (void)memset_s(password, sizeof(password), 0, sizeof(password)); in JsSaveHttpAuthCredentials()
231 char password[MAX_PWD_LENGTH + 1] = {0}; in JsGetHttpAuthCredentials() local
237 dataBase->GetHttpAuthCredentials(host, realm, username, password, MAX_PWD_LENGT in JsGetHttpAuthCredentials()
[all...]
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_ohos_web_data_base_adapter_impl.cpp35 const ArkWebString& host, const ArkWebString& realm, const ArkWebString& username, const char* password) in SaveHttpAuthCredentials()
38 ArkWebStringStructToClass(username), password); in SaveHttpAuthCredentials() local
42 const ArkWebString& host, const ArkWebString& realm, ArkWebString& username, char* password, uint32_t passwordSize) in GetHttpAuthCredentials()
46 ArkWebStringStructToClass(host), ArkWebStringStructToClass(realm), s_username, password, passwordSize); in GetHttpAuthCredentials() local
34 SaveHttpAuthCredentials( const ArkWebString& host, const ArkWebString& realm, const ArkWebString& username, const char* password) SaveHttpAuthCredentials() argument
41 GetHttpAuthCredentials( const ArkWebString& host, const ArkWebString& realm, ArkWebString& username, char* password, uint32_t passwordSize) GetHttpAuthCredentials() argument
H A Dark_ohos_web_data_base_adapter_impl.h34 const char* password) override;
37 char* password, uint32_t passwordSize) override;
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_data_base_impl.cpp32 ArkWebString& user_name, char* password, uint32_t password_size) in GetHttpAuthCredentials()
36 ArkWebStringStructToClass(host), ArkWebStringStructToClass(realm), cls_user_name, password, password_size); in GetHttpAuthCredentials() local
41 const ArkWebString& host, const ArkWebString& realm, const ArkWebString& user_name, const char* password) in SaveHttpAuthCredentials()
44 ArkWebStringStructToClass(user_name), password); in SaveHttpAuthCredentials() local
31 GetHttpAuthCredentials(const ArkWebString& host, const ArkWebString& realm, ArkWebString& user_name, char* password, uint32_t password_size) GetHttpAuthCredentials() argument
40 SaveHttpAuthCredentials( const ArkWebString& host, const ArkWebString& realm, const ArkWebString& user_name, const char* password) SaveHttpAuthCredentials() argument
H A Dark_web_data_base_impl.h41 * @brief get username and password.
46 * @param password the password.
47 * @param password_size the password array size.
50 char* password, uint32_t password_size) override;
58 * @param password the password.
61 const char* password) override;
/base/customization/enterprise_device_management/common/native/include/plugin_utils/
H A Dwifi_password.h26 char* password = nullptr; member
34 EdmUtils::ClearCharArray(password, passwordSize); in ~WifiPassword()
/base/account/os_account/test/fuzztest/domainaccount_stub/procauthuserstub_fuzzer/
H A Dprocauthuserstub_fuzzer.cpp52 std::vector<uint8_t> password; in ProcAuthUserStubFuzzTest() local
56 password.emplace_back(bit); in ProcAuthUserStubFuzzTest()
70 if (!dataTemp.WriteUInt8Vector(password)) { in ProcAuthUserStubFuzzTest()
/base/account/os_account/test/fuzztest/domainaccount_stub/procauthstub_fuzzer/
H A Dprocauthstub_fuzzer.cpp51 std::vector<uint8_t> password; in ProcAuthStubFuzzTest() local
55 password.emplace_back(bit); in ProcAuthStubFuzzTest()
72 if (!dataTemp.WriteUInt8Vector(password)) { in ProcAuthStubFuzzTest()
/base/web/webview/test/unittest/ohos_adapter/web_data_base_adapter_impl_test/
H A Dweb_data_base_adapter_impl_test.cpp171 char password[maxLength + 1] = {0}; in HWTEST_F() local
174 dataBase.GetHttpAuthCredentials("", TEST_REALME, username, password, maxLength + 1); in HWTEST_F()
175 dataBase.GetHttpAuthCredentials(TEST_HOST, "", username, password, maxLength + 1); in HWTEST_F()
177 dataBase.GetHttpAuthCredentials(TEST_HOST, TEST_REALME, username, password, maxLength + 1); in HWTEST_F()
179 g_dataBaseNull->GetHttpAuthCredentials(TEST_HOST, TEST_REALME, username, password, -1); in HWTEST_F()
180 g_dataBaseNull->GetHttpAuthCredentials(TEST_HOST, TEST_REALME, username, password, maxLength + 1); in HWTEST_F()
182 (void)memset_s(password, maxLength + 1, 0, maxLength + 1); in HWTEST_F()
/base/account/os_account/services/accountmgr/test/unittest/domain_account/
H A Ddomain_account_manager_inner_service_test.cpp555 std::vector<uint8_t> password; in HWTEST_F() local
557 EXPECT_EQ(instance->PluginAuth(info, password, resultParcel), ERR_JS_CAPABILITY_NOT_SUPPORTED); in HWTEST_F()
561 EXPECT_EQ(instance->PluginIsAccountTokenValid(info, password, isVaild), ERR_JS_CAPABILITY_NOT_SUPPORTED); in HWTEST_F()
563 EXPECT_EQ(instance->PluginGetAccessToken(option, password, info, resultParcel), in HWTEST_F()
566 EXPECT_EQ(instance->PluginAuthToken(info, password, resultParcel), ERR_JS_CAPABILITY_NOT_SUPPORTED); in HWTEST_F()
586 std::vector<uint8_t> password; in HWTEST_F() local
604 EXPECT_EQ(instance->PluginAuth(info, password, resultParcel), ERR_ACCOUNT_COMMON_ACCOUNT_NOT_EXIST_ERROR); in HWTEST_F()
607 password.push_back(0); in HWTEST_F()
608 EXPECT_EQ(instance->PluginIsAccountTokenValid(info, password, isVaild), ERR_OK); in HWTEST_F()
609 EXPECT_EQ(instance->PluginGetAccessToken(option, password, inf in HWTEST_F()
631 std::vector<uint8_t> password; HWTEST_F() local
715 std::vector<uint8_t> password; HWMTEST_F() local
[all...]
/base/account/os_account/services/accountmgr/src/domain_account/
H A Ddomain_account_manager_service.cpp84 ErrCode DomainAccountManagerService::Auth(const DomainAccountInfo &info, const std::vector<uint8_t> &password, in Auth() argument
87 return InnerDomainAccountManager::GetInstance().Auth(info, password, callback); in Auth()
90 ErrCode DomainAccountManagerService::AuthUser(int32_t userId, const std::vector<uint8_t> &password, in AuthUser() argument
97 return InnerDomainAccountManager::GetInstance().AuthUser(userId, password, callback); in AuthUser()
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_ohos_web_data_base_adapter_wrapper.cpp41 const std::string& host, const std::string& realm, const std::string& username, const char* password) in SaveHttpAuthCredentials()
49 ctocpp_->SaveHttpAuthCredentials(ark_host, ark_realm, ark_username, password); in SaveHttpAuthCredentials()
56 const std::string& host, const std::string& realm, std::string& username, char* password, uint32_t passwordSize) in GetHttpAuthCredentials()
64 ctocpp_->GetHttpAuthCredentials(ark_host, ark_realm, ark_username, password, passwordSize); in GetHttpAuthCredentials()
40 SaveHttpAuthCredentials( const std::string& host, const std::string& realm, const std::string& username, const char* password) SaveHttpAuthCredentials() argument
55 GetHttpAuthCredentials( const std::string& host, const std::string& realm, std::string& username, char* password, uint32_t passwordSize) GetHttpAuthCredentials() argument
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_data_base_wrapper.cpp32 const std::string& host, const std::string& realm, std::string& user_name, char* password, uint32_t password_size) in GetHttpAuthCredentials()
38 ark_web_data_base_->GetHttpAuthCredentials(stHost, stRealm, stUserName, password, password_size); in GetHttpAuthCredentials()
47 const std::string& host, const std::string& realm, const std::string& user_name, const char* password) in SaveHttpAuthCredentials()
53 ark_web_data_base_->SaveHttpAuthCredentials(stHost, stRealm, stUserName, password); in SaveHttpAuthCredentials()
31 GetHttpAuthCredentials( const std::string& host, const std::string& realm, std::string& user_name, char* password, uint32_t password_size) GetHttpAuthCredentials() argument
46 SaveHttpAuthCredentials( const std::string& host, const std::string& realm, const std::string& user_name, const char* password) SaveHttpAuthCredentials() argument
H A Dark_web_data_base_wrapper.h39 * @brief get username and password.
44 * @param password the password.
45 * @param password_size the password array size.
48 char* password, uint32_t password_size) override;
56 * @param password the password.
59 const std::string& host, const std::string& realm, const std::string& user_name, const char* password) override;
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/
H A Dark_web_data_base.h38 * @brief get username and password.
43 * @param password the password.
44 * @param password_size the password array size.
48 char* password, uint32_t password_size) = 0;
56 * @param password the password.
60 const ArkWebString& host, const ArkWebString& realm, const ArkWebString& user_name, const char* password) = 0;
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/
H A Dark_ohos_web_data_base_adapter.h36 const ArkWebString& host, const ArkWebString& realm, const ArkWebString& username, const char* password) = 0;
40 char* password, uint32_t passwordSize) = 0;
/base/web/webview/ohos_interface/include/ohos_adapter/
H A Dohos_web_data_base_adapter.h35 const std::string& host, const std::string& realm, const std::string& username, const char* password) = 0;
38 char* password, uint32_t passwordSize) = 0;
/base/web/webview/ohos_interface/include/ohos_nweb/
H A Dnweb_data_base.h52 * @param password the password.
55 const std::string& host, const std::string& realm, const std::string& username, const char* password) = 0;
58 * @brief get username and password.
63 * @param password the password.
64 * @param passwordSize the password array size.
67 char* password, uint32_t passwordSize) = 0;
/base/web/webview/ohos_adapter/distributeddatamgr_adapter/webdatabase/include/
H A Dohos_web_data_base_adapter_impl.h49 const std::string& username, const char* password) override;
52 std::string& username, char* password, uint32_t passwordSize) override;
/base/security/crypto_framework/interfaces/inner_api/algorithm_parameter/
H A Ddetailed_pbkdf2_params.h26 HcfBlob password; member

Completed in 9 milliseconds

12345