James Prestwood
397bf9c0bd
crypto: pwd: sae: Made H function common
...
The "H" function used by SAE and EAP-PWD was effectively the same
function, EAP-PWD just used a zero key for its calls. This removes
the duplicate implementations and merges them into crypto.c as
"hkdf_256".
Since EAP-PWD always uses a zero'ed key, passing in a NULL key to
hkdf_256 will actually use a 32 byte zero'ed array as the key. This
avoids the need for EAP-PWD to store or create a zero'ed key for
every call.
Both the original "H" functions never called va_end, so that was
added to hkdf_256.
2018-09-05 11:12:54 -05:00
Denis Kenzior
46a797043a
ie: Add AKMs from 802.11-2016
2018-07-19 11:09:08 -05:00
Denis Kenzior
cd7af67aac
eapol: Tighten up GTK/IGTK KDE validation
...
GTK KDE was being checked for being a minimum of 6 bytes. Not quite
sure why since the minimum GTK key length is 16 bytes for CCMP.
Similarly make sure that the maximum length is not more than 32, which
is currently the largest key size (TKIP)
2017-10-19 16:47:35 -05:00
Andrew Zaborowski
ba78950c83
crypto: Use l_pkcs5_pbkdf2 in place of local pbkdf2_sha1
2017-10-09 14:34:31 -05:00
Andrew Zaborowski
4f865ba9f8
crypto: Implement aes_wrap
...
Add the inverse of aes_unwrap for eapol server usage.
2017-08-31 12:53:53 -05:00
Andrew Zaborowski
0f6685bf45
crypto: Add crypto_derive_pmkid
...
Calculates the PMKID for given PMK
2017-04-17 14:24:02 -05:00
Denis Kenzior
d33fe385da
crypto: Add AKMs
2016-11-15 15:39:55 -06:00
Andrew Zaborowski
443e363c20
crypto: Implement crypto_derive_ft_ptk
2016-09-06 13:50:17 -05:00
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
Denis Kenzior
eb539ddd82
crypto: Add D-H MODP Group 5 prime & generator
2016-08-15 10:47:36 -05:00
Denis Kenzior
e084839b4f
crypto: Prepare for SHA256 based PTK derivation
2016-02-10 16:54:55 -06:00
Denis Kenzior
39444ab532
crypto: Add SHA256 based KDF
2016-02-10 16:30:22 -06:00
Denis Kenzior
ac4a901518
crypto: move pbkdf2_sha1 to crypto.c
2016-02-10 14:32:27 -06:00
Denis Kenzior
6199960b52
crypto: Move + rework prf_sha1 into crypto.c
2016-02-10 14:16:32 -06:00
Denis Kenzior
064f1e0df9
crypto: Move hmac_sha1 to crypto.c
2016-02-10 14:12:46 -06:00
Denis Kenzior
d075d49a96
crypto: Use same values as nl80211
2015-03-25 22:33:07 -05:00
Denis Kenzior
ad3e0b6bf2
arc4: Remove and move to src/crypto.c
2015-02-18 21:11:37 -06:00
Denis Kenzior
b3e617838d
aes: Remove and move to src/crypto.c
2015-02-18 21:02:09 -06:00
Denis Kenzior
260ef5bb9d
md5: Remove and move to src/crypto.c
2015-02-18 20:56:18 -06:00
Denis Kenzior
02d101e3d7
sha256: Remove and move to src/crypto.c
2015-02-18 20:45:52 -06:00
Marcel Holtmann
78d21c782c
crypto: Use proper form for making a structure packed
2014-12-28 06:50:51 +01:00
Denis Kenzior
52ee52f467
crypto: Make packed
2014-12-27 23:35:40 -06:00
Denis Kenzior
5e7771ef66
crypto: Add crypto_derive_pairwise_ptk
2014-12-27 22:34:39 -06:00
Denis Kenzior
1c4e3bc774
crypto: Make const correct
2014-12-27 22:34:39 -06:00
Denis Kenzior
f647e03166
crypto: Add crypto_cipher_tk_bits
2014-12-27 22:34:39 -06:00
Denis Kenzior
07c8876d9e
crypto: Add crypto_cipher_key_len
2014-12-27 22:34:39 -06:00
Denis Kenzior
0693740731
crypto: Add crypto_derive_ptk
2014-12-27 22:34:39 -06:00
Denis Kenzior
d87d7d469f
crypto: Add passphrase generation utility
2014-11-14 21:41:28 -06:00