Update password check for WAPI

Do not allow arbitrarily large passwords.

Bug: 275339978

Merged-In: I15f3aff373af56c253a50c308d886a7acf661e59
Change-Id: I15f3aff373af56c253a50c308d886a7acf661e59
Test: compile
(cherry picked from commit 38707fb4ff1405663cc24affc95244f4cc830499)
2 files changed