Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching defs:passphrase

2  * WPA Supplicant - ASCII passphrase to WPA PSK tool
19 char *ssid, *passphrase, buf[64], *pos;
23 printf("usage: wpa_passphrase <ssid> [passphrase]\n"
24 "\nIf passphrase is left out, it will be read from "
32 passphrase = argv[2];
34 printf("# reading passphrase from stdin\n");
36 printf("Failed to read passphrase\n");
48 passphrase = buf;
51 len = os_strlen(passphrase);
53 printf("Passphrase must be 8..63 characters\n");
56 if (has_ctrl_char((u8 *) passphrase, len)) {
57 printf("Invalid passphrase character\n");
61 pbkdf2_sha1(passphrase, (u8 *) ssid, os_strlen(ssid), 4096, psk, 32);
65 printf("\t#psk=\"%s\"\n", passphrase);