aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/test_vectors.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-01-23 15:24:24 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-24 17:37:42 (GMT)
commitcb80fadaa7374a9ab8191d0ac45f3cb5e7ddcca4 (patch)
tree3cc0a41eb58804a1c6ee9a2cf8e5fcc814474ddd /wlantest/test_vectors.c
parent30bff1d0f43799835e12276866450786bbf594e1 (diff)
downloadhostap-cb80fadaa7374a9ab8191d0ac45f3cb5e7ddcca4.zip
hostap-cb80fadaa7374a9ab8191d0ac45f3cb5e7ddcca4.tar.gz
hostap-cb80fadaa7374a9ab8191d0ac45f3cb5e7ddcca4.tar.bz2
wlantest: Extend BIP support to cover BIP-CMAC-256
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wlantest/test_vectors.c')
-rw-r--r--wlantest/test_vectors.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wlantest/test_vectors.c b/wlantest/test_vectors.c
index 0800db7..321d930 100644
--- a/wlantest/test_vectors.c
+++ b/wlantest/test_vectors.c
@@ -159,7 +159,8 @@ static void test_vector_bip(void)
wpa_hexdump(MSG_INFO, "IPN", ipn, sizeof(ipn));
wpa_hexdump(MSG_INFO, "Plaintext frame", frame, sizeof(frame));
- prot = bip_protect(igtk, frame, sizeof(frame), ipn, 4, &prot_len);
+ prot = bip_protect(igtk, sizeof(igtk), frame, sizeof(frame),
+ ipn, 4, &prot_len);
if (prot == NULL) {
wpa_printf(MSG_ERROR, "Failed to protect BIP frame");
return;