]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Include HMAC-SHA384/512 KDF for SAE if SHA384/512 is included
authorJouni Malinen <j@w1.fi>
Sun, 17 Apr 2022 09:28:41 +0000 (12:28 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 17 Apr 2022 16:50:23 +0000 (19:50 +0300)
It was possible to miss the HMAC functions if some other build
configuration parameters ended up setting NEED_SHA384/512=y.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/Android.mk
wpa_supplicant/Makefile

index 0e0ce467c8127427f946013d5e125494b0ceb1d4..bcdbd6c904b98b9886b01ee6b641646bb3d15fd6 100644 (file)
@@ -1361,6 +1361,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
+
 SHA256OBJS = # none by default
 L_CFLAGS += -DCONFIG_SHA256
 ifneq ($(CONFIG_TLS), openssl)
index ed49aa972f5cf8e4c63b7e46ef17ca3a585aa39e..69c80121cba7d5b3e57d051e0c8c797074cf4695 100644 (file)
@@ -1475,6 +1475,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
+
 SHA256OBJS = # none by default
 CFLAGS += -DCONFIG_SHA256
 ifneq ($(CONFIG_TLS), openssl)