/system/core/gatekeeperd/tests/ |
D | gatekeeper_test.cpp | 35 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/ |
D | SoftGateKeeper.h | 75 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/ |
D | gatekeeper.h | 90 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/ |
D | nvram_hal_test.cc | 338 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/ |
D | IVold.aidl | 67 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/ |
D | gatekeeper.cpp | 179 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/ |
D | VoldNativeService.h | 89 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);
|
D | VoldNativeService.cpp | 563 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()
|
D | cryptfs.cpp | 230 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/ |
D | Utils.java | 148 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/ |
D | system_app.te | 69 password
|
D | access_vectors | 687 password
|
D | system_server.te | 557 password
|
/system/sepolicy/prebuilts/api/27.0/private/ |
D | system_app.te | 72 password
|
D | access_vectors | 694 password
|
D | system_server.te | 585 password
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | system_app.te | 98 password
|
D | access_vectors | 703 password
|
D | system_server.te | 641 password
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | system_app.te | 117 password
|
D | access_vectors | 720 password
|
/system/sepolicy/private/ |
D | system_app.te | 117 password
|
D | access_vectors | 720 password
|
/system/sepolicy/reqd_mask/ |
D | access_vectors | 720 password
|
/system/security/keystore/ |
D | key_store_service.cpp | 367 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()
|