aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/Android.mk
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-16 19:19:53 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-16 19:19:53 (GMT)
commit0b5e98557ecacf7a27d053f42fd60f8b7f5dbdfd (patch)
tree74c30fac938c3347287aed83c91cfb6f306dbdfc /wpa_supplicant/Android.mk
parent982bafedaf02eb96cb965080b483058269ddf4c5 (diff)
downloadhostap-0b5e98557ecacf7a27d053f42fd60f8b7f5dbdfd.zip
hostap-0b5e98557ecacf7a27d053f42fd60f8b7f5dbdfd.tar.gz
hostap-0b5e98557ecacf7a27d053f42fd60f8b7f5dbdfd.tar.bz2
FIPS: Use OpenSSL CMAC implementation instead of aes-omac1.c
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/Android.mk')
-rw-r--r--wpa_supplicant/Android.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk
index 25d262d..9b51f07 100644
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -70,6 +70,7 @@ endif
ifdef CONFIG_FIPS
CONFIG_NO_RANDOM_POOL=
+CONFIG_OPENSSL_CMAC=y
endif
OBJS = config.c
@@ -1037,8 +1038,12 @@ AESOBJS += src/crypto/aes-encblock.c
endif
ifdef NEED_AES_OMAC1
NEED_AES_ENC=y
+ifdef CONFIG_OPENSSL_CMAC
+CFLAGS += -DCONFIG_OPENSSL_CMAC
+else
AESOBJS += src/crypto/aes-omac1.c
endif
+endif
ifdef NEED_AES_WRAP
NEED_AES_ENC=y
AESOBJS += src/crypto/aes-wrap.c