3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 03:32:42 +01:00
Commit Graph

132 Commits

Author SHA1 Message Date
Andrew Zaborowski
30c277f8d6 unit: GTK Handshake tests. 2015-05-05 21:39:19 -05:00
Andrew Zaborowski
eae718091d unit: Update to new eapol API 2015-05-05 21:36:52 -05:00
Andrew Zaborowski
bb2be272ae unit: Assert eapol_key_validate is valid first
Before running eapol_verify_ptk_2_of_4, assert that eapol_key_validate
did not return NULL.
2015-05-05 21:35:02 -05:00
Denis Kenzior
b044385cdc unit: Update to the new EAPoL API 2015-03-19 23:57:37 -05:00
Denis Kenzior
d6d24c9d15 unit: Update to the new eapol API 2015-03-19 23:57:36 -05:00
Denis Kenzior
effe260028 unit: update to the new eapol API 2015-03-19 23:57:36 -05:00
Denis Kenzior
0a8c1e8aa6 unit: Update to the new API 2015-03-19 20:32:09 -05:00
Ravi kumar Veeramally
c573abf3f3 unit: Unit tests for vendor specific IE 2015-03-16 12:17:07 -05:00
Denis Kenzior
b43a4610f7 unit: Add setting of AP RSNE 2015-02-24 22:15:30 -06:00
Denis Kenzior
63718343e5 unit: Track the decrypted_key_data_size 2015-02-24 16:00:27 -06:00
Denis Kenzior
95e8c854a5 unit: Fix unused variable warning 2015-02-24 12:09:37 -06:00
Denis Kenzior
5fb648d9fc unit: Add EAPoL state machine test 2015-02-24 11:14:31 -06:00
Denis Kenzior
9c65772551 unit: Fix verification of MIC 2015-02-24 10:43:05 -06:00
Denis Kenzior
cdfa59227a unit: Update to the new API 2015-02-23 15:43:35 -06:00
Denis Kenzior
1326f7ab61 unit: Call eapol_verify_mic 2015-02-18 21:13:20 -06:00
Denis Kenzior
3c7bfe9e77 unit: Update includes 2015-02-18 21:12:45 -06:00
Denis Kenzior
da5812c0a6 unit: Remove unneeded lines 2015-02-18 21:09:48 -06:00
Denis Kenzior
a9ba927eb0 unit: Update includes 2015-02-18 21:02:29 -06:00
Denis Kenzior
7168376c8e unit: Update include 2015-02-18 20:56:57 -06:00
Denis Kenzior
cefff31273 unit: Update include 2015-02-18 20:50:58 -06:00
Denis Kenzior
57c51a2e12 unit: Decrypt key data and verify RSN is present 2015-02-17 17:41:08 -06:00
Denis Kenzior
d8931f5b58 unit: Remove unneeded function 2015-02-17 17:40:55 -06:00
Denis Kenzior
f641fbffb0 unit: Add test-arc4 and populate arc4_skip tests 2015-02-17 16:53:15 -06:00
Denis Kenzior
9fee4a3422 unit: Remove unneeded hexdumps 2015-02-13 20:41:21 -06:00
Denis Kenzior
a1d00805a4 unit: Excercise eapol_verify_ptk_4_of_4 2015-02-13 18:38:29 -06:00
Denis Kenzior
190dbd335d unit: Utilize eapol_verify_ptk_3_of_4 2015-02-13 16:50:29 -06:00
Denis Kenzior
8b3b95e889 unit: Update to the new API 2015-02-13 16:09:45 -06:00
Denis Kenzior
729d2d7f2c unit: make sure that MIC calculation succeeds 2015-02-13 14:24:12 -06:00
Denis Kenzior
11de45fa4d unit: Handle key_replay_counter as a uint64_t 2015-02-13 13:55:05 -06:00
Denis Kenzior
bacd459caf unit: Add EAPoL WPA2 Step 4 of 4 Frame 2015-02-13 13:49:02 -06:00
Denis Kenzior
3058ee3fd1 unit: Add EAPoL WPA2 Step 3 of 4 Frame 2015-02-13 13:48:51 -06:00
Denis Kenzior
90877476e6 unit: Better describe test data 2015-02-12 22:04:09 -06:00
Denis Kenzior
bcedd58249 unit: Add ie RSNE Builder test
This particular set of tests makes sure we can build the compact forms
of RSNE.  The test data are the most compact versions of the RSNE IE
examples found in 802.11, Section 8.4.2.27.1
2015-02-03 21:45:45 -06:00
Denis Kenzior
25d6dba008 unit: Rework unit test 2015-01-28 21:23:16 -06:00
Denis Kenzior
3b618172e2 unit: Remove unneeded whitespace 2015-01-28 21:23:16 -06:00
Jukka Rissanen
f7efdeb5e2 unit: Add checking of SSID security settings 2015-01-28 14:15:14 -06:00
Tomasz Bursztyka
33ab01f669 unit: Update to the new eapol_key_validate API
eapol_key_validate will directly return a const pointer if the
validation succeeds.
2015-01-22 12:20:19 -06:00
Tomasz Bursztyka
8fba847b9d unit: Update to the new mpdu_validate API
mpdu_validate will directly return a const pointer if the validation
succeeds.
2015-01-22 12:16:33 -06:00
Denis Kenzior
3b3de7923a unit: Add checking of Group Management Cipher 2015-01-20 00:31:13 -06:00
Denis Kenzior
d7cd5dbae7 unit: Add checking of PMKIDs in RSNE tests 2015-01-19 23:27:41 -06:00
Denis Kenzior
c2a2f29606 unit: Add Capability field comparisons 2015-01-15 23:59:19 -06:00
Denis Kenzior
c8fb0b21f1 unit: Add test case #6 for RSNE parser 2015-01-15 23:59:18 -06:00
Denis Kenzior
7dd7ff7094 unit: Add test case #5 for RSNE parser 2015-01-15 23:59:18 -06:00
Denis Kenzior
f8a051794a unit: Add test case #4 for RSNE parser 2015-01-15 23:59:18 -06:00
Denis Kenzior
c71b70863c unit: Add test case #3 for RSNE parser 2015-01-15 23:59:18 -06:00
Denis Kenzior
a01ecd64fa unit: Add test case #2 for RSNE parser 2015-01-15 23:59:18 -06:00
Denis Kenzior
693260befe unit: Add test case for RSNE parser 2015-01-15 23:59:18 -06:00
Denis Kenzior
8b3ec52c09 unit: Fix memory leaks 2014-12-27 23:49:03 -06:00
Denis Kenzior
9ab468b1c0 unit: Fix memory leak 2014-12-27 23:36:12 -06:00
Denis Kenzior
04efa8fd0b unit: Add 2 steps of 4-way handshake test 2014-12-27 23:06:14 -06:00
Denis Kenzior
812a55177c unit: Add eapol_calculate_mic test 2014-12-27 23:06:12 -06:00
Denis Kenzior
da56653f1f unit: Remove hexdumps 2014-12-27 23:04:14 -06:00
Denis Kenzior
7be2fe7cc8 unit: Add MIC calculation test 2014-12-27 22:34:40 -06:00
Denis Kenzior
9ebafd2599 unit: Add another PTK derivation test 2014-12-27 22:34:40 -06:00
Denis Kenzior
ebabfff09a unit: Add another PTK Derivation test case 2014-12-27 22:34:39 -06:00
Denis Kenzior
7e6b4f8bb0 unit: Add PTK Derivation unit tests 2014-12-27 22:34:39 -06:00
Denis Kenzior
f8c5e4d93b unit: Add another EAPoL test frame
This one is 2 of 4
2014-12-27 22:34:39 -06:00
Denis Kenzior
c1b3858a07 unit: Add a call to eapol_verify in unit test 2014-12-27 22:34:39 -06:00
Denis Kenzior
1504e947ff unit: Add another EAPoL-Key frame test 2014-12-27 22:34:39 -06:00
Marcel Holtmann
19fa80cb11 unit: Add NIST examples for AES-CMAC hashing function 2014-12-27 23:21:41 +01:00
Marcel Holtmann
d8e7515fc4 unit: Fix bug with commented out assert for test case 2014-12-27 23:13:21 +01:00
Marcel Holtmann
1d137ffba0 unit: Add test cases for hmac_md5, hmac_sha1 and hmac_256 functions 2014-12-27 07:02:13 +01:00
Denis Kenzior
5ddea3684f unit: Add another EAPoL-Key frame test 2014-12-19 15:45:59 -06:00
Denis Kenzior
eded7b04c4 unit: Add rsc field to unit test 2014-12-19 15:45:40 -06:00
Denis Kenzior
933a181c33 unit: Fix typo 2014-12-19 12:34:30 -06:00
Patrik Flykt
e67d919048 unit: Create unit test for SSID UTF8 pretty-printing
Write a set of tests that check correct and incorrect UTF8 sequences
at the beginning, middle and end of a byte array. Also verify an all
zeros (hidden) SSID of varying length.
2014-12-19 12:31:03 -06:00
Denis Kenzior
9f4f639698 unit: Update to the new framework 2014-12-19 12:26:41 -06:00
Denis Kenzior
89d0df7d1a unit: Add initial unit test for EAPoL 2014-12-18 18:11:12 -06:00
Denis Kenzior
007d9f3bd1 unit: Update mpdu unit test to new world order 2014-12-17 17:44:59 -06:00
Denis Kenzior
754264fe6a unit: Add basic mpdu unit test 2014-12-17 16:22:39 -06:00
Denis Kenzior
9e8654976d unit: Add unit/test-crypto test
And move the PSK generation from passphrase unit tests there
2014-11-14 21:41:59 -06:00
Marcel Holtmann
34d8b0d308 ie: Keep copyright notice the same for all source files 2014-08-03 08:14:16 +02:00
Denis Kenzior
1f65caf4e4 unit: Take out unused function 2014-07-31 10:18:47 -05:00
Denis Kenzior
70f6999a61 unit: Redo test data setup 2014-07-31 10:17:07 -05:00
Denis Kenzior
89b91b7629 unit: Fix warnings
unit/test-ie.c: In function ‘ie_test_writer’:
unit/test-ie.c:238:2: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
unit/test-ie.c:251:17: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
2014-07-31 09:59:55 -05:00
Jukka Rissanen
b461863f78 unit: Add IE builder test cases 2014-07-31 09:59:01 -05:00
Jukka Rissanen
8cb16f41a8 unit: Refactor IE reader test
Use real beacon frame data when testing the IE reader API.
2014-07-30 17:14:46 -05:00
Denis Kenzior
5cf28c6dc7 unit: Fix memory leak
==7978== 29 bytes in 3 blocks are definitely lost in loss record 2 of 2
==7978==    at 0x4C2C66D: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==7978==    by 0x4012FD: l_malloc (util.c:62)
==7978==    by 0x4018EF: l_util_hexstring (util.c:372)
==7978==    by 0x40118E: ie_test (in
/home/denkenz/iwd-master/unit/test-ie)
==7978==    by 0x401BE7: l_test_run (test.c:83)
==7978==    by 0x401016: main (in /home/denkenz/iwd-master/unit/test-ie)
2014-07-15 19:18:08 -05:00
Denis Kenzior
f2ae753964 unit: Fix compiler warning
unit/test-ie.c: In function ‘ie_test’:
unit/test-ie.c:70:2: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
2014-07-15 19:18:08 -05:00
Denis Kenzior
d0e76fda03 unit: Fix style issue 2014-07-15 19:18:08 -05:00
Jukka Rissanen
e12bdd02bd unit: Add information element parser unit test cases 2014-07-15 19:18:08 -05:00
Marcel Holtmann
2286890184 unit: Add SHA-1 versions of PBKDF2 and PRF test cases 2014-05-11 11:57:04 -07:00