Lines Matching defs:keylen
1112 int key_info, ie_len = 0, keylen, gtk_len = 0;
1184 keylen = BE_16(key->key_length);
1187 if (keylen != 16) {
1190 keylen, MAC2STR(src_addr));
1195 if (keylen != 32) {
1198 keylen, MAC2STR(src_addr));
1249 int alg, keylen, rsclen;
1254 keylen = 16;
1259 keylen = 32;
1280 (uint8_t *)&wpa_s->ptk.tk1, keylen) < 0) {
1305 int key_info, keylen, keydatalen, maxkeylen, keyidx, key_rsc_len = 0;
1353 maxkeylen = keylen = gtk_ie_len - 2;
1355 keylen = BE_16(key->key_length);
1369 if (keylen != 16 || maxkeylen < 16) {
1371 "Cipher key length %d (%d).", keylen, maxkeylen);
1378 if (keylen != 32 || maxkeylen < 32) {
1380 "Cipher key length %d (%d).", keylen, maxkeylen);
1387 if (keylen != 13 || maxkeylen < 13) {
1389 " Cipher key length %d (%d).", keylen, maxkeylen);
1395 if (keylen != 5 || maxkeylen < 5) {
1397 "Cipher key length %d (%d).", keylen, maxkeylen);
1427 (void) memcpy(gtk, key + 1, keylen);
1456 wpa_hexdump(MSG_DEBUG, "WPA: Group Key", gtk, keylen);
1472 key_rsc_len, gtk, keylen) < 0)
1479 gtk, keylen) < 0) {