Lines Matching refs:auth
198 const android::vold::KeyAuthentication& auth, in read_and_fixate_user_ce_key() argument
204 if (retrieveKey(ce_key_path, auth, ce_key)) { in read_and_fixate_user_ce_key()
293 const android::vold::KeyAuthentication& auth) { in read_and_install_user_ce_key() argument
298 if (!read_and_fixate_user_ce_key(user_id, auth, &ce_key)) return false; in read_and_install_user_ce_key()
660 android::vold::KeyAuthentication auth(secdiscardable_hash); in read_or_create_volkey() local
665 if (!retrieveOrGenerateKey(key_path, key_path + "_tmp", auth, makeGen(options), &key)) in read_or_create_volkey()
706 auto auth = authentication_from_hex(secret_hex); in fscrypt_add_user_key_auth() local
707 if (!auth) return false; in fscrypt_add_user_key_auth()
708 return fscrypt_rewrap_user_key(user_id, serial, kEmptyAuthentication, *auth); in fscrypt_add_user_key_auth()
714 auto auth = authentication_from_hex(secret_hex); in fscrypt_clear_user_key_auth() local
715 if (!auth) return false; in fscrypt_clear_user_key_auth()
716 return fscrypt_rewrap_user_key(user_id, serial, *auth, kEmptyAuthentication); in fscrypt_clear_user_key_auth()
749 auto auth = authentication_from_hex(secret_hex); in fscrypt_unlock_user_key() local
750 if (!auth) return false; in fscrypt_unlock_user_key()
751 if (!read_and_install_user_ce_key(user_id, *auth)) { in fscrypt_unlock_user_key()