Lines Matching refs:keydatalen
1305 int key_info, keylen, keydatalen, maxkeylen, keyidx, key_rsc_len = 0; in wpa_supplicant_process_1_of_2() local
1316 keydatalen = BE_16(key->key_data_length); in wpa_supplicant_process_1_of_2()
1320 uint8_t *end = pos + keydatalen; in wpa_supplicant_process_1_of_2()
1356 maxkeylen = keydatalen; in wpa_supplicant_process_1_of_2()
1357 if (keydatalen > extra_len) { in wpa_supplicant_process_1_of_2()
1360 keydatalen, extra_len); in wpa_supplicant_process_1_of_2()
1426 rc4_skip(ek, 32, 256, (uint8_t *)(key + 1), keydatalen); in wpa_supplicant_process_1_of_2()
1429 if (keydatalen % 8) { in wpa_supplicant_process_1_of_2()
1431 "AES-WRAP len %d", keydatalen); in wpa_supplicant_process_1_of_2()
1582 int keydatalen = BE_16(key->key_data_length); in wpa_supplicant_decrypt_key_data() local
1585 (uint8_t *)(key + 1), keydatalen); in wpa_supplicant_decrypt_key_data()
1600 rc4_skip(ek, 32, 256, (uint8_t *)(key + 1), keydatalen); in wpa_supplicant_decrypt_key_data()
1603 if (keydatalen % 8) { in wpa_supplicant_decrypt_key_data()
1605 "AES-WRAP len %d", keydatalen); in wpa_supplicant_decrypt_key_data()
1608 keydatalen -= 8; /* AES-WRAP adds 8 bytes */ in wpa_supplicant_decrypt_key_data()
1609 buf = malloc(keydatalen); in wpa_supplicant_decrypt_key_data()
1615 if (aes_unwrap(wpa_s->ptk.encr_key, keydatalen / 8, in wpa_supplicant_decrypt_key_data()
1622 (void) memcpy(key + 1, buf, keydatalen); in wpa_supplicant_decrypt_key_data()
1624 key->key_data_length = BE_16(keydatalen); in wpa_supplicant_decrypt_key_data()
1627 (uint8_t *)(key + 1), keydatalen); in wpa_supplicant_decrypt_key_data()