Andrew Zaborowski
efbbe9870b
crypto: Implement crypto_derive_pmk_r1
2016-09-06 13:48:50 -05:00
Andrew Zaborowski
994ffd94c5
crypto: Implement crypto_derive_pmk_r0
2016-09-06 13:47:18 -05:00
Andrew Zaborowski
955c88a64a
ie: Consistently set group_management_cipher
...
RSNE_ADVANCE may return and if it is before the assignment of
info.group_management_cipher, that assignment will be dependent on where
the RSNE ends.
2016-09-05 23:10:29 -05:00
Andrew Zaborowski
316752c5e4
ie: Error in tlv_iter_next if no space to length byte
...
When parsing the EAPoL-Key key data field we don't strip the 0xdd /
0x00 padding from the decrypted data so there may be trailing padding
after the IE sequence and valgrind will report an invalid read of the
length byte. Same thing may happen if we're sent garbage.
2016-09-05 23:00:01 -05:00
Andrew Zaborowski
4a00c25241
iwmon: RX dBm is a signed integer
2016-09-05 22:46:53 -05:00
Andrew Zaborowski
a1f1046dcb
iwmon: Fix PMKID display
...
Use unsigned to prevent the PMKID bytes being sign-extended.
2016-09-05 22:43:53 -05:00
Andrew Zaborowski
755605fddf
iwmon: Fix RSN capability bit positions
...
The numbers displayed for other bits are 0-based.
2016-09-05 22:40:07 -05:00
Mat Martineau
95017e8722
tools: More key and crypto kernel config parameters
2016-09-05 22:40:07 -05:00
Tim Kourt
6324f96e5d
tools: Add kernel config option
2016-09-02 00:24:08 -05:00
Denis Kenzior
70d3a01bda
unit: Add parsing of wsc_credential
2016-08-31 22:36:50 -05:00
Denis Kenzior
b67e3f26b5
wscutil: Add wsc_parse_credential
2016-08-31 22:36:21 -05:00
Denis Kenzior
4f582753b5
unit: Add test for wsc_parse_m8_encrypted_settings
2016-08-31 22:00:52 -05:00
Denis Kenzior
d83bf50a39
wscutil: Add wsc_parse_m8_encrypted_settings
2016-08-31 21:59:52 -05:00
Denis Kenzior
fa8cbeea7c
unit: Add test for wsc_build_m8
2016-08-31 14:15:16 -05:00
Denis Kenzior
a2b740f161
unit: Add test for wsc_parse_m8
2016-08-31 14:15:11 -05:00
Denis Kenzior
addba697da
wscutil: Add wsc_build_m8
2016-08-31 14:14:11 -05:00
Denis Kenzior
ead40f0431
wscutil: Add wsc_parse_m8
2016-08-31 14:14:01 -05:00
Denis Kenzior
387af676cf
unit: Add M6/M7 exchange test
2016-08-31 12:50:53 -05:00
Denis Kenzior
34ed84dc41
eap-wsc: Send M7 messages
2016-08-31 12:50:44 -05:00
Denis Kenzior
f542a18f4f
unit: Simplify verification
2016-08-31 12:37:30 -05:00
Denis Kenzior
9bb4ba42dd
wscutil: Add wsc_build_m7_encrypted_settings
2016-08-31 11:39:06 -05:00
Denis Kenzior
8df0f9fa28
wscutil: Add wsc_parse_m7_encrypted_settings
2016-08-31 11:38:52 -05:00
Denis Kenzior
9353da8bf3
unit: Add test for wsc_build_m7
2016-08-31 11:38:35 -05:00
Denis Kenzior
82b007f7b5
unit: Add test fo wsc_parse_m7
2016-08-31 11:38:22 -05:00
Denis Kenzior
a113cba4f2
wscutil: Add wsc_build_m7
2016-08-31 11:32:51 -05:00
Denis Kenzior
b7d44d302a
wscutil: Add wsc_parse_m7
2016-08-31 11:32:21 -05:00
Denis Kenzior
6dae861ce2
eap-wsc: Handle M6 messages
2016-08-31 11:18:21 -05:00
Denis Kenzior
2ac78e1306
eap-wsc: split out R_Hash verification
...
So it can be used in M6 processing
2016-08-31 11:17:29 -05:00
Denis Kenzior
f8eb76a93a
unit: Add test for wsc_build_m6_encrypted_settings
2016-08-31 11:16:30 -05:00
Denis Kenzior
2f09fbc348
unit: Add test for wsc_parse_m6_encrypted_settings
2016-08-31 11:16:15 -05:00
Denis Kenzior
11550b2756
wscutil: Add wsc_m6_build_encrypted_settings
2016-08-31 11:15:35 -05:00
Denis Kenzior
3719e78094
wscutil: Add wsc_parse_m6_encrypted_settings
2016-08-31 11:15:12 -05:00
Denis Kenzior
11cb6e5d35
unit: Add test for wsc_build_m6
2016-08-31 11:14:48 -05:00
Denis Kenzior
6e9b5c912c
unit: Add test for wsc_parse_m6
2016-08-31 11:14:48 -05:00
Denis Kenzior
4e0c932dc9
wscutil: Add wsc_build_m6
2016-08-31 11:14:48 -05:00
Denis Kenzior
815f685c2d
wscutil: Add wsc_parse_m6
2016-08-31 11:14:48 -05:00
Denis Kenzior
97771f80f1
unit: Add M4/M5 pair to end-to-end wsc test
2016-08-30 23:20:43 -05:00
Denis Kenzior
ba55afa3f4
eap-wsc: Generate M5 messages
2016-08-30 23:20:24 -05:00
Denis Kenzior
c0de9d1790
eap-wsc: optionally load IV1 & IV2 for debugging
...
When we send M5 & M7, we need to generate a random IV. For testing
purposes, the IV can be provided in settings, otherwise it will be
generated randomly.
2016-08-30 23:18:53 -05:00
Denis Kenzior
1820d7c33e
merge: M5 parse test
2016-08-30 23:18:19 -05:00
Denis Kenzior
62623e0eb3
eap-wsc: Handle M4 messages
2016-08-30 21:52:24 -05:00
Denis Kenzior
48c3f4a55a
eap-wsc: Store PSK1 & PSK2
...
We will need to use PSK1 & PSK2 when computing R_Hash1 & R_Hash2 when
processing M4 & M6.
2016-08-30 21:51:14 -05:00
Denis Kenzior
9a47f98ccd
eap-wsc: Store M2 for future use
...
We need quite a bit of attributes of M2 for the duration of the WSC
handshake. Most importantly, we need to use the peer's public key when
processing M4 and M6. RegistrarNonce is also needed for generating any
ACK/NACK messages as needed.
Also, peer's device attributes such as Model, Manufacturer, etc might be
useful to report upon successful handshake.
2016-08-30 21:10:57 -05:00
Denis Kenzior
633389f2f4
eap-wsc: Add utility to decrypt EncryptedSettings
2016-08-30 14:43:49 -05:00
Denis Kenzior
b78bef2be8
eap-wsc: Add utility to check KeyWrapAuthenticator
2016-08-30 14:42:43 -05:00
Denis Kenzior
046c7b8994
eap-wsc: clear out intermediate key data
2016-08-30 14:41:58 -05:00
Denis Kenzior
39d6acb07d
eap-wsc: Don't store AuthKey | KeyWrapKey | EMSK
...
AuthKey is already uploaded into auth_key_hmac. KeyWrapKey is now
uploaded into the AES-CBC(128) cipher. We currently have no use for
EMSK.
So we no longer need to keep the wsc_session_key structure around.
2016-08-30 14:34:03 -05:00
Denis Kenzior
24dfe6e436
wscutil: Add wsc_build_m5_encrypted_settings
2016-08-30 14:10:20 -05:00
Denis Kenzior
7bdb1a0225
wscutil: Add wsc_parse_m5_encrypted_settings
2016-08-30 14:07:53 -05:00
Denis Kenzior
ba8e0cd6b7
unit: Add test for wsc_build_m4_encrypted_settings
2016-08-30 13:58:32 -05:00