Lines Matching full:sec
26 int sec, j; in main() local
44 "usage: sae_pk_gen <DER ECPrivateKey file> <Sec:3|5> <SSID>\n"); in main()
48 sec = atoi(argv[2]); in main()
49 if (sec != 3 && sec != 5) { in main()
51 "Invalid Sec value (allowed values: 3 and 5)\n"); in main()
54 sec_1b = sec == 3; in main()
56 for (j = 0; j < sec; j++) in main()
118 for (j = 2; j < sec; j++) { in main()
122 if (j == sec) in main()
145 /* Skip 8*Sec bits and add Sec_1b as the every 20th bit starting with in main()
150 val20 = sae_pk_get_be19(hash + sec); in main()
152 sae_pk_buf_shift_left_19(hash + sec, hash_len - sec); in main()
166 pw_base_bin, hash_len - sec) >= 0) in main()
174 printf("# SAE-PK password/M/private key for Sec=%d.\n", sec); in main()
177 for (j = 4; j <= ((int) hash_len * 8 + 5 - 8 * sec) / 19; j++) { in main()