]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Include HMAC-SHA384/512 KDF for SAE if SHA384/512 is included
authorTomas Paukrt <tomaspaukrt@email.cz>
Tue, 17 Sep 2024 05:13:27 +0000 (07:13 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 16:00:19 +0000 (18:00 +0200)
It was possible to miss the HMAC functions if some other build
configuration parameters ended up setting NEED_SHA384/512=y.

Signed-off-by: Tomas Paukrt <tomaspaukrt@email.cz>
hostapd/Android.mk
hostapd/Makefile

index 573564d5b0de904fda7120029aaebff045dc9535..e6c2fbf1837d1ca232597606943dc004fddeeef5 100644 (file)
@@ -936,6 +936,17 @@ endif
 endif
 endif
 
+ifdef CONFIG_SAE
+ifdef NEED_SHA384
+# Need to add HMAC-SHA384 KDF as well, if SHA384 was enabled.
+NEED_HMAC_SHA384_KDF=y
+endif
+ifdef NEED_SHA512
+# Need to add HMAC-SHA512 KDF as well, if SHA512 was enabled.
+NEED_HMAC_SHA512_KDF=y
+endif
+endif
+
 L_CFLAGS += -DCONFIG_SHA256
 ifneq ($(CONFIG_TLS), openssl)
 ifneq ($(CONFIG_TLS), gnutls)
index ca4439234a115c60331f19eda08f6316dee02cf1..fa0d366a85001eca55ffb9fc86ab1c04c3279f42 100644 (file)
@@ -1065,6 +1065,17 @@ endif
 endif
 endif
 
+ifdef CONFIG_SAE
+ifdef NEED_SHA384
+# Need to add HMAC-SHA384 KDF as well, if SHA384 was enabled.
+NEED_HMAC_SHA384_KDF=y
+endif
+ifdef NEED_SHA512
+# Need to add HMAC-SHA512 KDF as well, if SHA512 was enabled.
+NEED_HMAC_SHA512_KDF=y
+endif
+endif
+
 CFLAGS += -DCONFIG_SHA256
 ifneq ($(CONFIG_TLS), openssl)
 ifneq ($(CONFIG_TLS), linux)