Jouni Malinen
51f3427019
crypto: Clear temporary stack buffers after use
...
This reduces possibility of exposure of private keys should something
get access to stack memory.
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-01-06 02:49:13 +02:00
Jouni Malinen
d6150094e0
Move SHA1-based PRF function into a separate C file
...
This makes it easier to conditionally build in SHA1 functions based
on which TLS/crypto library is used.
Signed-hostap: Jouni Malinen <j@w1.fi>
2012-08-16 20:26:16 +03:00
Jouni Malinen
0f3d578efc
Remove the GPL notification from files contributed by Jouni Malinen
...
Remove the GPL notification text from the files that were
initially contributed by myself.
Signed-hostap: Jouni Malinen <j@w1.fi>
2012-02-11 19:39:36 +02:00
Jouni Malinen
0a5d68aba5
Make hash functions return error value
...
Some crypto libraries can return in these functions (e.g., if a specific
hash function is disabled), so we better provide the caller a chance to
check whether the call failed. The return values are not yet used
anywhere, but they will be needed for future changes.
2009-08-16 14:06:00 +03:00
Johannes Berg
18abe7acb0
Crypto build cleanup: remove CONFIG_NO_PBKDF2
...
Instead of using a define and conditional building of sha1.c parts,
move the PBKDF2 implementation into a separate file.
2009-08-11 20:31:39 +03:00
Johannes Berg
d9feab18fc
Crypto build cleanup: remove CONFIG_NO_TLS_PRF
...
Instead of using a define and conditional building of sha1.c parts,
move the TLS PRF implementation into a separate file.
2009-08-11 20:24:06 +03:00
Johannes Berg
6f693b5d0b
Crypto build cleanup: remove CONFIG_NO_T_PRF
...
Instead of using a define and conditional building of sha1.c parts,
move the T-PRF implementation into a separate file.
2009-08-11 20:19:37 +03:00
Johannes Berg
928a50a355
Crypto build cleanup: remove INTERNAL_SHA1
...
Instead of using a define and conditional building of sha1.c parts,
move the internal-SHA-1 into a separate file.
2009-07-28 20:47:04 +03:00
Jouni Malinen
a17df5fb8b
Fixed number of doxygen warnings
2009-01-02 22:28:04 +02:00
Jouni Malinen
1c156e783d
Fixed tls_prf() to handle keys with odd length
...
The middle byte of the secret (key for PRF) is shared with key halfs in
case the key length is odd. This does not happen in any of the current
tls_prf() uses, but it's better to fix this function to avoid future issues
should someone end up defining a use that uses an odd length for the key.
2008-04-14 20:11:49 +03:00
Jouni Malinen
6fc6879bd5
Re-initialize hostapd/wpa_supplicant git repository based on 0.6.3 release
2008-02-27 17:34:43 -08:00