Home
last modified time | relevance | path

Searched refs:password (Results 1 – 25 of 30) sorted by relevance

12

/system/core/gatekeeperd/tests/
Dgatekeeper_test.cpp35 SizedBuffer password; in do_enroll() local
37 password.buffer.reset(new uint8_t[16]); in do_enroll()
38 password.length = 16; in do_enroll()
39 memset(password.buffer.get(), 0, 16); in do_enroll()
40 EnrollRequest request(0, NULL, &password, NULL); in do_enroll()
54 SizedBuffer password; in TEST() local
57 EnrollRequest request(0, NULL, &password, NULL); in TEST()
127 SizedBuffer password; in TEST() local
128 password.buffer.reset(new uint8_t[16]); in TEST()
129 memset(password.buffer.get(), 1, 16); in TEST()
[all …]
/system/core/gatekeeperd/
DSoftGateKeeper.h75 const uint8_t *, uint32_t, const uint8_t *password, in ComputePasswordSignature() argument
78 crypto_scrypt(password, password_length, reinterpret_cast<uint8_t *>(&salt), in ComputePasswordSignature()
129 fast_hash_t ComputeFastHash(const SizedBuffer &password, uint64_t salt) { in ComputeFastHash() argument
131 size_t digest_size = password.length + sizeof(salt); in ComputeFastHash()
134 memcpy(digest.get() + sizeof(salt), password.buffer.get(), password.length); in ComputeFastHash()
142 bool VerifyFast(const fast_hash_t &fast_hash, const SizedBuffer &password) { in VerifyFast() argument
143 fast_hash_t computed = ComputeFastHash(password, fast_hash.salt); in VerifyFast()
147 bool DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password) { in DoVerify() argument
150 if (it != fast_hash_map_.end() && VerifyFast(it->second, password)) { in DoVerify()
153 if (GateKeeper::DoVerify(expected_handle, password)) { in DoVerify()
[all …]
/system/gatekeeper/include/gatekeeper/
Dgatekeeper.h90 const uint8_t *key, uint32_t key_length, const uint8_t *password,
170 virtual bool DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password);
187 const uint8_t *password, uint32_t password_length);
/system/nvram/hal/tests/
Dnvram_hal_test.cc338 std::string password = "hunter2"; in TEST() local
342 password); in TEST()
347 EXPECT_EQ(NV_RESULT_SUCCESS, device.WriteSpace(kTestIndex1, data, password)); in TEST()
427 std::string password = "hunter2"; in TEST() local
430 password); in TEST()
431 EXPECT_EQ(NV_RESULT_SUCCESS, device.WriteSpace(index, "test", password)); in TEST()
441 EXPECT_EQ(NV_RESULT_SUCCESS, device.ReadSpace(index, 4, password, &data)); in TEST()
446 std::string password = "hunter2"; in TEST() local
449 password); in TEST()
450 ASSERT_EQ(NV_RESULT_SUCCESS, device.WriteSpace(index, "test", password)); in TEST()
[all …]
/system/vold/binder/android/os/
DIVold.aidl67 void fdeCheckPassword(@utf8InCpp String password); in fdeCheckPassword() argument
70 void fdeEnable(int passwordType, @utf8InCpp String password, int encryptionFlags); in fdeEnable() argument
71 void fdeChangePassword(int passwordType, @utf8InCpp String password); in fdeChangePassword() argument
72 void fdeVerifyPassword(@utf8InCpp String password); in fdeVerifyPassword() argument
/system/gatekeeper/
Dgatekeeper.cpp179 secure_id_t user_id, uint64_t flags, uint8_t handle_version, const uint8_t *password, in CreatePasswordHandle() argument
201 memcpy(to_sign.get() + metadata_length, password, password_length); in CreatePasswordHandle()
216 bool GateKeeper::DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password) { in DoVerify() argument
217 if (!password.buffer.get()) return false; in DoVerify()
222 password.buffer.get(), password.length)) { in DoVerify()
/system/vold/
DVoldNativeService.h89 binder::Status fdeCheckPassword(const std::string& password);
92 binder::Status fdeEnable(int32_t passwordType, const std::string& password,
94 binder::Status fdeChangePassword(int32_t passwordType, const std::string& password);
95 binder::Status fdeVerifyPassword(const std::string& password);
DVoldNativeService.cpp563 binder::Status VoldNativeService::fdeCheckPassword(const std::string& password) { in fdeCheckPassword() argument
567 return translate(cryptfs_check_passwd(password.c_str())); in fdeCheckPassword()
588 static int fdeEnableInternal(int32_t passwordType, const std::string& password, in fdeEnableInternal() argument
597 rc = cryptfs_enable(passwordType, password.c_str(), noUi); in fdeEnableInternal()
610 binder::Status VoldNativeService::fdeEnable(int32_t passwordType, const std::string& password, in fdeEnable() argument
624 std::thread(&fdeEnableInternal, passwordType, password, encryptionFlags).detach(); in fdeEnable()
629 const std::string& password) { in fdeChangePassword() argument
633 return translate(cryptfs_changepw(passwordType, password.c_str())); in fdeChangePassword()
636 binder::Status VoldNativeService::fdeVerifyPassword(const std::string& password) { in fdeVerifyPassword() argument
640 return translate(cryptfs_verify_passwd(password.c_str())); in fdeVerifyPassword()
Dcryptfs.cpp230 static char* password = 0; variable
1998 password = strdup(passwd); in cryptfs_check_passwd()
2907 return password; in cryptfs_get_password()
2915 if (password) { in cryptfs_clear_password()
2916 size_t len = strlen(password); in cryptfs_clear_password()
2917 memset(password, 0, len); in cryptfs_clear_password()
2918 free(password); in cryptfs_clear_password()
2919 password = 0; in cryptfs_clear_password()
/system/extras/verity/
DUtils.java148 char[] password = System.console().readPassword("Password for the private key file: "); in decryptPrivateKey() local
151 Key key = skFactory.generateSecret(new PBEKeySpec(password)); in decryptPrivateKey()
152 Arrays.fill(password, '\0'); in decryptPrivateKey()
/system/sepolicy/prebuilts/api/26.0/private/
Dsystem_app.te69 password
Daccess_vectors687 password
Dsystem_server.te557 password
/system/sepolicy/prebuilts/api/27.0/private/
Dsystem_app.te72 password
Daccess_vectors694 password
Dsystem_server.te585 password
/system/sepolicy/prebuilts/api/28.0/private/
Dsystem_app.te98 password
Daccess_vectors703 password
Dsystem_server.te641 password
/system/sepolicy/prebuilts/api/29.0/private/
Dsystem_app.te117 password
Daccess_vectors720 password
/system/sepolicy/private/
Dsystem_app.te117 password
Daccess_vectors720 password
/system/sepolicy/reqd_mask/
Daccess_vectors720 password
/system/security/keystore/
Dkey_store_service.cpp367 Status KeyStoreService::onUserPasswordChanged(int32_t userId, const String16& password, in onUserPasswordChanged() argument
375 if (password.size() == 0) { in onUserPasswordChanged()
381 const String8 password8(password); in onUserPasswordChanged()

12