Lines Matching refs:auth
191 const android::vold::KeyAuthentication& auth, in read_and_fixate_user_ce_key() argument
197 if (retrieveKey(ce_key_path, auth, ce_key)) { in read_and_fixate_user_ce_key()
287 const android::vold::KeyAuthentication& auth) { in read_and_install_user_ce_key() argument
292 if (!read_and_fixate_user_ce_key(user_id, auth, &ce_key)) return false; in read_and_install_user_ce_key()
661 android::vold::KeyAuthentication auth("", secdiscardable_hash); in read_or_create_volkey() local
666 if (!retrieveOrGenerateKey(key_path, key_path + "_tmp", auth, makeGen(options), &key)) in read_or_create_volkey()
710 auto auth = authentication_from_hex(token_hex, secret_hex); in fscrypt_add_user_key_auth() local
711 if (!auth) return false; in fscrypt_add_user_key_auth()
712 return fscrypt_rewrap_user_key(user_id, serial, kEmptyAuthentication, *auth); in fscrypt_add_user_key_auth()
720 auto auth = authentication_from_hex(token_hex, secret_hex); in fscrypt_clear_user_key_auth() local
721 if (!auth) return false; in fscrypt_clear_user_key_auth()
722 return fscrypt_rewrap_user_key(user_id, serial, *auth, kEmptyAuthentication); in fscrypt_clear_user_key_auth()
749 auto auth = authentication_from_hex(token_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()