Home | History | Annotate | Download | only in wifi

Lines Matching refs:psk

107      * Helper method to check if the provided |config| corresponds to a PSK network or not.
318 private static boolean validatePsk(String psk, boolean isAdd) {
320 if (psk == null) {
325 if (psk == null) {
326 // This is an update, so the psk can be null if that is not being changed.
328 } else if (psk.equals(PASSWORD_MASK)) {
334 if (psk.isEmpty()) {
338 if (psk.startsWith("\"")) {
339 // ASCII PSK string
340 byte[] pskBytes = psk.getBytes(StandardCharsets.US_ASCII);
350 // HEX PSK string
351 if (psk.length() != PSK_HEX_LEN) {
352 Log.e(TAG, "validatePsk failed: hex string size mismatch: " + psk.length());
357 NativeUtil.hexOrQuotedStringToBytes(psk);
359 Log.e(TAG, "validatePsk failed: malformed string: " + psk);
423 Log.e(TAG, "validateKeyMgmt failed: not PSK or 8021X");