aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-08-16 18:15:32 (GMT)
committerJouni Malinen <j@w1.fi>2019-08-16 18:16:37 (GMT)
commit52069c7eff4822650ed98358719ccebd85d53163 (patch)
tree4254bbad9701961b0714b8dc23dd07e3aaa8821d /hostapd
parent263c0cbdc05bfd6b316dc59ddbd1024e3acdb402 (diff)
downloadhostap-52069c7eff4822650ed98358719ccebd85d53163.zip
hostap-52069c7eff4822650ed98358719ccebd85d53163.tar.gz
hostap-52069c7eff4822650ed98358719ccebd85d53163.tar.bz2
Add TLS-PRF using HMAC with P_SHA384 for TEAP
This version of TLS PRF is needed when using TEAP with TLS ciphersuites that are defined to use SHA384 instead of SHA256. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/Android.mk5
-rw-r--r--hostapd/Makefile5
2 files changed, 10 insertions, 0 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index 79b8a48..9824a52 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -494,6 +494,8 @@ OBJS += src/eap_common/eap_teap_common.c
TLS_FUNCS=y
NEED_T_PRF=y
NEED_SHA384=y
+NEED_TLS_PRF_SHA256=y
+NEED_TLS_PRF_SHA384=y
NEED_AES_UNWRAP=y
endif
@@ -923,6 +925,9 @@ endif
ifdef NEED_TLS_PRF_SHA256
OBJS += src/crypto/sha256-tlsprf.c
endif
+ifdef NEED_TLS_PRF_SHA384
+OBJS += src/crypto/sha384-tlsprf.c
+endif
ifdef NEED_HMAC_SHA256_KDF
OBJS += src/crypto/sha256-kdf.c
endif
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 2a6bd7a..2cbd6d9 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -533,6 +533,8 @@ OBJS += ../src/eap_common/eap_teap_common.o
TLS_FUNCS=y
NEED_T_PRF=y
NEED_SHA384=y
+NEED_TLS_PRF_SHA256=y
+NEED_TLS_PRF_SHA384=y
NEED_AES_UNWRAP=y
endif
@@ -1068,6 +1070,9 @@ endif
ifdef NEED_TLS_PRF_SHA256
OBJS += ../src/crypto/sha256-tlsprf.o
endif
+ifdef NEED_TLS_PRF_SHA384
+OBJS += ../src/crypto/sha384-tlsprf.o
+endif
ifdef NEED_HMAC_SHA256_KDF
OBJS += ../src/crypto/sha256-kdf.o
endif