Home
last modified time | relevance | path

Searched refs:password (Results 1 – 25 of 44) 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/vold/binder/android/os/
DIVold.aidl64 void fdeCheckPassword(@utf8InCpp String password); in fdeCheckPassword() argument
67 void fdeEnable(int passwordType, @utf8InCpp String password, int encryptionFlags); in fdeEnable() argument
68 void fdeChangePassword(int passwordType, @utf8InCpp String password); in fdeChangePassword() argument
69 void fdeVerifyPassword(@utf8InCpp String password); in fdeVerifyPassword() argument
/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/tpm/tpm_manager/server/
Dtpm2_initializer_test.cc108 std::string password = "hunter2"; in TEST_F() local
112 DoAll(SetArgPointee<2>(password), Return(trunks::TPM_RC_SUCCESS))); in TEST_F()
117 EXPECT_EQ(password, fake_local_data_.owner_password()); in TEST_F()
118 EXPECT_EQ(password, fake_local_data_.endorsement_password()); in TEST_F()
119 EXPECT_EQ(password, fake_local_data_.lockout_password()); in TEST_F()
/system/gatekeeper/
Dgatekeeper.cpp170 secure_id_t user_id, uint64_t flags, uint8_t handle_version, const uint8_t *password, in CreatePasswordHandle() argument
192 memcpy(to_sign.get() + metadata_length, password, password_length); in CreatePasswordHandle()
207 bool GateKeeper::DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password) { in DoVerify() argument
208 if (!password.buffer.get()) return false; in DoVerify()
213 password.buffer.get(), password.length)) { in DoVerify()
/system/tpm/trunks/
Dpassword_authorization_delegate.cc28 const std::string& password) { in PasswordAuthorizationDelegate() argument
29 password_ = Make_TPM2B_DIGEST(password); in PasswordAuthorizationDelegate()
Dtrunks_factory_impl.cc83 TrunksFactoryImpl::GetPasswordAuthorization(const std::string& password) const { in GetPasswordAuthorization()
84 return base::MakeUnique<PasswordAuthorizationDelegate>(password); in GetPasswordAuthorization()
Dpassword_authorization_delegate.h38 explicit PasswordAuthorizationDelegate(const std::string& password);
Dtrunks_factory.h58 const std::string& password) const = 0;
Dtpm_utility_impl.h94 const std::string& password,
100 const std::string& password,
187 const std::string& password,
Dtrunks_factory_impl.h58 const std::string& password) const override;
Dtpm_utility_test.cc581 std::string password("password"); in TEST_F() local
607 std::string password; in TEST_F() local
645 std::string password; in TEST_F() local
656 std::string password; in TEST_F() local
684 std::string password; in TEST_F() local
708 std::string password("password"); in TEST_F() local
734 std::string password; in TEST_F() local
754 std::string password; in TEST_F() local
770 std::string password; in TEST_F() local
780 std::string password; in TEST_F() local
[all …]
Dtrunks_factory_for_test.cc218 const std::string& password, in ImportRSAKey() argument
222 prime_factor, password, delegate, key_blob); in ImportRSAKey()
228 const std::string& password, in CreateRSAKeyPair() argument
236 key_type, modulus_bits, public_exponent, password, policy_digest, in CreateRSAKeyPair()
571 const std::string& password) const { in GetPasswordAuthorization()
Dtpm_utility.h180 const std::string& password,
202 const std::string& password,
Dtrunks_factory_for_test.h68 const std::string& password) const override;
/system/tpm/tpm_manager/client/
Dmain.cc379 const std::string& password, in HandleDefineSpace() argument
404 request.set_authorization_value(crypto::SHA256HashString(password)); in HandleDefineSpace()
421 const std::string& password, in HandleWriteSpace() argument
432 request.set_authorization_value(crypto::SHA256HashString(password)); in HandleWriteSpace()
450 const std::string& password, in HandleReadSpace() argument
454 request.set_authorization_value(crypto::SHA256HashString(password)); in HandleReadSpace()
464 const std::string& password, in HandleLockSpace() argument
470 request.set_authorization_value(crypto::SHA256HashString(password)); in HandleLockSpace()
/system/vold/
DVoldNativeService.h79 binder::Status fdeCheckPassword(const std::string& password);
83 const std::string& password, int32_t encryptionFlags);
85 const std::string& password);
86 binder::Status fdeVerifyPassword(const std::string& password);
DVoldNativeService.cpp518 binder::Status VoldNativeService::fdeCheckPassword(const std::string& password) { in fdeCheckPassword() argument
522 return translate(cryptfs_check_passwd(password.c_str())); in fdeCheckPassword()
543 static int fdeEnableInternal(int32_t passwordType, const std::string& password, in fdeEnableInternal() argument
552 rc = cryptfs_enable(passwordType, password.c_str(), noUi); in fdeEnableInternal()
566 const std::string& password, int32_t encryptionFlags) { in fdeEnable() argument
579 std::thread(&fdeEnableInternal, passwordType, password, encryptionFlags).detach(); in fdeEnable()
584 const std::string& password) { in fdeChangePassword() argument
588 return translate(cryptfs_changepw(passwordType, password.c_str())); in fdeChangePassword()
591 binder::Status VoldNativeService::fdeVerifyPassword(const std::string& password) { in fdeVerifyPassword() argument
595 return translate(cryptfs_verify_passwd(password.c_str())); in fdeVerifyPassword()
Dcryptfs.cpp224 static char* password = 0; variable
1990 password = strdup(passwd); in cryptfs_check_passwd()
2926 return password; in cryptfs_get_password()
2935 if (password) { in cryptfs_clear_password()
2936 size_t len = strlen(password); in cryptfs_clear_password()
2937 memset(password, 0, len); in cryptfs_clear_password()
2938 free(password); in cryptfs_clear_password()
2939 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/tpm/tpm_manager/common/
Dtpm_manager.proto111 // the owner password (like Attestation, InstallAttributes and BootLockbox).
112 // when all the clients have the owner password injected, this protobuf is
212 // Local TPM management data (including the owner password if available).
/system/sepolicy/prebuilts/api/26.0/private/
Dsystem_app.te69 password
/system/sepolicy/prebuilts/api/27.0/private/
Dsystem_app.te72 password

12