hostapd/src/crypto
Jouni Malinen 0cb445a472 Fix internal DH implementation not to pad shared key
The returned buffer length was hardcoded to be the prime length
which resulted in shorter results being padded in the end. However,
the results from DH code are supposed to be unpadded (and when used
with WPS, the padding is done in WPS code and it is added to the
beginning of the buffer). This fixes WPS key derivation errors
in about 1/256 of runs ("WPS: Incorrect Authenticator") when using
the internal crypto code.
2010-04-12 12:25:21 +03:00
..
.gitignore Add rules for building src/crypto as a library 2009-12-05 22:03:46 +02:00
aes-cbc.c Resolve some sparse warnings 2009-11-25 00:57:00 +02:00
aes-ctr.c Resolve some sparse warnings 2009-11-25 00:57:00 +02:00
aes-eax.c Remove unneeded aes_i.h inclusion from number of places 2009-08-17 20:27:25 +03:00
aes-encblock.c Resolve some sparse warnings 2009-11-25 00:57:00 +02:00
aes-internal-dec.c Crypto build cleanup: remove CONFIG_NO_AES_DECRYPT 2009-08-13 11:16:21 +03:00
aes-internal-enc.c Crypto build cleanup: remove CONFIG_NO_AES_ENCRYPT 2009-08-13 11:21:32 +03:00
aes-internal.c Crypto build cleanup: remove CONFIG_NO_AES_ENCRYPT 2009-08-13 11:21:32 +03:00
aes-omac1.c Resolve some sparse warnings 2009-11-25 00:57:00 +02:00
aes-unwrap.c Resolve some sparse warnings 2009-11-25 00:57:00 +02:00
aes-wrap.c Include header file to verify prototypes 2009-12-28 16:01:21 +02:00
aes.h Remove unneeded aes_i.h inclusion from number of places 2009-08-17 20:27:25 +03:00
aes_i.h Remove unneeded aes_i.h inclusion from number of places 2009-08-17 20:27:25 +03:00
aes_wrap.h Re-initialize hostapd/wpa_supplicant git repository based on 0.6.3 release 2008-02-27 17:34:43 -08:00
crypto.h Add support for PKCS #5 encrypted PKCS #8 keys with internal crypto 2009-10-17 12:06:36 +03:00
crypto_cryptoapi.c Add empty crypto_mod_exp() wrapper for CryptoAPI. 2009-12-20 18:13:42 +02:00
crypto_gnutls.c Make hash functions return error value 2009-08-16 14:06:00 +03:00
crypto_internal-cipher.c Split crypto_internal.c into parts to clean up build 2009-12-06 14:37:46 +02:00
crypto_internal-modexp.c Split crypto_internal.c into parts to clean up build 2009-12-06 14:37:46 +02:00
crypto_internal-rsa.c Split crypto_internal.c into parts to clean up build 2009-12-06 14:37:46 +02:00
crypto_internal.c Split crypto_internal.c into parts to clean up build 2009-12-06 14:37:46 +02:00
crypto_libtomcrypt.c Remove unnecessary defines 2009-12-05 22:51:08 +02:00
crypto_none.c Make hash functions return error value 2009-08-16 14:06:00 +03:00
crypto_nss.c Add preliminary version of NSS TLS/crypto wrapper for wpa_supplicant 2009-09-29 01:21:09 +03:00
crypto_openssl.c Resolve some sparse warnings 2009-11-25 00:57:00 +02:00
des-internal.c Move shared DES definitions into a header file 2009-10-17 12:53:27 +03:00
des_i.h Move shared DES definitions into a header file 2009-10-17 12:53:27 +03:00
dh_group5.c Allow the internal DH implementation to be overridden 2009-10-11 19:17:22 +03:00
dh_group5.h Allow the internal DH implementation to be overridden 2009-10-11 19:17:22 +03:00
dh_groups.c Fix internal DH implementation not to pad shared key 2010-04-12 12:25:21 +03:00
dh_groups.h Re-initialize hostapd/wpa_supplicant git repository based on 0.6.3 release 2008-02-27 17:34:43 -08:00
fips_prf_cryptoapi.c Add empty FIPS PRF wrapper for CryptoAPI 2009-12-20 18:14:20 +02:00
fips_prf_gnutls.c Crypto build cleanup: remove NEED_FIPS186_2_PRF 2009-08-11 20:06:23 +03:00
fips_prf_internal.c Remove some more crypto ifdef, fix a few small bugs 2009-08-13 11:28:03 +03:00
fips_prf_nss.c Add preliminary version of NSS TLS/crypto wrapper for wpa_supplicant 2009-09-29 01:21:09 +03:00
fips_prf_openssl.c Crypto build cleanup: remove NEED_FIPS186_2_PRF 2009-08-11 20:06:23 +03:00
Makefile Split crypto_internal.c into parts to clean up build 2009-12-06 14:37:46 +02:00
md4-internal.c Make hash functions return error value 2009-08-16 14:06:00 +03:00
md5-internal.c Move shared MD5/SHA-1 internal definitions into header files 2009-10-17 12:55:12 +03:00
md5-non-fips.c Allow non-FIPS MD5 to be used with TLS PRF even in FIPS mode 2009-08-16 18:56:48 +03:00
md5.c Make hash functions return error value 2009-08-16 14:06:00 +03:00
md5.h Allow non-FIPS MD5 to be used with TLS PRF even in FIPS mode 2009-08-16 18:56:48 +03:00
md5_i.h Move shared MD5/SHA-1 internal definitions into header files 2009-10-17 12:55:12 +03:00
milenage.c Move Milenage test code into the new tests directory 2009-12-05 21:14:08 +02:00
milenage.h Move Milenage test code into the new tests directory 2009-12-05 21:14:08 +02:00
ms_funcs.c Move RC4 into crypto.h as a replaceable crypto function 2009-08-16 20:13:14 +03:00
ms_funcs.h Pass error values from digest calls to ms_funcs callers 2009-08-16 14:18:59 +03:00
rc4.c Move RC4 into crypto.h as a replaceable crypto function 2009-08-16 20:13:14 +03:00
sha1-internal.c Fix strict aliasing issue with the internal SHA-1 implementation 2009-11-21 20:17:24 +02:00
sha1-pbkdf2.c Make hash functions return error value 2009-08-16 14:06:00 +03:00
sha1-tlsprf.c Allow non-FIPS MD5 to be used with TLS PRF even in FIPS mode 2009-08-16 18:56:48 +03:00
sha1-tprf.c Make hash functions return error value 2009-08-16 14:06:00 +03:00
sha1.c Make hash functions return error value 2009-08-16 14:06:00 +03:00
sha1.h Make hash functions return error value 2009-08-16 14:06:00 +03:00
sha1_i.h Move shared MD5/SHA-1 internal definitions into header files 2009-10-17 12:55:12 +03:00
sha256-internal.c Make hash functions return error value 2009-08-16 14:06:00 +03:00
sha256.c Crypto build cleanup: remove INTERNAL_SHA256 2009-07-28 21:20:04 +03:00
sha256.h Re-initialize hostapd/wpa_supplicant git repository based on 0.6.3 release 2008-02-27 17:34:43 -08:00
tls.h Add TLS client events, server probing, and srv cert matching 2010-02-13 11:14:23 +02:00
tls_gnutls.c GnuTLS: Implement tls_connection_enable_workaround() 2009-12-20 22:08:54 +02:00
tls_internal.c Use wpabuf with tls_connection_ia_send_phase_finished() 2009-12-20 21:33:32 +02:00
tls_none.c Use wpabuf with tls_connection_ia_send_phase_finished() 2009-12-20 21:33:32 +02:00
tls_nss.c Use wpabuf with tls_connection_ia_send_phase_finished() 2009-12-20 21:33:32 +02:00
tls_openssl.c Use unsigned bitfield for 1-bit values 2010-04-11 12:27:13 +03:00
tls_schannel.c Use wpabuf with tls_connection_ia_send_phase_finished() 2009-12-20 21:33:32 +02:00