aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Android.mk
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-06-15 18:17:50 (GMT)
committerJouni Malinen <j@w1.fi>2017-06-17 15:04:12 (GMT)
commit77f273c82cafb54ba2a141ecd9b2e34a7e4b5bf0 (patch)
treef97908a0c35ddc3f36a5833948b2f0c981b1f779 /hostapd/Android.mk
parent2c9d924975eae49bf6a5eae2e1cd9775f7e91cd9 (diff)
downloadhostap-77f273c82cafb54ba2a141ecd9b2e34a7e4b5bf0.zip
hostap-77f273c82cafb54ba2a141ecd9b2e34a7e4b5bf0.tar.gz
hostap-77f273c82cafb54ba2a141ecd9b2e34a7e4b5bf0.tar.bz2
Extend SHA-384 and SHA-512 support to match SHA-256
The additional SHA-384 and SHA-512 functionality is needed to support DPP with various ECC curves. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/Android.mk')
-rw-r--r--hostapd/Android.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index eafc5df..50b1e2c 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -859,6 +859,15 @@ endif
ifdef NEED_TLS_PRF_SHA256
OBJS += src/crypto/sha256-tlsprf.c
endif
+ifdef NEED_HMAC_SHA256_KDF
+OBJS += src/crypto/sha256-kdf.c
+endif
+ifdef NEED_HMAC_SHA384_KDF
+OBJS += src/crypto/sha384-kdf.c
+endif
+ifdef NEED_HMAC_SHA512_KDF
+OBJS += src/crypto/sha512-kdf.c
+endif
endif
ifdef NEED_SHA384
L_CFLAGS += -DCONFIG_SHA384
@@ -867,6 +876,15 @@ OBJS += src/crypto/sha384.c
endif
OBJS += src/crypto/sha384-prf.c
endif
+ifdef NEED_SHA512
+L_CFLAGS += -DCONFIG_SHA512
+ifneq ($(CONFIG_TLS), openssl)
+ifneq ($(CONFIG_TLS), linux)
+OBJS += src/crypto/sha512.c
+endif
+endif
+OBJS += src/crypto/sha512-prf.c
+endif
ifdef CONFIG_INTERNAL_SHA384
L_CFLAGS += -DCONFIG_INTERNAL_SHA384