Lines Matching refs:frame

27 	u8 frame[] = {  in test_vector_tkip()  local
54 wpa_hexdump(MSG_INFO, "Plaintext MPDU", frame, sizeof(frame)); in test_vector_tkip()
56 enc = tkip_encrypt(tk, frame, sizeof(frame), 24, NULL, pn, 0, &enc_len); in test_vector_tkip()
75 if (plain_len != sizeof(frame) - 24 || in test_vector_tkip()
76 os_memcmp(plain, frame + 24, plain_len) != 0) { in test_vector_tkip()
90 u8 frame[] = { in test_vector_ccmp() local
107 wpa_hexdump(MSG_INFO, "802.11 Header", frame, 24); in test_vector_ccmp()
108 wpa_hexdump(MSG_INFO, "Plaintext Data", frame + 24, sizeof(frame) - 24); in test_vector_ccmp()
110 enc = ccmp_encrypt(tk, frame, sizeof(frame), 24, NULL, NULL, NULL, NULL, in test_vector_ccmp()
133 if (plain_len != sizeof(frame) - 24 || in test_vector_ccmp()
134 os_memcmp(plain, frame + 24, plain_len) != 0) { in test_vector_ccmp()
354 u8 frame[] = { in test_vector_bip() local
368 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip()
370 prot = bip_protect(igtk, sizeof(igtk), frame, sizeof(frame), in test_vector_bip()
394 const u8 frame[] = { in test_vector_bip_s1g_beacon() local
408 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_s1g_beacon()
410 prot = bip_protect_s1g_beacon(igtk, sizeof(igtk), frame, sizeof(frame), in test_vector_bip_s1g_beacon()
434 const u8 frame[] = { in test_vector_bip_s1g_beacon_ext() local
447 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_s1g_beacon_ext()
449 prot = bip_protect_s1g_beacon(igtk, sizeof(igtk), frame, sizeof(frame), in test_vector_bip_s1g_beacon_ext()
474 const u8 frame[] = { in test_vector_bip_s1g_beacon_bce() local
488 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_s1g_beacon_bce()
490 prot = bip_protect_s1g_beacon(igtk, sizeof(igtk), frame, sizeof(frame), in test_vector_bip_s1g_beacon_bce()
514 const u8 frame[] = { in test_vector_bip_s1g_beacon_bce_ext() local
527 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_s1g_beacon_bce_ext()
529 prot = bip_protect_s1g_beacon(igtk, sizeof(igtk), frame, sizeof(frame), in test_vector_bip_s1g_beacon_bce_ext()
547 u8 frame[] = { in test_vector_ccmp_mgmt() local
561 wpa_hexdump(MSG_INFO, "802.11 Header", frame, 24); in test_vector_ccmp_mgmt()
562 wpa_hexdump(MSG_INFO, "Plaintext Data", frame + 24, sizeof(frame) - 24); in test_vector_ccmp_mgmt()
564 enc = ccmp_encrypt(tk, frame, sizeof(frame), 24, NULL, NULL, NULL, NULL, in test_vector_ccmp_mgmt()
585 if (plain_len != sizeof(frame) - 24 || in test_vector_ccmp_mgmt()
586 os_memcmp(plain, frame + 24, plain_len) != 0) { in test_vector_ccmp_mgmt()
598 u8 frame[300]; member
611 .frame = {
693 .frame = {
734 wpa_hexdump(MSG_INFO, "802.11 Header", vector->frame, vector->hdr_len); in run_gcmp()
736 vector->frame + vector->hdr_len, in run_gcmp()
740 vector->frame, in run_gcmp()
744 vector->frame + vector->hdr_len - 2 : NULL, in run_gcmp()
781 os_memcmp(plain, vector->frame + vector->hdr_len, plain_len) != 0) { in run_gcmp()
817 u8 frame[] = { in test_vector_gcmp_256() local
851 wpa_hexdump(MSG_INFO, "802.11 Header", frame, 26); in test_vector_gcmp_256()
852 wpa_hexdump(MSG_INFO, "Plaintext Data", frame + 26, sizeof(frame) - 26); in test_vector_gcmp_256()
854 enc = gcmp_encrypt(tk, sizeof(tk), frame, sizeof(frame), 26, frame + 24, in test_vector_gcmp_256()
881 if (plain_len != sizeof(frame) - 26 || in test_vector_gcmp_256()
882 os_memcmp(plain, frame + 26, plain_len) != 0) { in test_vector_gcmp_256()
901 u8 frame[] = { in test_vector_ccmp_256() local
930 wpa_hexdump(MSG_INFO, "802.11 Header", frame, 24); in test_vector_ccmp_256()
931 wpa_hexdump(MSG_INFO, "Plaintext Data", frame + 24, sizeof(frame) - 24); in test_vector_ccmp_256()
933 enc = ccmp_256_encrypt(tk, frame, sizeof(frame), 24, NULL, NULL, NULL, in test_vector_ccmp_256()
960 if (plain_len != sizeof(frame) - 24 || in test_vector_ccmp_256()
961 os_memcmp(plain, frame + 24, plain_len) != 0) { in test_vector_ccmp_256()
980 u8 frame[] = { in test_vector_bip_gmac_128() local
1004 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_gmac_128()
1006 prot = bip_gmac_protect(igtk, sizeof(igtk), frame, sizeof(frame), in test_vector_bip_gmac_128()
1031 const u8 frame[] = { in test_vector_bip_gmac_128_s1g_beacon() local
1055 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_gmac_128_s1g_beacon()
1057 prot = bip_gmac_protect_s1g_beacon(igtk, sizeof(igtk), frame, in test_vector_bip_gmac_128_s1g_beacon()
1058 sizeof(frame), ipn, 6, false, in test_vector_bip_gmac_128_s1g_beacon()
1085 const u8 frame[] = { in test_vector_bip_gmac_128_s1g_beacon_ext() local
1108 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_gmac_128_s1g_beacon_ext()
1110 prot = bip_gmac_protect_s1g_beacon(igtk, sizeof(igtk), frame, in test_vector_bip_gmac_128_s1g_beacon_ext()
1111 sizeof(frame), ipn, 7, false, in test_vector_bip_gmac_128_s1g_beacon_ext()
1138 const u8 frame[] = { in test_vector_bip_gmac_128_s1g_beacon_bce() local
1161 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_gmac_128_s1g_beacon_bce()
1163 prot = bip_gmac_protect_s1g_beacon(igtk, sizeof(igtk), frame, in test_vector_bip_gmac_128_s1g_beacon_bce()
1164 sizeof(frame), ipn, 6, true, in test_vector_bip_gmac_128_s1g_beacon_bce()
1191 const u8 frame[] = { in test_vector_bip_gmac_128_s1g_beacon_bce_ext() local
1213 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_gmac_128_s1g_beacon_bce_ext()
1215 prot = bip_gmac_protect_s1g_beacon(igtk, sizeof(igtk), frame, in test_vector_bip_gmac_128_s1g_beacon_bce_ext()
1216 sizeof(frame), ipn, 7, true, in test_vector_bip_gmac_128_s1g_beacon_bce_ext()
1245 u8 frame[] = { in test_vector_bip_gmac_256() local
1268 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_gmac_256()
1270 prot = bip_gmac_protect(igtk, sizeof(igtk), frame, sizeof(frame), in test_vector_bip_gmac_256()
1297 const u8 frame[] = { in test_vector_bip_gmac_256_s1g_beacon() local
1321 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_gmac_256_s1g_beacon()
1323 prot = bip_gmac_protect_s1g_beacon(igtk, sizeof(igtk), frame, in test_vector_bip_gmac_256_s1g_beacon()
1324 sizeof(frame), ipn, 7, false, in test_vector_bip_gmac_256_s1g_beacon()
1353 const u8 frame[] = { in test_vector_bip_gmac_256_s1g_beacon_ext() local
1376 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_gmac_256_s1g_beacon_ext()
1378 prot = bip_gmac_protect_s1g_beacon(igtk, sizeof(igtk), frame, in test_vector_bip_gmac_256_s1g_beacon_ext()
1379 sizeof(frame), ipn, 6, false, in test_vector_bip_gmac_256_s1g_beacon_ext()
1408 const u8 frame[] = { in test_vector_bip_gmac_256_s1g_beacon_bce() local
1431 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_gmac_256_s1g_beacon_bce()
1433 prot = bip_gmac_protect_s1g_beacon(igtk, sizeof(igtk), frame, in test_vector_bip_gmac_256_s1g_beacon_bce()
1434 sizeof(frame), ipn, 7, true, in test_vector_bip_gmac_256_s1g_beacon_bce()
1463 const u8 frame[] = { in test_vector_bip_gmac_256_s1g_beacon_bce_ext() local
1485 wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame)); in test_vector_bip_gmac_256_s1g_beacon_bce_ext()
1487 prot = bip_gmac_protect_s1g_beacon(igtk, sizeof(igtk), frame, in test_vector_bip_gmac_256_s1g_beacon_bce_ext()
1488 sizeof(frame), ipn, 6, true, in test_vector_bip_gmac_256_s1g_beacon_bce_ext()